2008-05-02 01:53:07 +02:00
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
%define waddir %{_datadir}/doom
|
|
|
|
|
|
|
|
Name: freedoom-freedm
|
|
|
|
|
2008-07-01 23:11:19 +02:00
|
|
|
Version: 0.6.2
|
|
|
|
Release: 1
|
2008-05-02 01:53:07 +02:00
|
|
|
Summary: Deathmatch levels for Doom
|
|
|
|
|
|
|
|
Group: Amusements/Games
|
|
|
|
License: BSD
|
|
|
|
URL: http://freedoom.sourceforge.net
|
2008-07-01 23:11:19 +02:00
|
|
|
Source0: http://downloads.sourceforge.net/freedoom/freedm-%{version}.zip
|
2008-05-02 01:53:07 +02:00
|
|
|
Source1: freedoom-freedm.desktop
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: unzip
|
2008-12-04 10:16:03 +01:00
|
|
|
# Added BuildRequires in order to have a 'valid' desktop file as a result
|
|
|
|
BuildRequires: prboom freedoom
|
2008-05-02 01:53:07 +02:00
|
|
|
Requires: prboom freedoom
|
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
BuildRequires: licenses
|
|
|
|
Requires: licenses
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
A set of deathmatch levels for the DOOM game engine, based on the
|
|
|
|
freely redistributable Freedoom game files.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2008-07-01 23:11:19 +02:00
|
|
|
%setup -q -n freedm-%{version}
|
2008-05-02 01:53:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
#rm -rf $RPM_BUILD_ROOT
|
|
|
|
install -pD -m 0644 freedm.wad $RPM_BUILD_ROOT/%{waddir}/freedm.wad
|
2008-10-05 16:45:22 +02:00
|
|
|
|
|
|
|
%suse_update_desktop_file -i %{name} Game ActionGame
|
2008-05-02 01:53:07 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{waddir}/freedm.wad
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%doc README COPYING CREDITS NEWS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|