2 # Spec file for package d2x.
4 # Tested with RPM <= 4.0.4 and GCC 2.95.3/3.3
9 Copyright: Freely Redistributable
10 Packager: btb@icculus.org
13 Summary: The port of Descent 2 Version 1.2 for Linux.
14 Provides: d2x, descent2
16 URL: http://icculus.org/d2x/
17 Source: d2x-%{version}.tar.gz
18 BuildRoot: /var/tmp/%name-buildroot
21 This is the port of Descent 2 Version 1.2, the famous 3D game for PC.
23 D2X is based on source code that was released the 14 December 1999 by
24 Parallax Software Corporation.
26 To use this package you'll need the datafiles from the Retail version
27 of Descent 2 Version 1.2 installed in /usr/share/games/descent2.
31 Summary: Descent 2 Version 1.2 for Linux, SDL version.
35 %description -n d2x-sdl
36 This is the port of Descent 2 Version 1.2, the famous 3D game for PC.
38 D2X is based on source code that was released the 14 December 1999 by
39 Parallax Software Corporation.
41 To use this package you'll need the datafiles from the Retail version
42 of Descent 2 Version 1.2 installed in /usr/share/games/descent2.
44 This version uses SDL for Audio, Input/Output and graphics rendering.
48 Summary: Descent 2 Version 1.2 for Linux, OpenGL version.
52 %description -n d2x-gl
53 This is the port of Descent 2 Version 1.2, the famous 3D game for PC.
55 D2X is based on source code that was released the 14 December 1999 by
56 Parallax Software Corporation.
58 To use this package you'll need the datafiles from the Retail version
59 of Descent 2 Version 1.2 installed in /usr/share/games/descent2.
61 This version uses SDL for Audio and Input/Output and OpenGL for graphics
68 CFLAGS="${RPM_OPT_FLAGS} -ffast-math -fno-strict-aliasing"
71 %configure --with-sharepath=/usr/share/games/descent2 --disable-debug \
72 --enable-release --prefix=/usr --bindir=/usr/games
74 mv d2x-sdl d2x-sdl.real
78 # Tell configure where to find libGLU (nonstandard location).
79 LDFLAGS="${LDFLAGS} -L/usr/X11R6/lib"
81 %configure --with-sharepath=/usr/share/games/descent2 --with-opengl \
82 --disable-debug --enable-release --prefix=/usr --bindir=/usr/games
83 # Tell make where to link libGLU (nonstandard location).
84 make LDFLAGS="${LDFLAGS} -L /usr/X11R6/lib"
86 cd libmve && make mveplayer
87 cd ../utilities && make utils
90 rm -rf $RPM_BUILD_ROOT
91 mkdir -p $RPM_BUILD_ROOT/usr/bin/
92 mkdir -p $RPM_BUILD_ROOT/usr/games/
93 mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
94 mkdir -p $RPM_BUILD_ROOT/usr/share/games/descent2/missions/
95 install -m 755 d2x-sdl.sh $RPM_BUILD_ROOT/usr/games/d2x-sdl
96 install -m 755 d2x-gl.sh $RPM_BUILD_ROOT/usr/games/d2x-gl
97 install d2x-sdl.real $RPM_BUILD_ROOT/usr/games/
98 install d2x-gl.real $RPM_BUILD_ROOT/usr/games/
99 install -s libmve/mveplayer $RPM_BUILD_ROOT/usr/bin/
100 cd utilities && install -s hogcreate hogextract mvlcreate mvlextract \
101 tex2txb txb2tex $RPM_BUILD_ROOT/usr/bin/
103 install -m 644 debian/*.1 $RPM_BUILD_ROOT/usr/share/man/man1/
106 rm -rf $RPM_BUILD_ROOT
109 %defattr(-,root,root)
110 %doc README README.utils NEWS INSTALL COPYING AUTHORS
111 %doc readme.txt cvshowto.txt compilerdefs.txt installation.txt
112 %dir /usr/share/games/descent2
113 %dir /usr/share/games/descent2/missions
121 /usr/share/man/man1/txb2tex.1*
122 /usr/share/man/man1/tex2txb.1*
123 /usr/share/man/man1/mveplayer.1*
124 /usr/share/man/man1/hogcreate.1*
125 /usr/share/man/man1/hogextract.1*
126 /usr/share/man/man1/mvlcreate.1*
127 /usr/share/man/man1/mvlextract.1*
130 %defattr(-,root,root)
132 /usr/games/d2x-sdl.real
135 %defattr(-,root,root)
137 /usr/games/d2x-gl.real
140 * Sun Jul 13 2003 - Paolo Ulivi <pulivi@libero.it>
141 - Build correctly with gcc3.
142 - Build all of the utilities and install manpages.
143 - Added --prefix and --bindir switches to %configure.
144 - Removed obsolete license.txt from docs, added README.utils
145 * Tue Feb 7 2002 - Paolo Ulivi <pulivi@libero.it>
146 - New SPEC version for inclusion in d2x/rpm (CVS)
147 * Wed Nov 14 2001 - Paolo Ulivi <paoloulivi@tin.it>
148 - New upstream version 0.1.2 (CVS) dated 11 Nov 2001
149 * Sat Oct 13 2001 - Paolo Ulivi <paoloulivi@tin.it>
150 - Release 1mdk of D2X Version 0.1.0 for Mandrake 8.0