commit dunelegacy for openSUSE:Factory

2018-04-11 Thread root
Hello community,

here is the log from the commit of package dunelegacy for openSUSE:Factory 
checked in at 2018-04-11 13:56:45

Comparing /work/SRC/openSUSE:Factory/dunelegacy (Old)
 and  /work/SRC/openSUSE:Factory/.dunelegacy.new (New)


Package is "dunelegacy"

Wed Apr 11 13:56:45 2018 rev:3 rq:594551 version:0.96.4

Changes:

--- /work/SRC/openSUSE:Factory/dunelegacy/dunelegacy.changes2017-07-19 
12:22:02.383632893 +0200
+++ /work/SRC/openSUSE:Factory/.dunelegacy.new/dunelegacy.changes   
2018-04-11 13:56:46.858105172 +0200
@@ -1,0 +2,7 @@
+Sat Apr  7 18:21:47 UTC 2018 - wba...@tmo.at
+
+- Add fix-build-with-SDL_mixer-2.0.2.patch to fix build with
+  SDL2_mixer 2.0.2 where MIX_INIT_FLUIDSYNTH has been renamed to
+  MIX_INIT_MID
+
+---

New:

  fix-build-with-SDL_mixer-2.0.2.patch



Other differences:
--
++ dunelegacy.spec ++
--- /var/tmp/diff_new_pack.9ec7a0/_old  2018-04-11 13:56:47.694074943 +0200
+++ /var/tmp/diff_new_pack.9ec7a0/_new  2018-04-11 13:56:47.694074943 +0200
@@ -28,6 +28,8 @@
 Source8:%{name}.appdata.xml
 # PATCH-FEATURE-UPSTREAM https://sourceforge.net/p/dunelegacy/patches/7/
 Source9:%{name}.6
+# PATCH-FIX-OPENSUSE fix-build-with-SDL_mixer-2.0.2.patch wba...@tmo.at -- fix 
build with SDL2_mixer 2.0.2 where MIX_INIT_FLUIDSYNTH has been renamed to 
MIX_INIT_MID
+Patch:  fix-build-with-SDL_mixer-2.0.2.patch
 BuildRequires:  cppunit-devel
 BuildRequires:  dos2unix
 BuildRequires:  gcc-c++
@@ -55,6 +57,7 @@
 
 %prep
 %setup -q
+%patch -p1
 dos2unix ToDo.txt
 
 %build

++ fix-build-with-SDL_mixer-2.0.2.patch ++
diff -ur dunelegacy-0.96.4.orig/src/FileClasses/music/DirectoryPlayer.cpp 
dunelegacy-0.96.4/src/FileClasses/music/DirectoryPlayer.cpp
--- dunelegacy-0.96.4.orig/src/FileClasses/music/DirectoryPlayer.cpp
2016-11-20 15:57:02.0 +0100
+++ dunelegacy-0.96.4/src/FileClasses/music/DirectoryPlayer.cpp 2018-04-07 
20:18:15.596685772 +0200
@@ -61,7 +61,7 @@
 
 music = nullptr;
 
-Mix_Init(MIX_INIT_FLUIDSYNTH | MIX_INIT_FLAC | MIX_INIT_MP3 | 
MIX_INIT_OGG);
+Mix_Init(MIX_INIT_MID | MIX_INIT_FLAC | MIX_INIT_MP3 | MIX_INIT_OGG);
 }
 
 DirectoryPlayer::~DirectoryPlayer() {
diff -ur dunelegacy-0.96.4.orig/src/FileClasses/music/XMIPlayer.cpp 
dunelegacy-0.96.4/src/FileClasses/music/XMIPlayer.cpp
--- dunelegacy-0.96.4.orig/src/FileClasses/music/XMIPlayer.cpp  2016-11-18 
00:06:11.0 +0100
+++ dunelegacy-0.96.4/src/FileClasses/music/XMIPlayer.cpp   2018-04-07 
20:18:15.568685771 +0200
@@ -32,7 +32,7 @@
 XMIPlayer::XMIPlayer() : MusicPlayer(settings.audio.playMusic, 
settings.audio.musicVolume) {
 music = nullptr;
 
-if((Mix_Init(MIX_INIT_FLUIDSYNTH) & MIX_INIT_FLUIDSYNTH) == 0) {
+if((Mix_Init(MIX_INIT_MID) & MIX_INIT_MID) == 0) {
 SDL_Log("XMIPlayer: Failed to init required midi support: %s", 
SDL_GetError());
 }
 }



commit dunelegacy for openSUSE:Factory

2017-07-19 Thread root
Hello community,

here is the log from the commit of package dunelegacy for openSUSE:Factory 
checked in at 2017-07-19 11:21:47

Comparing /work/SRC/openSUSE:Factory/dunelegacy (Old)
 and  /work/SRC/openSUSE:Factory/.dunelegacy.new (New)


Package is "dunelegacy"

Wed Jul 19 11:21:47 2017 rev:2 rq:510940 version:0.96.4

Changes:

--- /work/SRC/openSUSE:Factory/dunelegacy/dunelegacy.changes2017-01-25 
23:35:28.912926732 +0100
+++ /work/SRC/openSUSE:Factory/.dunelegacy.new/dunelegacy.changes   
2017-07-19 12:22:02.383632893 +0200
@@ -1,0 +2,5 @@
+Sat Jul 15 13:28:08 UTC 2017 - mailaen...@opensuse.org
+
+- Install appdata.xml file
+
+---

New:

  dunelegacy.appdata.xml



Other differences:
--
++ dunelegacy.spec ++
--- /var/tmp/diff_new_pack.Vr4flc/_old  2017-07-19 12:22:02.979548803 +0200
+++ /var/tmp/diff_new_pack.Vr4flc/_new  2017-07-19 12:22:02.979548803 +0200
@@ -24,6 +24,8 @@
 Group:  Amusements/Games/Strategy/Real Time
 Url:http://dunelegacy.sourceforge.net/
 Source: 
http://downloads.sourceforge.net/%{name}/%{name}-%{version}-src.tar.bz2
+# PATCH-FEATURE-UPSTREAM https://sourceforge.net/p/dunelegacy/patches/8/
+Source8:%{name}.appdata.xml
 # PATCH-FEATURE-UPSTREAM https://sourceforge.net/p/dunelegacy/patches/7/
 Source9:%{name}.6
 BuildRequires:  cppunit-devel
@@ -70,6 +72,10 @@
 %suse_update_desktop_file -i %{name}
 install -D -p -m 0644 %{name}-128x128.png 
%{buildroot}%{_datadir}/pixmaps/%{name}.png
 
+# https://en.opensuse.org/openSUSE:AppStore
+mkdir -p %{buildroot}%{_datadir}/appdata
+cp %{SOURCE8} %{buildroot}%{_datadir}/appdata
+
 # Install man page
 mkdir -p %{buildroot}%{_mandir}/man6
 cp %{SOURCE9} %{buildroot}%{_mandir}/man6
@@ -82,5 +88,6 @@
 %{_datadir}/%{name}/
 %attr(755,root,root) %{_datadir}/applications/%{name}.desktop
 %{_datadir}/pixmaps/%{name}.png
+%{_datadir}/appdata/%{name}.appdata.xml
 
 %changelog

++ dunelegacy.appdata.xml ++


  dunelegacy.desktop
  CC0-1.0
  GPL-2.0+
  Dune Legacy
  A modern Dune II reimplementation
  

  Lead one of three interplanetary houses, Atreides, Harkonnen or Ordos,
  in an attempt to harvest the largest amount of spice from the sand
  dunes. Exchange your spice stockpiles for credits through refinement
  and build an army capable of thwarting attempts of the other houses to
  stop your harvesting!


  Dune Legacy is an effort by a handful of developers to revitalize the
  first-ever real-time strategy game. The original game was the basis
  for the hugely successful Command and Conquer series, and the gameplay
  has been replicated an extended to a wide variety of storylines and
  series.


  NOTE: Original Dune 2 game files are needed.

  
  

  
http://dunelegacy.sourceforge.net/website/screenshots/Dunelegacy-0.96-mission7.png


  
http://dunelegacy.sourceforge.net/website/screenshots/Dunelegacy-0.96-mission9-2.png


  
http://dunelegacy.sourceforge.net/website/screenshots/Dunelegacy-0.96-mission9-3.png


  
http://dunelegacy.sourceforge.net/website/screenshots/Dunelegacy-0.96-mission9.png


  
http://dunelegacy.sourceforge.net/website/screenshots/Dunelegacy-0.96-score.png

  
  http://dunelegacy.sourceforge.net/




commit dunelegacy for openSUSE:Factory

2017-01-25 Thread root
Hello community,

here is the log from the commit of package dunelegacy for openSUSE:Factory 
checked in at 2017-01-25 23:35:28

Comparing /work/SRC/openSUSE:Factory/dunelegacy (Old)
 and  /work/SRC/openSUSE:Factory/.dunelegacy.new (New)


Package is "dunelegacy"

Changes:

New Changes file:

--- /dev/null   2016-12-08 12:47:06.134691974 +0100
+++ /work/SRC/openSUSE:Factory/.dunelegacy.new/dunelegacy.changes   
2017-01-25 23:35:28.912926732 +0100
@@ -0,0 +1,43 @@
+---
+Sun Jan 22 13:10:57 UTC 2017 - mailaen...@opensuse.org
+
+- update to version 0.96.4
+- drop fix-gcc6.patch (included upstream)
+- drop dunelegacy-0.96.3-configure-CXXFLAGS.diff (included upstream)
+
+---
+Thu Jun 30 19:58:52 UTC 2016 - dap.darkn...@gmail.com
+
+- Added dunelegacy-0.96.3-configure-CXXFLAGS.diff to not override
+  system's CXXFLAGS and to not use -O3.
+- Added man page.
+- Enabled verbose make output.
+
+---
+Thu Jun 30 18:29:25 UTC 2016 - r...@fthiessen.de
+
+- Added fix-gcc6.patch to fix build with gcc6 (c++14)
+
+---
+Sun Aug 16 05:48:03 UTC 2015 - mailaen...@opensuse.org
+
+- Run unit tests
+- Fix rpmlint warnings
+
+---
+Mon Mar 25 06:44:06 UTC 2013 - mailaen...@opensuse.org
+
+- Update to 0.96.3
+- Use https://en.opensuse.org/SourceUrls
+
+---
+Mon Apr 30 19:25:20 UTC 2012 - jeng...@medozas.de
+
+- Enable parallel build with %_smp_mflags
+- Remove seemingly unneeded calls to autotools regeneration
+
+---
+Fri Jul 22 00:00:00 UTC 2011 - mailaen...@opensuse.org
+
+- Initial package for build.opensuse.org, based upon
+  
http://cvs.pld-linux.org/cgi-bin/cvsweb/packages/dunelegacy/dunelegacy.spec?rev=1.8.2.1

New:

  dunelegacy-0.96.4-src.tar.bz2
  dunelegacy.6
  dunelegacy.changes
  dunelegacy.spec



Other differences:
--
++ dunelegacy.spec ++
#
# spec file for package dunelegacy
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:   dunelegacy
Version:0.96.4
Release:0
Summary:A modern Dune II reimplementation
License:GPL-2.0+
Group:  Amusements/Games/Strategy/Real Time
Url:http://dunelegacy.sourceforge.net/
Source: 
http://downloads.sourceforge.net/%{name}/%{name}-%{version}-src.tar.bz2
# PATCH-FEATURE-UPSTREAM https://sourceforge.net/p/dunelegacy/patches/7/
Source9:%{name}.6
BuildRequires:  cppunit-devel
BuildRequires:  dos2unix
BuildRequires:  gcc-c++
BuildRequires:  libstdc++-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(sdl2)
BuildRoot:  %{_tmppath}/%{name}-%{version}-build

%description
Lead one of three interplanetary houses, Atreides, Harkonnen or Ordos,
in an attempt to harvest the largest amount of spice from the sand
dunes. Exchange your spice stockpiles for credits through refinement
and build an army capable of thwarting attempts of the other houses to
stop your harvesting!

Dune Legacy is an effort by a handful of developers to revitalize the
first-ever real-time strategy game. The original game was the basis
for the hugely successful Command and Conquer series, and the gameplay
has been replicated an extended to a wide variety of storylines and
series.

NOTE: Original Dune 2 game files are needed.

%prep
%setup -q
dos2unix ToDo.txt

%build
%configure
make V=1 %{?_smp_mflags}

%check
make V=1 %{?_smp_mflags} distclean
./runUnitTests.sh

%install
%make_install V=1

# Install .desktop file and icon
%suse_update_desktop_file -i %{name}
install -D -p -m 0644 %{name}-128x128.png 
%{buildroot}%{_datadir}/pixmaps/%{name}.png

# Install man page
mkdir -p %{buildroot}%{_mandir}/man6
cp %{SOURCE9} %{buildroot}%{_mandir}/man6