Name: Ri-li Version: 2.0.1 Release: 35%{?dist} Summary: Arcade game where you drive a toy wood engine License: GPLv2 or GPLv3 URL: http://ri-li.sourceforge.net/index.html Source0: http://dl.sf.net/sourceforge/ri-li/%{name}-%{version}.tar.bz2 Source1: %{name}.desktop Source2: %{name}.appdata.xml Patch0: Ri-li-2.0.1-build-fix.patch Patch1: Ri-li-2.0.1-gcc43.patch Patch2: Ri-li-gcc11.patch Patch3: Ri-li-configure-c99.patch BuildRequires: make BuildRequires: gcc-c++ BuildRequires: SDL_mixer-devel desktop-file-utils libappstream-glib Requires: hicolor-icon-theme %description You drive a toy wood engine in many levels and you must collect all the coaches to win. Full-featured: 18 languages, Colorful animated wood engine, 50 levels, 3 beautiful music tracks and many sound effects. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 sed -i 's/\r//g' README COPYING AUTHORS NEWS %build %configure make %{?_smp_mflags} %install %make_install # 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/16x16/apps mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps install -m 644 data/Ri-li-icon-16x16.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/%{name}.png install -m 644 data/Ri-li-icon-32x32.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png install -m 644 data/Ri-li-icon-48x48.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/%{name}.png mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/appdata appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/appdata/*.xml %files %doc README AUTHORS NEWS %license COPYING %{_bindir}/Ri_li %{_datadir}/%{name} %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.png %changelog * Mon Dec 12 2022 Florian Weimer - 2.0.1-35 - Port configure script to C99 * Wed Jul 20 2022 Fedora Release Engineering - 2.0.1-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 19 2022 Fedora Release Engineering - 2.0.1-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 2.0.1-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jan 25 2021 Fedora Release Engineering - 2.0.1-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Aug 01 2020 Fedora Release Engineering - 2.0.1-30 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Jeff Law - 2.0.1-29 - Avoid ordered comparisons of pointers against zero * Mon Jul 27 2020 Fedora Release Engineering - 2.0.1-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jan 28 2020 Fedora Release Engineering - 2.0.1-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jul 24 2019 Fedora Release Engineering - 2.0.1-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 2.0.1-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 2.0.1-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 2.0.1-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 18 2018 Igor Gnatenko - 2.0.1-22 - Remove obsolete scriptlets * Wed Aug 02 2017 Fedora Release Engineering - 2.0.1-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.0.1-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.0.1-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering - 2.0.1-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sat Jan 16 2016 Hans de Goede - 2.0.1-17 - Add appdata - Modernize spec a bit * Tue Jun 16 2015 Fedora Release Engineering - 2.0.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 2.0.1-15 - Rebuilt for GCC 5 C++11 ABI change * Fri Aug 15 2014 Fedora Release Engineering - 2.0.1-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Jun 06 2014 Fedora Release Engineering - 2.0.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Aug 02 2013 Fedora Release Engineering - 2.0.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed May 01 2013 Jon Ciesla - 2.0.1-11 - Drop desktop vendor tag. * Wed Feb 13 2013 Fedora Release Engineering - 2.0.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering - 2.0.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Feb 28 2012 Fedora Release Engineering - 2.0.1-8 - Rebuilt for c++ ABI breakage * Thu Jan 12 2012 Fedora Release Engineering - 2.0.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Feb 07 2011 Fedora Release Engineering - 2.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jul 24 2009 Fedora Release Engineering - 2.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Feb 23 2009 Fedora Release Engineering - 2.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Feb 19 2008 Fedora Release Engineering - 2.0.1-3 - Autorebuild for GCC 4.3 * Fri Jan 11 2008 Hans de Goede 2.0.1-2 - Fix compilation with gcc 4.3 * Wed Nov 7 2007 Hans de Goede 2.0.1-1 - New upstream release 2.0.1 * Mon Aug 6 2007 Hans de Goede 2.0.0-2 - Update License tag for new Licensing Guidelines compliance * Thu Nov 9 2006 Hans de Goede 2.0.0-1 - Initial Fedora Extras package