#global extra_version -2 Name: cdogs-sdl Version: 0.6.5 Release: 1%{?dist} Summary: C-Dogs is an arcade shoot-em-up Group: Amusements/Games # The game-engine is GPLv2+ # The game art is CC License: GPLv2+ and CC-BY and CC-BY-SA and CC0 URL: http://cxong.github.io/cdogs-sdl/ Source0: https://github.com/cxong/cdogs-sdl/archive/%{version}%{?extra_version}.tar.gz#/%{name}-%{version}%{?extra_version}.tar.gz Patch0: cdogs-sdl-0.5.8-cmake.patch Patch1: cdogs-sdl-0.6.2-system-enet.patch BuildRequires: cmake SDL2_mixer-devel SDL2_image-devel libGL-devel BuildRequires: ncurses-devel physfs-devel enet-devel BuildRequires: desktop-file-utils libicns-utils libappstream-glib Requires: hicolor-icon-theme Obsoletes: cdogs-data < 0.5 Provides: cdogs-data = %{version}-%{release} %description C-Dogs SDL is a port of the old DOS arcade game C-Dogs to modern operating systems utilising the SDL Media Libraries. C-Dogs is an arcade shoot-em-up which lets players work alone and cooperatively during missions or fight against each other in the “dogfight” deathmatch mode. The DOS version of C-Dogs came with several built in missions and dogfight maps. This version does too. The author of the DOS version of C-Dogs was Ronny Wester. We would like to thank Ronny for releasing the C-Dogs sources to the public. %prep %setup -q -n %{name}-%{version}%{?extra_version} %patch0 -p1 -b .cmake %patch1 -p1 # We use the system enet rm -r src/cdogs/enet # Misc. cleanups sed -i 's/\r//' doc/original_readme.txt rm graphics/make_bullet_spritesheet.sh chmod -x src/tinydir/tinydir.h %build %cmake -DCDOGS_DATA_DIR=/usr/share/cdogs-sdl/ make %{?_smp_mflags} icns2png -x build/macosx/cdogs-icon.icns %install %make_install desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop appstream-util validate-relax --nonet \ $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml # install 128x128 icon from build/macosx/cdogs-icon.icns mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps install -m 644 cdogs-icon_128x128x32.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/%{name}.png %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %doc doc/AUTHORS doc/CREDITS doc/original_readme.txt doc/README_DATA.md %license doc/COPYING.BSD doc/COPYING.GPL doc/COPYING.MJSON.txt doc/COPYING.xgetopt.txt doc/COPYING.yajl.txt doc/LICENSE.nanopb.txt doc/license.rlutil.txt %{_bindir}/%{name}* %{_datadir}/%{name} %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.png %changelog * Mon May 1 2017 Hans de Goede - 0.6.5-1 - New upstream release 0.6.5 * Mon Mar 13 2017 Hans de Goede - 0.6.4-1 - New upstream release 0.6.4 * Fri Feb 10 2017 Fedora Release Engineering - 0.6.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Dec 14 2016 Hans de Goede - 0.6.3-1 - New upstream release 0.6.3 (rhbz#1403457) * Fri Aug 12 2016 Hans de Goede - 0.6.2-1 - New upstream release 0.6.2 - The "Redistributable, no modification permitted" assets have been relicensed under CC-BY * Wed Feb 03 2016 Fedora Release Engineering - 0.5.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jan 8 2016 Hans de Goede - 0.5.8-3 - Fix crash due to missing /usr/share/cdogs-sdl/cdogs_icon.bmp (rhbz#1296890) * Fri Jun 19 2015 Hans de Goede - 0.5.8-2 - Add Keywords field to .desktop file * Thu Jun 18 2015 Hans de Goede - 0.5.8-1 - New upstream and new upstream release 0.5.8 - Fix FTBFS - Add an appdata file - cdogs-data is now part of the main cdogs-sdl package * Wed Jun 17 2015 Fedora Release Engineering - 0.4-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Aug 15 2014 Fedora Release Engineering - 0.4-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.4-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Rahul Sundaram - 0.4-11 - remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247 - clean up spec to follow current guidelines * Wed Feb 13 2013 Fedora Release Engineering - 0.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering - 0.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jan 12 2012 Fedora Release Engineering - 0.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jul 24 2009 Fedora Release Engineering - 0.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Feb 23 2009 Fedora Release Engineering - 0.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Feb 19 2008 Fedora Release Engineering - 0.4-4 - Autorebuild for GCC 4.3 * Tue Aug 21 2007 Hans de Goede 0.4-3 - Rebuild for buildId * Sun Aug 12 2007 Hans de Goede 0.4-2 - Update License tag for new Licensing Guidelines compliance - Fix building with new glibc open() argument checking * Mon Jul 16 2007 Hans de Goede 0.4-1 - Initial Fedora Extras package