Name: pachi Version: 1.0 Release: 35%{?dist} Summary: Pachi El Marciano - Platform Game License: GPLv2+ URL: http://dragontech.sourceforge.net/index.php?main=pachi&lang=en Source0: http://downloads.sourceforge.net/dragontech/pachi_source.tgz Source1: %{name}.desktop # manpage from Debian Source2: %{name}.6 Source3: %{name}.appdata.xml Patch0: %{name}-fixes.patch Patch1: %{name}-nosound.patch Patch2: %{name}-more-fixes.patch Patch3: %{name}-alt-warnigs-fix.patch BuildRequires: make BuildRequires: gcc gcc-c++ SDL_mixer-devel BuildRequires: desktop-file-utils ImageMagick libappstream-glib Requires: hicolor-icon-theme %description Pachi El Marciano is a cool 2D platform game. %prep %setup -q -n Pachi %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p0 %build %configure make %{?_smp_mflags} convert Tgfx/icon.bmp %{name}.png %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # easier then patching the Makefile rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}/%{name} mkdir -p $RPM_BUILD_ROOT%{_var}/games mv $RPM_BUILD_ROOT%{_var}/lib/games/%{name}/data/scores.dat \ $RPM_BUILD_ROOT%{_var}/games/%{name}.hs # below is the desktop file and icon stuff. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE1} mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps install -p -m 644 %{name}.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6 install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man6 mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/appdata appstream-util validate-relax --nonet \ $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml %files %doc ChangeLog README %license COPYING %attr(2755,root,games) %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/*%{name}.desktop %{_datadir}/icons/hicolor/32x32/apps/%{name}.png %{_mandir}/man6/%{name}.6* %config(noreplace) %attr (0664,root,games) %{_var}/games/%{name}.hs %changelog * Fri Jul 22 2022 Fedora Release Engineering - 1.0-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.0-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.0-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.0-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.0-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 1.0-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.0-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.0-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Aug 2 2018 Hans de Goede - 1.0-27 - Fix FTBFS (rhbz#1605361) - Add manpage - Add appdata * Fri Jul 13 2018 Fedora Release Engineering - 1.0-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 1.0-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 18 2018 Igor Gnatenko - 1.0-24 - Remove obsolete scriptlets * Thu Aug 03 2017 Fedora Release Engineering - 1.0-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 1.0-18 - Rebuilt for GCC 5 C++11 ABI change * Sun Aug 17 2014 Fedora Release Engineering - 1.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Jun 06 2014 Fedora Release Engineering - 1.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Apr 30 2013 Jon Ciesla - 1.0-14 - Drop desktop vendor tag. * Thu Feb 14 2013 Fedora Release Engineering - 1.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 1.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 1.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Jul 25 2009 Fedora Release Engineering - 1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Jan 30 2009 Hans de Goede 1.0-7 - Update description for new trademark guidelines * Sun Jan 11 2009 Hans de Goede 1.0-6 - Add 2 patches with small fixes from altlinux * Tue Feb 19 2008 Fedora Release Engineering - 1.0-5 - Autorebuild for GCC 4.3 * Sat Jan 12 2008 Hans de Goede 1.0-4 - Fix compilation with gcc 4.3 * Wed Aug 15 2007 Hans de Goede 1.0-3 - Update License tag for new Licensing Guidelines compliance * Thu Jan 11 2007 Hans de Goede 1.0-2 - Stop pachi from crashing when it cannot open the soundcard (bz 221561) * Fri Nov 10 2006 Hans de Goede 1.0-1 - initial Fedora Extras package