commandergenius/commandergenius.spec
Jan Engelhardt 432344a568 Accepting request 884954 from home:mnhauke: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

OBS-URL: https://build.opensuse.org/request/show/884954
OBS-URL: https://build.opensuse.org/package/show/games/commandergenius?expand=0&rev=48
2021-04-13 14:22:39 +00:00

74 lines
2.3 KiB
RPMSpec

#
# spec file for package commandergenius
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: commandergenius
Version: 2.8.0
Release: 0
Summary: An open clone of the Commander Keen engines
License: GPL-2.0-only
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
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(SDL2_image) >= 2.0.0
BuildRequires: pkgconfig(SDL2_mixer)
BuildRequires: pkgconfig(SDL2_ttf)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(zlib)
%description
Commander Genius is a software piece that interprets the Commander
Keen Vorticon (1-3) and Galaxy (3½-6) series.
It has 4-player cooperative mode and six difficulty modes.
%prep
%setup -q -n Commander-Genius-v%version
%patch0 -p1
%build
%cmake \
-DBUILD_STATIC_LIBS:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DCMAKE_INSTALL_PREFIX="%_prefix" \
-DAPPDIR="%_bindir"
%make_jobs
%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/
%changelog