]> icculus.org git repositories - btb/d2x.git/blob - rpm/d2x.spec.in
landscape fixes, implemented gr_check_mode
[btb/d2x.git] / rpm / d2x.spec.in
1 #
2 # Spec file for package d2x.
3 #
4 # Tested with RPM <= 4.0.4 and GCC 2.95.3/3.3
5 #
6 Name:          d2x
7 Version:       @VERSION@
8 Release:       1
9 Copyright:     Freely Redistributable
10 Packager:      btb@icculus.org
11
12 Group:         Contrib/Games
13 Summary:       The port of Descent 2 Version 1.2 for Linux.
14 Provides:      d2x, descent2
15
16 URL:           http://icculus.org/d2x/
17 Source:        d2x-%{version}.tar.gz
18 BuildRoot:     /var/tmp/%name-buildroot
19
20 %description
21 This is the port of Descent 2 Version 1.2, the famous 3D game for PC.
22
23 D2X is based on source code that was released the 14 December 1999 by
24 Parallax Software Corporation.
25
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.
28
29 %package -n d2x-sdl
30 Group:         Contrib/Games
31 Summary:       Descent 2 Version 1.2 for Linux, SDL version.
32 Provides:      d2x-sdl
33 Requires:      d2x
34
35 %description -n d2x-sdl
36 This is the port of Descent 2 Version 1.2, the famous 3D game for PC.
37
38 D2X is based on source code that was released the 14 December 1999 by
39 Parallax Software Corporation.
40
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.
43
44 This version uses SDL for Audio, Input/Output and graphics rendering.
45
46 %package -n d2x-gl
47 Group:         Contrib/Games
48 Summary:       Descent 2 Version 1.2 for Linux, OpenGL version.
49 Provides:      d2x-gl
50 Requires:      d2x
51
52 %description -n d2x-gl
53 This is the port of Descent 2 Version 1.2, the famous 3D game for PC.
54
55 D2X is based on source code that was released the 14 December 1999 by
56 Parallax Software Corporation.
57
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.
60
61 This version uses SDL for Audio and Input/Output and OpenGL for graphics
62 rendering.
63
64 %prep
65 %setup -q -n d2x*
66
67 %build
68 CFLAGS="${RPM_OPT_FLAGS} -ffast-math -fno-strict-aliasing"
69 export CFLAGS
70 # d2x-sdl
71 %configure --with-sharepath=/usr/share/games/descent2 --disable-debug \
72         --enable-release --prefix=/usr --bindir=/usr/games
73 make
74 mv d2x-sdl d2x-sdl.real
75 # d2x-gl
76 make clean
77 rm -f config.cache
78 # Tell configure where to find libGLU (nonstandard location).
79 LDFLAGS="${LDFLAGS} -L/usr/X11R6/lib"
80 export LDFLAGS
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"
85 mv d2x-gl d2x-gl.real
86 cd libmve && make mveplayer
87 cd ../utilities && make utils
88
89 %install
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/
102 cd ..
103 install -m 644 debian/*.1 $RPM_BUILD_ROOT/usr/share/man/man1/
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %files
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
114 /usr/bin/txb2tex
115 /usr/bin/tex2txb
116 /usr/bin/mveplayer
117 /usr/bin/hogcreate
118 /usr/bin/hogextract
119 /usr/bin/mvlcreate
120 /usr/bin/mvlextract
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*
128
129 %files -n d2x-sdl
130 %defattr(-,root,root)
131 /usr/games/d2x-sdl
132 /usr/games/d2x-sdl.real
133
134 %files -n d2x-gl
135 %defattr(-,root,root)
136 /usr/games/d2x-gl
137 /usr/games/d2x-gl.real
138
139 %changelog
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