]> git.pld-linux.org Git - packages/d1x.git/blob - d1x.spec
- tabs in preamble
[packages/d1x.git] / d1x.spec
1 Summary:        D1X - modified version of Descent 1
2 Summary(pl.UTF-8):      D1X - zmodyfikowana wersja Descenta 1
3 Name:           d1x
4 Version:        1.43
5 %define sver    %(echo %{version} | tr -d .)
6 Release:        6
7 License:        non-commercial
8 Group:          X11/Applications/Games
9 Source0:        ftp://pyropilots.org/pub/d1x/%{name}%{sver}sc.tar.bz2
10 # Source0-md5:  fb52fd2990b2fadcea804238be648e53
11 Patch0:         %{name}-config.patch
12 Patch1:         %{name}-opt.patch
13 Patch2:         %{name}-fix.patch
14 Patch3:         %{name}-paths.patch
15 Patch4:         %{name}-maths.patch
16 Patch5:         %{name}-types.patch
17 Patch6:         %{name}-gcc3.patch
18 Patch7:         %{name}-joystick.patch
19 Patch8:         %{name}-assert.patch
20 Patch9:         %{name}-fixc.patch
21 URL:            http://d1x.warpcore.org/
22 BuildRequires:  OpenGL-devel
23 BuildRequires:  SDL-devel >= 1.1
24 %ifarch %{ix86}
25 BuildRequires:  nasm
26 %endif
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
30
31 %description
32 D1X is a modification of the Descent 1 source that was released by
33 Parallax. It's mostly compatible with the Descent 1 v1.5, both in
34 multiplayer and on the local machine.
35
36 %description -l pl.UTF-8
37 D1X to modyfikacja źródeł Descenta 1 udostępnionych przez Parallax.
38 Jest w większości kompatybilny z Descentem 1 w wersji 1.5, zarówno
39 w trybie dla wielu graczy, jak i bez sieci.
40
41 %package common
42 Summary:        D1X - modified version of Descent 1
43 Summary(pl.UTF-8):      D1X - zmodyfikowana wersja Descenta 1
44 Group:          X11/Applications/Games
45
46 %description common
47 D1X is a modification of the Descent 1 source that was released by
48 Parallax. It's mostly compatible with the Descent 1 v1.5, both in
49 multiplayer and on the local machine.
50
51 This package contains only common files for all versions of D1X. You
52 will need also one of game binaries (either SDL or GL version)
53 appropriate for your versions of game data (shareware or full) and
54 actual game data files.
55
56 %description common -l pl.UTF-8
57 D1X to modyfikacja źródeł Descenta 1 udostępnionych przez Parallax.
58 Jest w większości kompatybilny z Descentem 1 w wersji 1.5, zarówno
59 w trybie dla wielu graczy, jak i bez sieci.
60
61 Ten pakiet zawiera tylko wspólne pliki dla wszystkich wersji D1X.
62 Oprócz niego potrzebny jest któryś z pakietów z binarką gry (w wersji
63 SDL lub GL) odpowiedni dla posiadanych danych gry (shareware lub
64 pełnej wersji) oraz właściwe pliki z danymi.
65
66 %package sdl-full
67 Summary:        D1X - SDL-based binary for full version of game
68 Summary(pl.UTF-8):      D1X - używająca SDL binarka dla pełnej wersji gry
69 Group:          X11/Applications/Games
70 Provides:       d1x-full
71 Requires:       %{name}-common = %{version}
72
73 %description sdl-full
74 This package contains D1X binary compiled with SDL support for full
75 version of game. You will need to place full (commercial) version of
76 game data files in /usr/X11R6/share/d1x.
77
78 %description sdl-full -l pl.UTF-8
79 Ten pakiet zawiera binarkę D1X skompilowaną z obsługą SDL dla pełnej
80 wersji gry. Pliki z danymi z pełnej (komercyjnej) wersji gry trzeba
81 umieścić w katalogu /usr/X11R6/share/d1x.
82
83 %package sdl-shareware
84 Summary:        D1X - SDL-based binary for shareware version of game
85 Summary(pl.UTF-8):      D1X - używająca SDL binarka dla wersji shareware gry
86 Group:          X11/Applications/Games
87 Provides:       d1x-shareware
88 Requires:       %{name}-common = %{version}
89
90 %description sdl-shareware
91 This package contains D1X binary compiled with SDL support for full
92 version of game. You will need to install d1x-data-shareware package
93 or place shareware version of game data files in /usr/X11R6/share/d1x.
94
95 %description sdl-shareware -l pl.UTF-8
96 Ten pakiet zawiera binarkę D1X skompilowaną z obsługą SDL dla wersji
97 shareware gry. Trzeba do niego doinstalować pakiet d1x-data-shareware
98 lub pliki z danymi z wersji shareware umieścić w /usr/X11R6/share/d1x.
99
100 %package gl-full
101 Summary:        D1X - GL-based binary for full version of game
102 Summary(pl.UTF-8):      D1X - używająca GL binarka dla pełnej wersji gry
103 Group:          X11/Applications/Games
104 Provides:       d1x-full
105 Requires:       %{name}-common = %{version}
106 Requires:       OpenGL
107
108 %description gl-full
109 This package contains D1X binary compiled with GL support for full
110 version of game. You will need to place full (commercial) version of
111 game data files in /usr/X11R6/share/d1x.
112
113 %description gl-full -l pl.UTF-8
114 Ten pakiet zawiera binarkę D1X skompilowaną z obsługą GL dla pełnej
115 wersji gry. Pliki z danymi z pełnej (komercyjnej) wersji gry trzeba
116 umieścić w katalogu /usr/X11R6/share/d1x.
117
118 %package gl-shareware
119 Summary:        D1X - GL-based binary for shareware version of game
120 Summary(pl.UTF-8):      D1X - używająca GL binarka dla wersji shareware gry
121 Group:          X11/Applications/Games
122 Provides:       d1x-shareware
123 Requires:       %{name}-common = %{version}
124 Requires:       OpenGL
125
126 %description gl-shareware
127 This package contains D1X binary compiled with GL support for full
128 version of game. You will need to install d1x-data-shareware package
129 or place shareware version of game data files in /usr/X11R6/share/d1x.
130
131 %description gl-shareware -l pl.UTF-8
132 Ten pakiet zawiera binarkę D1X skompilowaną z obsługą GL dla wersji
133 shareware gry. Trzeba do niego doinstalować pakiet d1x-data-shareware
134 lub pliki z danymi z wersji shareware umieścić w /usr/X11R6/share/d1x.
135
136 %prep
137 %setup -q -n %{name}
138 %patch0 -p1
139 %patch1 -p1
140 %patch2 -p1
141 %patch3 -p1
142 %patch4 -p1
143 %patch5 -p1
144 %patch6 -p1
145 %patch7 -p1
146 %patch8 -p1
147 %patch9 -p1
148
149 %build
150 mkdir lib
151 %ifnarch %{ix86}
152 echo "NO_ASM = 1" >> defines.in
153 %endif
154 %ifarch sparc sparc64
155 echo "BIGENDIAN = 1" >> defines.in
156 %endif
157
158 cp -f defines.in defines.mak
159 echo "SDL_IO = 1" >> defines.mak
160 %{__make} \
161         CC="%{__cc}" \
162         CXX="%{__cxx}" \
163         LFLAGS="%{rpmldflags} -L/usr/X11R6/%{_lib}" \
164         OPTFLAGS="%{rpmcflags} -DD1XDATAPATH=\\\"%{_datadir}/d1x/\\\" -I../../main"
165 mv -f ?1x143 d1x-sdl-full
166
167 %{__make} clean
168 echo "SHAREWARE = 1" >> defines.mak
169 %{__make} \
170         CC="%{__cc}" \
171         CXX="%{__cxx}" \
172         LFLAGS="%{rpmldflags} -L/usr/X11R6/%{_lib}" \
173         OPTFLAGS="%{rpmcflags} -DD1XDATAPATH=\\\"%{_datadir}/d1x/\\\" -I../../main"
174 mv -f ?1x143sh d1x-sdl-share
175
176 %{__make} clean
177 cp -f defines.in defines.mak
178 echo "SDLGL_IO = 1" >> defines.mak
179 %{__make} \
180         CC="%{__cc}" \
181         CXX="%{__cxx}" \
182         LFLAGS="%{rpmldflags} -L/usr/X11R6/%{_lib}" \
183         OPTFLAGS="%{rpmcflags} -DD1XDATAPATH=\\\"%{_datadir}/d1x/\\\" -I../../main"
184 mv -f ?1x143_ogl d1x-gl-full
185
186 %{__make} clean
187 echo "SHAREWARE = 1" >> defines.mak
188 %{__make} \
189         CC="%{__cc}" \
190         CXX="%{__cxx}" \
191         LFLAGS="%{rpmldflags} -L/usr/X11R6/%{_lib}" \
192         OPTFLAGS="%{rpmcflags} -DD1XDATAPATH=\\\"%{_datadir}/d1x/\\\" -I../../main"
193 mv -f ?1x143sh_ogl d1x-gl-share
194
195 %install
196 rm -rf $RPM_BUILD_ROOT
197 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/d1x}
198
199 install d1x-*-* $RPM_BUILD_ROOT%{_bindir}
200
201 %clean
202 rm -rf $RPM_BUILD_ROOT
203
204 %files common
205 %defattr(644,root,root,755)
206 %doc bugs.txt d1x.faq d1x.ini d1x.txt d1x140.txt license.txt readme.d1x readme.org todo.txt
207 %dir %{_datadir}/d1x
208
209 %files sdl-full
210 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_bindir}/d1x-sdl-full
212
213 %files sdl-shareware
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_bindir}/d1x-sdl-share
216
217 %files gl-full
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_bindir}/d1x-gl-full
220
221 %files gl-shareware
222 %defattr(644,root,root,755)
223 %attr(755,root,root) %{_bindir}/d1x-gl-share
This page took 0.133151 seconds and 3 git commands to generate.