freedoom/freedoom.spec

72 lines
1.7 KiB
RPMSpec

# norootforbuild
%define waddir %{_datadir}/doom
Name: freedoom
Version: 0.6.2
Release: 1
Summary: Replacement game files for doom game engines
Group: Amusements/Games
License: BSD
URL: http://freedoom.sourceforge.net
Source0: http://downloads.sourceforge.net/freedoom/freedoom-iwad-%{version}.zip
Source1: freedoom.desktop
Source2: freedoom.png
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
BuildRequires: update-desktop-files
BuildRequires: unzip
%if 0%{?suse_version} > 1020
BuildRequires: licenses
Requires: licenses
%endif
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
%if 0%{?suse_version} > 1020
for FILE in COPYING ; do
MD5SUM=$(md5sum $FILE | sed 's/ .*//')
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
fi
done
%endif
install -pD -m 0644 doom2.wad $RPM_BUILD_ROOT/%{waddir}/freedoom.wad
%suse_update_desktop_file -i %{name} Game ActionGame
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%ghost %{waddir}
%{waddir}/%{name}.wad
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png
%doc README COPYING CREDITS NEWS
%changelog