# norootforbuild %define waddir %{_datadir}/doom Name: freedoom Version: 0.6.4 Release: 1 Summary: Replacement game files for doom game engines Group: Amusements/Games License: BSD URL: http://freedoom.sourceforge.net/ Source0: http://mirror.lihnidos.org/GNU/savannah/freedoom/freedoom-iwad/freedoom-iwad-%{version}.zip Source1: freedoom.desktop Source2: freedoom.png BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildArch: noarch BuildRequires: update-desktop-files BuildRequires: unzip Requires: prboom %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 freedoom-iwad-%{version} %build # Game data files. Nothing to build! %install install -pD -m 0644 doom2.wad $RPM_BUILD_ROOT/%{waddir}/freedoom.wad %suse_update_desktop_file -i %{name} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING CREDITS ChangeLog NEWS README README.html %dir %{waddir} %{waddir}/%{name}.wad %{_datadir}/applications/*.desktop %{_datadir}/pixmaps/*.png %changelog