151 lines
4.5 KiB
RPMSpec
151 lines
4.5 KiB
RPMSpec
#
|
|
# Spec file for package d2x.
|
|
#
|
|
# Tested with RPM <= 4.0.4 and GCC 2.95.3/3.3
|
|
#
|
|
Name: d2x
|
|
Version: @VERSION@
|
|
Release: 1
|
|
Copyright: Freely Redistributable
|
|
Packager: btb@icculus.org
|
|
|
|
Group: Contrib/Games
|
|
Summary: The port of Descent 2 Version 1.2 for Linux.
|
|
Provides: d2x, descent2
|
|
|
|
URL: http://icculus.org/d2x/
|
|
Source: d2x-%{version}.tar.gz
|
|
BuildRoot: /var/tmp/%name-buildroot
|
|
|
|
%description
|
|
This is the port of Descent 2 Version 1.2, the famous 3D game for PC.
|
|
|
|
D2X is based on source code that was released the 14 December 1999 by
|
|
Parallax Software Corporation.
|
|
|
|
To use this package you'll need the datafiles from the Retail version
|
|
of Descent 2 Version 1.2 installed in /usr/share/games/descent2.
|
|
|
|
%package -n d2x-sdl
|
|
Group: Contrib/Games
|
|
Summary: Descent 2 Version 1.2 for Linux, SDL version.
|
|
Provides: d2x-sdl
|
|
Requires: d2x
|
|
|
|
%description -n d2x-sdl
|
|
This is the port of Descent 2 Version 1.2, the famous 3D game for PC.
|
|
|
|
D2X is based on source code that was released the 14 December 1999 by
|
|
Parallax Software Corporation.
|
|
|
|
To use this package you'll need the datafiles from the Retail version
|
|
of Descent 2 Version 1.2 installed in /usr/share/games/descent2.
|
|
|
|
This version uses SDL for Audio, Input/Output and graphics rendering.
|
|
|
|
%package -n d2x-gl
|
|
Group: Contrib/Games
|
|
Summary: Descent 2 Version 1.2 for Linux, OpenGL version.
|
|
Provides: d2x-gl
|
|
Requires: d2x
|
|
|
|
%description -n d2x-gl
|
|
This is the port of Descent 2 Version 1.2, the famous 3D game for PC.
|
|
|
|
D2X is based on source code that was released the 14 December 1999 by
|
|
Parallax Software Corporation.
|
|
|
|
To use this package you'll need the datafiles from the Retail version
|
|
of Descent 2 Version 1.2 installed in /usr/share/games/descent2.
|
|
|
|
This version uses SDL for Audio and Input/Output and OpenGL for graphics
|
|
rendering.
|
|
|
|
%prep
|
|
%setup -q -n d2x*
|
|
|
|
%build
|
|
CFLAGS="${RPM_OPT_FLAGS} -ffast-math -fno-strict-aliasing"
|
|
export CFLAGS
|
|
# d2x-sdl
|
|
%configure --with-sharepath=/usr/share/games/descent2 --disable-debug \
|
|
--enable-release --prefix=/usr --bindir=/usr/games
|
|
make
|
|
mv d2x-sdl d2x-sdl.real
|
|
# d2x-gl
|
|
make clean
|
|
rm -f config.cache
|
|
# Tell configure where to find libGLU (nonstandard location).
|
|
LDFLAGS="${LDFLAGS} -L/usr/X11R6/lib"
|
|
export LDFLAGS
|
|
%configure --with-sharepath=/usr/share/games/descent2 --with-opengl \
|
|
--disable-debug --enable-release --prefix=/usr --bindir=/usr/games
|
|
# Tell make where to link libGLU (nonstandard location).
|
|
make LDFLAGS="${LDFLAGS} -L /usr/X11R6/lib"
|
|
mv d2x-gl d2x-gl.real
|
|
cd libmve && make mveplayer
|
|
cd ../utilities && make utils
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
mkdir -p $RPM_BUILD_ROOT/usr/bin/
|
|
mkdir -p $RPM_BUILD_ROOT/usr/games/
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/games/descent2/missions/
|
|
install -m 755 d2x-sdl.sh $RPM_BUILD_ROOT/usr/games/d2x-sdl
|
|
install -m 755 d2x-gl.sh $RPM_BUILD_ROOT/usr/games/d2x-gl
|
|
install d2x-sdl.real $RPM_BUILD_ROOT/usr/games/
|
|
install d2x-gl.real $RPM_BUILD_ROOT/usr/games/
|
|
install -s libmve/mveplayer $RPM_BUILD_ROOT/usr/bin/
|
|
cd utilities && install -s hogcreate hogextract mvlcreate mvlextract \
|
|
tex2txb txb2tex $RPM_BUILD_ROOT/usr/bin/
|
|
cd ..
|
|
install -m 644 debian/*.1 $RPM_BUILD_ROOT/usr/share/man/man1/
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README README.utils NEWS INSTALL COPYING AUTHORS
|
|
%doc readme.txt cvshowto.txt compilerdefs.txt installation.txt
|
|
%dir /usr/share/games/descent2
|
|
%dir /usr/share/games/descent2/missions
|
|
/usr/bin/txb2tex
|
|
/usr/bin/tex2txb
|
|
/usr/bin/mveplayer
|
|
/usr/bin/hogcreate
|
|
/usr/bin/hogextract
|
|
/usr/bin/mvlcreate
|
|
/usr/bin/mvlextract
|
|
/usr/share/man/man1/txb2tex.1*
|
|
/usr/share/man/man1/tex2txb.1*
|
|
/usr/share/man/man1/mveplayer.1*
|
|
/usr/share/man/man1/hogcreate.1*
|
|
/usr/share/man/man1/hogextract.1*
|
|
/usr/share/man/man1/mvlcreate.1*
|
|
/usr/share/man/man1/mvlextract.1*
|
|
|
|
%files -n d2x-sdl
|
|
%defattr(-,root,root)
|
|
/usr/games/d2x-sdl
|
|
/usr/games/d2x-sdl.real
|
|
|
|
%files -n d2x-gl
|
|
%defattr(-,root,root)
|
|
/usr/games/d2x-gl
|
|
/usr/games/d2x-gl.real
|
|
|
|
%changelog
|
|
* Sun Jul 13 2003 - Paolo Ulivi <pulivi@libero.it>
|
|
- Build correctly with gcc3.
|
|
- Build all of the utilities and install manpages.
|
|
- Added --prefix and --bindir switches to %configure.
|
|
- Removed obsolete license.txt from docs, added README.utils
|
|
* Tue Feb 7 2002 - Paolo Ulivi <pulivi@libero.it>
|
|
- New SPEC version for inclusion in d2x/rpm (CVS)
|
|
* Wed Nov 14 2001 - Paolo Ulivi <paoloulivi@tin.it>
|
|
- New upstream version 0.1.2 (CVS) dated 11 Nov 2001
|
|
* Sat Oct 13 2001 - Paolo Ulivi <paoloulivi@tin.it>
|
|
- Release 1mdk of D2X Version 0.1.0 for Mandrake 8.0
|