Accepting request 889290 from games

- Update to version 2.8.0
  * Remove legacy SDL 1.2 code at many parts
  * More stable graphics engine
  * SDL2 is not an option anymore
  * Improved logging
  * Open GL 2.1 is minimum now
  * Lots of OpenGL fixes
  * Boost library now is optional
  * C++17
- Add patch:
  * fix-icons.patch
- Update to version 2.7.9
  * Add appdata
- Update to version 2.7.8
  * More logging. Code cleanups

OBS-URL: https://build.opensuse.org/request/show/889290
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/commandergenius?expand=0&rev=22
This commit is contained in:
Dominique Leuenberger 2021-04-29 20:46:44 +00:00 committed by Git OBS Bridge
commit 699cf692e1
5 changed files with 52 additions and 4 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5ee56effcb36b64ad85bc5a32aab1ae0178d14a9d7641e516c7a140974aa18ba
size 55337535

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4760ddcc13f90466c77146bdf68aa669a1ad9142f4b55178f0f90c817f8df1a0
size 55414301

View File

@ -1,3 +1,34 @@
-------------------------------------------------------------------
Tue Apr 13 12:52:41 UTC 2021 - Martin Hauke <mardnh@gmx.de>
- Update to version 2.8.0
* Remove legacy SDL 1.2 code at many parts
* More stable graphics engine
* SDL2 is not an option anymore
* Improved logging
* Open GL 2.1 is minimum now
* Lots of OpenGL fixes
* Boost library now is optional
* C++17
-------------------------------------------------------------------
Tue Apr 6 19:44:54 UTC 2021 - Martin Hauke <mardnh@gmx.de>
- Add patch:
* fix-icons.patch
-------------------------------------------------------------------
Tue Apr 6 09:26:14 UTC 2021 - Martin Hauke <mardnh@gmx.de>
- Update to version 2.7.9
* Add appdata
-------------------------------------------------------------------
Sun Mar 28 13:38:51 UTC 2021 - Martin Hauke <mardnh@gmx.de>
- Update to version 2.7.8
* More logging. Code cleanups
-------------------------------------------------------------------
Sun Feb 14 15:36:36 UTC 2021 - Martin Hauke <mardnh@gmx.de>

View File

@ -17,7 +17,7 @@
Name: commandergenius
Version: 2.7.7
Version: 2.8.0
Release: 0
Summary: An open clone of the Commander Keen engines
License: GPL-2.0-only
@ -25,6 +25,7 @@ Group: Amusements/Games/Action/Arcade
URL: http://clonekeenplus.sf.net/
#Git-Clone: https://gitlab.com/Dringgstein/Commander-Genius.git
Source: https://gitlab.com/Dringgstein/Commander-Genius/-/archive/v%version/Commander-Genius-v%version.tar.bz2
Patch0: fix-icons.patch
BuildRequires: boost-devel
BuildRequires: cmake >= 2.8
BuildRequires: fdupes
@ -46,6 +47,7 @@ It has 4-player cooperative mode and six difficulty modes.
%prep
%setup -q -n Commander-Genius-v%version
%patch0 -p1
%build
%cmake \
@ -57,12 +59,14 @@ It has 4-player cooperative mode and six difficulty modes.
%install
%cmake_install
install -D -m0644 share/cg.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/cg.svg
%fdupes %buildroot%_datadir
%files
%license COPYRIGHT
%_bindir/CGeniusExe
%_datadir/applications/cgenius.desktop
%_datadir/metainfo/io.sourceforge.clonekeenplus.appdata.xml
%_datadir/icons/hicolor/
%_datadir/games/%name/

13
fix-icons.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/src/install.cmake b/src/install.cmake
index 2e6daeb..5783f8b 100644
--- a/src/install.cmake
+++ b/src/install.cmake
@@ -11,7 +11,7 @@ ELSE(WIN32)
# Install desktop icon and file
foreach(X IN ITEMS 16 32 48 64 128 256 512)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/../share/cg.${X}.png
- DESTINATION "${ICONDIR}/${X}x${X}/apps")
+ DESTINATION "${ICONDIR}/${X}x${X}/apps/" RENAME cg.png)
endforeach()
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/../share/cgenius.desktop