Name: dd2 Version: 0.2.2 Release: 5%{?dist} Summary: Dodgin' Diamond 2 - Shoot'em up arcade game Group: Amusements/Games License: GPLv2+ URL: http://www.usebox.net/jjm/dd2/ Source0: http://www.usebox.net/jjm/dd2/releases/dd2-%{version}.tar.gz Source1: %{name}.desktop Source2: %{name}.png Patch0: dd2-0.2.1-glob-highscore.patch Patch1: dd2-0.2.1-640x480-fullscreen.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: SDL_mixer-devel desktop-file-utils Requires: hicolor-icon-theme %description This is a little shoot'em up arcade game for one or two players. It aims to be an 'old school' arcade game with low resolution graphics, top-down scroll action, energy based gameplay and different weapons with several levels of power. %prep %setup -q %patch0 -p1 -z .highscore %patch1 -p1 -z .fs #stop autoxxx from rerunning touch src/data/Makefile.in %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name} mkdir -p $RPM_BUILD_ROOT%{_var}/games mv $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}-hiscore \ $RPM_BUILD_ROOT%{_var}/games # 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/24x24/apps install -p -m 644 %{SOURCE2} \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps/%{name}.png %clean rm -rf $RPM_BUILD_ROOT %post touch --no-create %{_datadir}/icons/hicolor || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %postun touch --no-create %{_datadir}/icons/hicolor || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README TODO %attr(2755,root,games) %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/fedora-%{name}.desktop %{_datadir}/icons/hicolor/24x24/apps/%{name}.png %config(noreplace) %attr (0664,root,games) %{_var}/games/%{name}-hiscore %changelog * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.2.2-3 - Autorebuild for GCC 4.3 * Wed Aug 22 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.2.2-2 - Upstream has respinned its tarbal, no significant changes * Tue Aug 14 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.2.2-1 - New upstream version, no changes except that it is now licenses under GPLv2 or any later version (the or any later version is new), hurray! * Mon Aug 6 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.2.1-2 - Update License tag for new Licensing Guidelines compliance - Make fullscreen mode 640x480 instead of 320x240, so that it will work better on LCD's * Sat Nov 18 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.2.1-1 - Initial Fedora Extras package