2012-05-25 18:23:36 +02:00
|
|
|
#
|
|
|
|
# spec file for package prboom-plus
|
|
|
|
#
|
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2011-06-27 17:07:42 +02:00
|
|
|
|
2012-05-25 18:23:36 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2011-06-27 17:07:42 +02:00
|
|
|
|
2012-05-25 18:23:36 +02:00
|
|
|
Name: prboom-plus
|
|
|
|
Version: 2.5.1.1
|
|
|
|
Release: 0
|
|
|
|
Summary: Open source port of the DOOM game engine
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Amusements/Games/3D/Shoot
|
|
|
|
Url: http://prboom-plus.sourceforge.net/
|
2012-05-25 18:24:23 +02:00
|
|
|
Source: %name-%{version}+.tar.xz
|
2012-05-25 18:23:36 +02:00
|
|
|
Patch1: prboom-nodatetime.diff
|
|
|
|
Patch2: prboom-types1.diff
|
|
|
|
Patch3: prboom-types2.diff
|
|
|
|
Patch4: prboom-protos.diff
|
|
|
|
Patch5: prboom-enable-tessellation.diff
|
|
|
|
Source2: clean_source.sh
|
|
|
|
BuildRequires: Mesa-devel
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: fluidsynth-devel
|
|
|
|
BuildRequires: libSDL_image-devel
|
|
|
|
BuildRequires: libSDL_mixer-devel
|
|
|
|
BuildRequires: libSDL_net-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libvorbis-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: xz
|
|
|
|
Suggests: freedoom
|
|
|
|
Provides: prboom > 2.5.0
|
|
|
|
Obsoletes: prboom <= 2.5.0
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-06-27 17:07:42 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
PrBoom+ is a Doom source port developed from the original PrBoom
|
|
|
|
project.
|
|
|
|
|
|
|
|
prboom is an open-source port of Doom, the classic 3D first-person
|
|
|
|
shooter game. It totally outclassed any 3D world games that preceded
|
|
|
|
it, with amazing speed, flexibility, and outstanding gameplay. The
|
|
|
|
specs to the game were released, and thousands of extra levels were
|
|
|
|
written by fans of the game; even today new levels are written for
|
|
|
|
Doom faster then any one person could play them.
|
|
|
|
|
|
|
|
The target of the prboom-plus project is to extend the original port
|
|
|
|
with features that are necessary or useful to the developers and all
|
|
|
|
those interested in their work. It is worth noting that all changes
|
|
|
|
introduced in no way break PrBoom's compatibility with the original
|
|
|
|
Doom/Doom2 engines, and it is possible to be confident this will
|
|
|
|
never happen in the future since compatibility is as important.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-08-03 18:41:47 +02:00
|
|
|
%patch -P 1 -P 2 -P 3 -P 4 -P 5 -p1
|
2011-06-27 17:07:42 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
./bootstrap;
|
|
|
|
# rpm has its own optimizations, so turn off shipped defaults
|
|
|
|
%configure --enable-gl --disable-cpu-opt --program-prefix='' \
|
2012-05-25 18:24:23 +02:00
|
|
|
--with-waddir=%_datadir/doom --disable-dogs
|
2011-06-27 17:07:42 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2012-05-26 10:11:27 +02:00
|
|
|
b="%buildroot";
|
2011-06-27 17:07:42 +02:00
|
|
|
make install DESTDIR="$b";
|
|
|
|
# Will manually package docs (see %%files)
|
2012-05-25 18:24:23 +02:00
|
|
|
rm -Rf "$b/%_datadir/doc";
|
|
|
|
mkdir -p "$b/%_bindir";
|
|
|
|
mv "$b/%_prefix/games"/* "$b/%_bindir/";
|
2011-06-27 17:07:42 +02:00
|
|
|
# Convenience symlink
|
2012-05-25 18:24:23 +02:00
|
|
|
ln -s prboom-plus "$b/%_bindir/prboom";
|
2011-06-27 17:07:42 +02:00
|
|
|
|
|
|
|
%files
|
2012-05-25 18:24:23 +02:00
|
|
|
%defattr(-,root,root)
|
2011-06-27 17:07:42 +02:00
|
|
|
%doc NEWS AUTHORS README
|
|
|
|
%doc doc/MBF.txt doc/MBFFAQ.txt doc/README.compat doc/README.demos doc/boom.txt
|
2012-05-25 18:24:23 +02:00
|
|
|
%_bindir/*
|
|
|
|
%_datadir/doom
|
|
|
|
%_mandir/*/*
|
2011-06-27 17:07:42 +02:00
|
|
|
|
|
|
|
%changelog
|