Name: ants Version: 1.4 Release: 34%{?dist} Summary: Guide the insects safely home before they drop of the cliff License: Public Domain URL: http://www.allegro.cc/depot/Ants Source0: http://games.linux.sk/files/ants-1.4.tar.gz Source1: ants.desktop Source2: ants-level-editor.desktop Source3: ants.png Source4: license-info Patch0: ants-1.4-fixes.patch BuildRequires: gcc-c++ BuildRequires: allegro-devel desktop-file-utils BuildRequires: make Requires: hicolor-icon-theme %description You take command in the game of a bunch of small ants and have to guide them around in levels. Since the ants walk on their own, the player can only influence them by giving them commands, like build a bridge, dig a hole or redirect all ants in the other direction. The goal of each level is to reach the exit, for which multiple combination of commands are necessary. The game is presented in a 2D side view. %package level-editor Summary: Ants level editor Requires: %{name} = %{version}-%{release} %description level-editor This package contains a level editor for ants, notice that you must run this at root, or change the owner of the files under %{_datadir}/%{name}, as the level editor edits the files directly under %{_datadir}/%{name} . %prep %setup -q %patch0 -p1 -z .fix sed -i 's/\r//g' ants.txt cp %{SOURCE4} . %build make %{?_smp_mflags} EXTRA_CFLAGS="-std=c++14 $RPM_OPT_FLAGS" %install #no make install target, DIY mkdir -p $RPM_BUILD_ROOT%{_bindir} mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name} install -m 755 %{name} %{name}_le $RPM_BUILD_ROOT%{_bindir} cp -a %{name}.dat levels1 levels2 $RPM_BUILD_ROOT%{_datadir}/%{name} # 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} desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2} mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps install -p -m 644 %{SOURCE3} \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/ %files %doc Changelog ants.txt license-info %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/32x32/apps/%{name}.png %files level-editor %{_bindir}/%{name}_le %{_datadir}/applications/%{name}-level-editor.desktop %changelog * Wed Jul 20 2022 Fedora Release Engineering - 1.4-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 19 2022 Fedora Release Engineering - 1.4-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 1.4-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.4-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Aug 18 2020 Jeff Law - 1.4-30 - Force C++14 as this code is not C++17 ready * Sat Aug 01 2020 Fedora Release Engineering - 1.4-29 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.4-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jan 28 2020 Fedora Release Engineering - 1.4-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jul 24 2019 Fedora Release Engineering - 1.4-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 1.4-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 1.4-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 1.4-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Jan 07 2018 Igor Gnatenko - 1.4-22 - Remove obsolete scriptlets * Wed Aug 02 2017 Fedora Release Engineering - 1.4-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.4-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 1.4-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering - 1.4-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jun 16 2015 Fedora Release Engineering - 1.4-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 1.4-16 - Rebuilt for GCC 5 C++11 ABI change * Fri Aug 15 2014 Fedora Release Engineering - 1.4-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.4-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sat Feb 09 2013 Rahul Sundaram - 1.4-12 - remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247 - clean up spec to follow current guidelines * Wed Jul 18 2012 Fedora Release Engineering - 1.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jan 12 2012 Fedora Release Engineering - 1.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Jul 15 2011 Hans de Goede - 1.4-9 - Rebuild for new allegro-4.4 * Mon Feb 07 2011 Fedora Release Engineering - 1.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jul 24 2009 Fedora Release Engineering - 1.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Feb 23 2009 Fedora Release Engineering - 1.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Jan 30 2009 Hans de Goede 1.4-5 - Update description for new trademark guidelines * Tue Feb 19 2008 Fedora Release Engineering - 1.4-4 - Autorebuild for GCC 4.3 * Tue Aug 21 2007 Hans de Goede 1.4-3 - Rebuild for buildId * Thu May 17 2007 Hans de Goede 1.4-2 - Add desktop menu entry for the level editor * Sun May 13 2007 Hans de Goede 1.4-1 - Initial Fedora Extras package