Name: glaxium Version: 0.5 Release: 13%{?dist} Summary: An OpenGL space shooter Group: Amusements/Games License: GPLv2+ URL: http://xhosxe.free.fr/glaxium/ Source0: http://xhosxe.free.fr/glaxium/%{name}_%{version}.tar.gz Source1: %{name}.desktop Source2: %{name}.png Patch0: %{name}-0.5-fixes.patch Patch1: %{name}_0.5-allow-running-when-dsp-busy.patch Patch2: %{name}_0.5-glutInit.patch Patch3: %{name}_0.5-rh553067.patch Patch4: %{name}_0.5-64bit-crash.patch Patch5: %{name}_0.5-fighter2_meshes-fix.patch BuildRequires: SDL_mixer-devel freeglut-devel libpng-devel desktop-file-utils Requires: hicolor-icon-theme opengl-games-utils %description Glaxium is an OpenGL-based space-ship "shoot-em-up" styled game. It is designed to provide the same feel as the old 2D games of that type, but with 3D for the special effects. %prep %setup -q -n %{name}_%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 sed -i 's|/games/glaxium|/glaxium|g' configure* Makefile.in sed -i 's/\r//g' CHANGES.txt LICENSE README.txt %build %configure make %{?_smp_mflags} %install # make install DESTDIR=$RPM_BUILD_ROOT doesn't work mkdir -p $RPM_BUILD_ROOT%{_bindir} %makeinstall ln -s opengl-game-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/%{name}-wrapper # below is the desktop file and icon stuff. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install --vendor fedora \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE1} mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps install -p -m 644 %{SOURCE2} \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps %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 CHANGES.txt LICENSE README.txt %{_bindir}/%{name}* %{_datadir}/%{name} %{_mandir}/man6/%{name}.6.gz %{_datadir}/applications/fedora-%{name}.desktop %{_datadir}/icons/hicolor/128x128/apps/%{name}.png %changelog * Thu May 3 2012 Hans de Goede <hdegoede@redhat.com> - 0.5-13 - Fix occasional crash caused by a bufferoverflow (#815826) * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.5-11 - Rebuild for new libpng * Thu Jun 16 2011 Hans de Goede <hdegoede@redhat.com> 0.5-10 - Fix crash on 64 bit machines * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Feb 16 2010 Hans de Goede <hdegoede@redhat.com> 0.5-8 - Fix FTBFS (#564699) * Thu Jan 7 2010 Hans de Goede <hdegoede@redhat.com> 0.5-7 - Fix crash when the level of the game with tanks is reached (#553067) * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.5-4 - Autorebuild for GCC 4.3 * Mon Dec 31 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.5-3 - Fix glaxium exiting when pressing space (bz 427048) * Sat Oct 6 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.5-2 - Add patch from packman which allows running when sound is not available - Minor .desktop file improvements * Thu Oct 4 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.5-1 - Initial Fedora package