%global git_date 20110826 %global git_version 613a59 %global waddir %{_datadir}/doom Name: freedoom Version: 0.7 Release: 1.%{git_date}git%{git_version}%{?dist} Summary: Replacement game files for doom game engines Group: Amusements/Games License: BSD URL: https://savannah.nongnu.org/projects/freedoom/ # git clone http://git.savannah.gnu.org/r/freedoom.git # cd %%{name}; # git archive --format=tar --prefix=%%{name}/ %%{git_version} | xz > %%{name}-%%{version}.%%{git_date}git%%{git_version}.tar.xz Source0: %{name}-%{version}.%{git_date}git%{git_version}.tar.xz #Source0: http://download.savannah.gnu.org/releases-noredirect/freedoom/freedoom-iwad/freedoom-iwad-0.6.4.zip Source1: freedoom.desktop Source2: freedoom.png BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: deutex Requires: prboom Requires(post): coreutils Requires(postun): coreutils %description A set of game resources for the DOOM game engine. While the Doom source code is Free, you currently still need one of the proprietary IWAD files from id in order to play Doom. Freedoom aims to create a Free alternative. Combined with the GPL-licensed Doom source code this will result in a completely Free Doom-based game. %prep %setup -q -n %{name} %build # deutex in Fedora doesn't support the rate option sed -i 's/-rate accept//' Makefile make %install install -pD -m 0644 wads/doom2.wad %{buildroot}/%{waddir}/freedoom.wad desktop-file-install --vendor fedora \ --dir %{buildroot}/%{_datadir}/applications \ %{SOURCE1} mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/ install -p -m 644 %{SOURCE2} %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/ %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %{waddir}/%{name}.wad %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/48x48/apps/*.png %doc README COPYING CREDITS NEWS %changelog * Fri Aug 26 2011 Rahul Sundaram - 0.7-1.20110826git613a59 - Update to latest upstream git snapshot - No need to explicitly define buildroot, defattr or have a clean stage anymore - Replace define with global as per current packaging guidelines - Fix icon cache scriplets as per current packaging guidelines - Fix the desktop file to follow the latest spec * Tue Feb 08 2011 Fedora Release Engineering - 0.6.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jul 24 2009 Fedora Release Engineering - 0.6.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri Jun 26 2009 Wart 0.6.4-1 - Update to 0.6.4 * Tue Feb 24 2009 Fedora Release Engineering - 0.6.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Dec 22 2008 Wart 0.6.2-2 - Add coreutils requirement for rpm post scripts * Wed Jun 4 2008 Wart 0.6.2-1 - Update to 0.6.2 * Sat Aug 11 2007 Wart 0.5-3 - Use correct .desktop file version * Sat Mar 3 2007 Wart 0.5-2 - Use better sourceforge download url - Use more precise desktop file categories * Fri Sep 15 2006 Wart 0.5-1 - Update to 0.5 * Tue Mar 14 2006 Wart 0.4.1-3 - Use correct License: tag. - Remove unnecessary comment. * Mon Mar 13 2006 Wart 0.4.1-2 - Install wad in new location (see discussion on bz #185211) * Sat Mar 11 2006 Wart 0.4.1-1 - Initial package for Fedora Extras