]> icculus.org git repositories - btb/d2x.git/blob - rpm/d2x.spec.in
more d1 level loading stuff
[btb/d2x.git] / rpm / d2x.spec.in
1 #
2 # Spec file for package d2x.
3 #
4 Name:          d2x
5 Version:       @VERSION@
6 Release:       1
7 Copyright:     Freely Redistributable
8 Packager:      bradleyb@u.washington.edu
9
10 Group:         Contrib/Games
11 Summary:       The port of Descent 2 Version 1.2 for Linux.
12 Provides:      d2x, descent2
13
14 URL:           http://shelob.classrooms.washington.edu/d2x/
15 Source:        d2x-%{version}.tar.gz
16 BuildRoot:     /var/tmp/%name-buildroot
17
18 %description
19 This is the port of Descent 2 Version 1.2, the famous 3D game for PC.
20
21 D2X is based on source code that was released the 14 December 1999 by
22 Parallax Software Corporation.
23
24 To use this package you'll need the datafiles from the Retail version
25 of Descent 2 Version 1.2 installed in /usr/share/games/descent2.
26
27 %package -n d2x-sdl
28 Group:         Contrib/Games
29 Summary:       Descent 2 Version 1.2 for Linux, SDL version.
30 Provides:      d2x-sdl
31 Requires:      d2x
32
33 %description -n d2x-sdl
34 This is the port of Descent 2 Version 1.2, the famous 3D game for PC.
35
36 D2X is based on source code that was released the 14 December 1999 by
37 Parallax Software Corporation.
38
39 To use this package you'll need the datafiles from the Retail version
40 of Descent 2 Version 1.2 installed in /usr/share/games/descent2.
41
42 This version uses SDL for Audio, Input/Output and graphics rendering.
43
44 %package -n d2x-gl
45 Group:         Contrib/Games
46 Summary:       Descent 2 Version 1.2 for Linux, OpenGL version.
47 Provides:      d2x-gl
48 Requires:      d2x
49
50 %description -n d2x-gl
51 This is the port of Descent 2 Version 1.2, the famous 3D game for PC.
52
53 D2X is based on source code that was released the 14 December 1999 by
54 Parallax Software Corporation.
55
56 To use this package you'll need the datafiles from the Retail version
57 of Descent 2 Version 1.2 installed in /usr/share/games/descent2.
58
59 This version uses SDL for Audio and Input/Output and OpenGL for graphics
60 rendering.
61
62 %prep
63 %setup -q -n d2x*
64 #./autogen.sh
65
66 %build
67 # d2x-sdl
68 %configure --with-sharepath=/usr/share/games/descent2 --disable-debug
69 make
70 mv d2x-sdl d2x-sdl.real
71 # d2x-gl
72 make clean
73 rm -f config.cache
74 # Tell configure where to find libGLU (nonstandard location).
75 export LDFLAGS="${LDFLAGS} -L/usr/X11R6/lib"
76 %configure --with-sharepath=/usr/share/games/descent2 --with-opengl \
77         --disable-debug
78 # Tell make where to link libGLU (nonstandard location).
79 make LDFLAGS="${LDFLAGS} -L /usr/X11R6/lib"
80 mv d2x-gl d2x-gl.real
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 mkdir -p $RPM_BUILD_ROOT/usr/games/
85 mkdir -p $RPM_BUILD_ROOT/usr/share/games/descent2/missions/
86 install -m 755 d2x-sdl.sh $RPM_BUILD_ROOT/usr/games/d2x-sdl
87 install -m 755 d2x-gl.sh $RPM_BUILD_ROOT/usr/games/d2x-gl
88 install d2x-sdl.real $RPM_BUILD_ROOT/usr/games/
89 install d2x-gl.real $RPM_BUILD_ROOT/usr/games/
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %files
95 %defattr(-,root,root)
96 %doc README NEWS INSTALL COPYING AUTHORS
97 %doc readme.txt cvshowto.txt license.txt compilerdefs.txt
98 %doc installation.txt mingw32.txt
99 %dir /usr/share/games/descent2
100 %dir /usr/share/games/descent2/missions
101
102 %files -n d2x-sdl
103 %defattr(-,root,root)
104 /usr/games/d2x-sdl
105 /usr/games/d2x-sdl.real
106
107 %files -n d2x-gl
108 %defattr(-,root,root)
109 /usr/games/d2x-gl
110 /usr/games/d2x-gl.real
111
112 %changelog
113 * Tue Feb  7 2002 - Paolo Ulivi <pulivi@libero.it>
114 - New SPEC version for inclusion in d2x/rpm (CVS)
115 * Wed Nov 14 2001 - Paolo Ulivi <paoloulivi@tin.it>
116 - New upstream version 0.1.2 (CVS) dated 11 Nov 2001
117 * Sat Oct 13 2001 - Paolo Ulivi <paoloulivi@tin.it>
118 - Release 1mdk of D2X Version 0.1.0 for Mandrake 8.0