1 |
shadow95 |
169603 |
%define oname quake2 |
2 |
|
|
%define icculus_version 3.00 |
3 |
|
|
%define rogue_source %{oname}-rogue |
4 |
|
|
%define xatrix_source %{oname}-xatrix |
5 |
|
|
%define rogue_version 1.04 |
6 |
|
|
%define xatrix_version 1.06 |
7 |
|
|
|
8 |
|
|
Summary: Quake II |
9 |
|
|
Name: yamagi-%{oname} |
10 |
|
|
Version: 3.00 |
11 |
|
|
Release: %mkrel 1.1 |
12 |
shadow95 |
172209 |
URL: http://www.yamagi.org/quake2/ |
13 |
shadow95 |
169603 |
Source0: %{oname}-%{version}.tar.bz2 |
14 |
|
|
Source1: %{rogue_source}-%{rogue_version}.tar.bz2 |
15 |
|
|
Source2: %{xatrix_source}-%{xatrix_version}.tar.bz2 |
16 |
|
|
Source6: q2ded.sh |
17 |
|
|
Source7: q2ded.cfg |
18 |
|
|
Source8: q2ctf.sh |
19 |
|
|
Source9: q2ctf.cfg |
20 |
|
|
Source11: %{oname}_16.png |
21 |
|
|
Source12: %{oname}_32.png |
22 |
|
|
Source13: %{oname}_48.png |
23 |
|
|
Group: Games/Arcade |
24 |
|
|
License: GPL |
25 |
|
|
BuildRoot: %{_tmppath}/%{oname}-%{version}-%{release}-buildroot |
26 |
|
|
BuildRequires: SDL-devel |
27 |
|
|
BuildRequires: aalib-devel |
28 |
|
|
BuildRequires: svgalib-devel |
29 |
|
|
BuildRequires: libx11-devel |
30 |
|
|
BuildRequires: libvorbis-devel |
31 |
|
|
Obsoletes: quake2 => 3.21 |
32 |
|
|
Conflicts: quake2 |
33 |
|
|
|
34 |
|
|
%description |
35 |
|
|
Shortly after landing on an alien surface you learn that hundreds of your men |
36 |
|
|
have been reduced to just a few. Now you must fight your way through heavily |
37 |
|
|
fortified military installations, lower the city's defenses and shut down |
38 |
|
|
the enemy's war machine. Only then will the fate of humanity be known. |
39 |
|
|
|
40 |
|
|
* Larger, mission-based levels: |
41 |
|
|
|
42 |
|
|
You have a series of complex missions, what you do in one level could affect |
43 |
|
|
another. One false move and you could alert security, flood an entire |
44 |
|
|
passageway, or worse. |
45 |
|
|
|
46 |
|
|
* Superior artificial intelligence: |
47 |
|
|
|
48 |
|
|
This time the enemy has IQs the size of their appetites. The can evade your |
49 |
|
|
attack, strategically position themselves for an ambush and hunt your ass |
50 |
|
|
down. |
51 |
|
|
|
52 |
|
|
* In-your-face sound and graphics |
53 |
|
|
|
54 |
|
|
hear distant combat explosions and rockets whizzing past your head. And with |
55 |
|
|
a compatible 3-D graphics accelerator, experience smoother 16-bit graphics and |
56 |
|
|
real-time lighting effects. |
57 |
|
|
|
58 |
|
|
* Wicked multiplayer capabilities |
59 |
|
|
|
60 |
|
|
More than 32 players, friends or foes, can do at it in a bloody deathmatch via |
61 |
|
|
LAN and over the internet. |
62 |
|
|
|
63 |
|
|
-- You need PAK files for Quake II to run this game -- |
64 |
|
|
|
65 |
|
|
Install the PAK files in %{_gamesdatadir}/quake2. |
66 |
|
|
|
67 |
|
|
%package ctf |
68 |
|
|
Summary: Quake II Capture the Flag for Linux |
69 |
|
|
Group: Games/Arcade |
70 |
|
|
Requires: %{name} = %{version} %{name}-server = %{version} |
71 |
|
|
Requires(preunt): rpm-helper |
72 |
|
|
Requires(post): rpm-helper |
73 |
|
|
|
74 |
|
|
%description ctf |
75 |
|
|
Quake II Capture The Flag (Q2CTF) is a multiplayer addon for Quake2 that |
76 |
|
|
features a simple set of rules for team based play. It features eight unique |
77 |
|
|
maps and special powerups to enhance and make the gameplay more exciting. |
78 |
|
|
|
79 |
|
|
Q2CTF requires the full retail version of Quake II installed in order to |
80 |
|
|
play. Once installed, you simple need to connect to a Quake2 game server |
81 |
|
|
that is running the Q2CTF addon. |
82 |
|
|
|
83 |
|
|
-- You need PAK files for Quake II to run this game -- |
84 |
|
|
|
85 |
|
|
%package glx |
86 |
|
|
Summary: Quake II GLX client |
87 |
|
|
Group: Games/Arcade |
88 |
|
|
Requires: %{name} = %{version} |
89 |
|
|
|
90 |
|
|
%description glx |
91 |
|
|
This archive contains Quake II for GLX. |
92 |
|
|
|
93 |
|
|
-- You need PAK files for Quake II to run this game -- |
94 |
|
|
|
95 |
|
|
%package xatrix |
96 |
|
|
Summary: Quake II Mission Pack #1: "The Reckoning" for Linux |
97 |
|
|
Group: Games/Arcade |
98 |
|
|
Requires: %{name} = %{version} |
99 |
|
|
|
100 |
|
|
%description xatrix |
101 |
|
|
This archive contains Mission Pack "The Reckoning" for Quake II. |
102 |
|
|
|
103 |
|
|
The Reckoning is sure to get your heart pumping...well, if you can avoid |
104 |
|
|
getting gibbed by the Strogg. Check out just some of the features below that |
105 |
|
|
will give you the cardiac workout you need! |
106 |
|
|
|
107 |
|
|
* 18 arduous levels to conquer & 7 brutal deathmatch exclusive levels: |
108 |
|
|
|
109 |
|
|
Dive into a series of mission-based campaigns and ransack your way through |
110 |
|
|
three all-new hazardous episodes. Experience bioluminescent life forms, |
111 |
|
|
stalagmites and stalactites and other breathtaking environments. |
112 |
|
|
|
113 |
|
|
* Fresh foes to defeat: |
114 |
|
|
|
115 |
|
|
Gekks are lighting-fast creatures that will hunt you down, leaping from the |
116 |
|
|
shadows to claw or bite. Though innocent looking, the Repair Bot has the |
117 |
|
|
ability to awaken dead Strogg from eternal sleep. |
118 |
|
|
|
119 |
|
|
* Added weapons to wield: |
120 |
|
|
|
121 |
|
|
The Phalanx Particle Canon emits a pulsing stream of deadly energy into |
122 |
|
|
unsuspecting foes. |
123 |
|
|
|
124 |
|
|
The Trap sucks nearby enemies inside and turns them into food cubes for |
125 |
|
|
player consumption. |
126 |
|
|
|
127 |
|
|
The Ion Ripper fires a blast of glowing boomerangs capable of ricocheting |
128 |
|
|
off of walls to track targets. |
129 |
|
|
|
130 |
|
|
-- You need PAK files for Quake II to run this game -- |
131 |
|
|
|
132 |
|
|
%package rogue |
133 |
|
|
Summary: Quake II Mission Pack #2: "Ground Zero" for Linux |
134 |
|
|
Group: Games/Arcade |
135 |
|
|
Requires: %{name} = %{version} |
136 |
|
|
|
137 |
|
|
%description rogue |
138 |
|
|
This archive contains Mission Pack "Ground Zero" for Quake II. |
139 |
|
|
|
140 |
|
|
The Alien Assault Continues. |
141 |
|
|
Take out the Big Gun, sounded simple enough, except the Stroggs were waiting. |
142 |
|
|
You and a few Marines like you, are the lucky ones. The Gravity Well, the |
143 |
|
|
Stroggs' newest weapon in its arsenal against mankind, is operational. You've |
144 |
|
|
made it down in one piece and are still able to contact the fleet. With the |
145 |
|
|
fleet trapped around Stroggos, five percent of ground forces surviving, and |
146 |
|
|
that number dwindling by the second, your orders have changed: Free your |
147 |
|
|
comrades in orbit. Destroy the Gravity Well! |
148 |
|
|
|
149 |
|
|
New Enemies |
150 |
|
|
|
151 |
|
|
Get ready to face the toughest horde of Stroggs, straight from the bio-vats. |
152 |
|
|
The Stalker, Turrets, Daedalus, Medic Commander, Carrier and the Queen Bitch |
153 |
|
|
herself, the Black Widow. |
154 |
|
|
|
155 |
|
|
14 Entirely new levels and 10 new deathmatch levels |
156 |
|
|
|
157 |
|
|
Brand new real estate with the same dynamic sense of reality and dramatic |
158 |
|
|
visuals as Quake II. These new environments will challenge even the biggest |
159 |
|
|
Quake II aficionado. |
160 |
|
|
|
161 |
|
|
New Power-ups |
162 |
|
|
|
163 |
|
|
Tag 'em and Bag 'em. Deathmatch specific power-ups: the Vengeance Sphere, |
164 |
|
|
Hunter Sphere, and Anti-matter Bomb. With everything that we've cooked up for |
165 |
|
|
you here, you're sure to annihilate anyone or anything foolish enough to |
166 |
|
|
call you foe. |
167 |
|
|
|
168 |
|
|
New Weapons |
169 |
|
|
|
170 |
|
|
The Chainsaw, ETF Rifle, and Plasma Beam. If you can't get the job done with |
171 |
|
|
these babies, it's time to go back to Basic. |
172 |
|
|
|
173 |
|
|
Accept no substitutes! |
174 |
|
|
Official, id-authorized mission packs outpace the rest! |
175 |
|
|
|
176 |
|
|
-- You need PAK files for Quake II to run this game -- |
177 |
|
|
|
178 |
|
|
%package server |
179 |
|
|
Summary: Quake II server |
180 |
|
|
Group: Games/Arcade |
181 |
shadow95 |
172209 |
Requires: %{name} = %{version} |
182 |
shadow95 |
169603 |
Requires(preun): rpm-helper |
183 |
|
|
Requires(post): rpm-helper |
184 |
|
|
|
185 |
|
|
%description server |
186 |
|
|
This archive contains the Quake II dedicated server. |
187 |
|
|
|
188 |
|
|
-- You need PAK files for Quake II to run this game -- |
189 |
|
|
|
190 |
|
|
|
191 |
|
|
%prep |
192 |
|
|
%setup -q -T -b 0 -n %{oname}-%{version} |
193 |
|
|
%setup -q -T -D -a 1 -n %{oname}-%{version} |
194 |
|
|
%setup -q -T -D -a 2 -n %{oname}-%{version} |
195 |
|
|
|
196 |
|
|
%build |
197 |
|
|
%ifarch %{ix86} x86_64 |
198 |
|
|
export OPTFLAGS="-O2 -ffast-math -funroll-loops -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing" |
199 |
|
|
%else |
200 |
|
|
export OPTFLAGS="%{optflags} -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations" |
201 |
|
|
%endif |
202 |
|
|
|
203 |
|
|
%make |
204 |
|
|
|
205 |
|
|
%install |
206 |
|
|
rm -rf %{buildroot} |
207 |
|
|
|
208 |
|
|
install -d %{buildroot}%{_sysconfdir}/quake2/{baseq2,ctf,rogue,xatrix} |
209 |
|
|
install -d %{buildroot}%{_gamesbindir} |
210 |
|
|
install -d %{buildroot}%{_gamesdatadir}/quake2/{baseq2,ctf,rogue,xatrix} |
211 |
|
|
install -d %{buildroot}%{_libdir}/games/quake2/{baseq2,ctf,rogue,xatrix} |
212 |
|
|
|
213 |
|
|
rel="release" |
214 |
|
|
cp $rel/ref_*.so %{buildroot}%{_libdir}/games/quake2/ |
215 |
|
|
cp $rel/quake2 %{buildroot}%{_gamesbindir}/quake2.bin |
216 |
|
|
cp $rel/q2ded %{buildroot}%{_gamesbindir}/q2ded.bin |
217 |
|
|
cp $rel/baseq2/game.so %{buildroot}%{_libdir}/games/quake2/baseq2/ |
218 |
|
|
cp $rel/ctf/game.so %{buildroot}%{_libdir}/games/quake2/ctf/ |
219 |
|
|
|
220 |
|
|
install -m644 %{SOURCE7} -D %{buildroot}%{_sysconfdir}/quake2/baseq2/server.cfg |
221 |
|
|
install -m644 %{SOURCE9} -D %{buildroot}%{_sysconfdir}/quake2/ctf/server.cfg |
222 |
|
|
|
223 |
|
|
install -m755 %{SOURCE6} -D %{buildroot}%{_initrddir}/q2ded |
224 |
|
|
install -m755 %{SOURCE8} -D %{buildroot}%{_initrddir}/q2ctf |
225 |
|
|
|
226 |
|
|
for FILE in q2ded q2ctf ; do |
227 |
|
|
|
228 |
|
|
# Edit path to q2ded in initscript |
229 |
|
|
sed -i -e "s|daemon[ ].*\${NAME}|daemon %{_gamesbindir}/\${NAME}|" %{buildroot}%{_initrddir}/${FILE} |
230 |
|
|
|
231 |
|
|
sed -i -e "s|^Q2_CONFIGDIR=.*|Q2_CONFIGDIR=\"%{_sysconfdir}/quake2\"|" %{buildroot}%{_initrddir}/${FILE} |
232 |
|
|
done |
233 |
|
|
|
234 |
|
|
# Create wrapper scripts |
235 |
|
|
cat << EOF > %{buildroot}%{_gamesbindir}/quake2 |
236 |
|
|
#!/bin/sh |
237 |
|
|
|
238 |
|
|
%{_gamesbindir}/quake2.bin +set basedir %{_libdir}/games/quake2 \$* |
239 |
|
|
|
240 |
|
|
exit 0 |
241 |
|
|
EOF |
242 |
|
|
|
243 |
|
|
cat << EOF > %{buildroot}%{_gamesbindir}/q2ded |
244 |
|
|
#!/bin/sh |
245 |
|
|
|
246 |
|
|
%{_gamesbindir}/q2ded.bin +set basedir %{_libdir}/games/quake2 \$* |
247 |
|
|
|
248 |
|
|
exit 0 |
249 |
|
|
EOF |
250 |
|
|
|
251 |
|
|
# Icons |
252 |
|
|
install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{oname}.png |
253 |
|
|
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{oname}.png |
254 |
|
|
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{oname}.png |
255 |
|
|
|
256 |
|
|
# Menu |
257 |
|
|
%{__mkdir_p} %{buildroot}%{_datadir}/applications |
258 |
|
|
|
259 |
|
|
cat << EOF > %{buildroot}%{_datadir}/applications/mageia-%{oname}.desktop |
260 |
|
|
[Desktop Entry] |
261 |
shadow95 |
169886 |
Name = Quake II |
262 |
|
|
Comment = %{Summary} |
263 |
|
|
Exec = %{_gamesbindir}/quake2 |
264 |
|
|
Icon = %{oname} |
265 |
shadow95 |
169603 |
Terminal=false |
266 |
|
|
Type=Application |
267 |
|
|
StartupNotify=false |
268 |
|
|
Categories=Game;ArcadeGame; |
269 |
|
|
EOF |
270 |
|
|
|
271 |
|
|
|
272 |
|
|
cat << EOF > %{buildroot}%{_datadir}/applications/mageia-%{oname}-xatrix.desktop |
273 |
|
|
[Desktop Entry] |
274 |
shadow95 |
169886 |
Name = Quake II: The Reckoning |
275 |
|
|
Comment = %{Summary} |
276 |
shadow95 |
169603 |
Exec=%{_gamesbindir}/quake2 +set game xatrix |
277 |
|
|
Icon=%{oname} |
278 |
|
|
Terminal=false |
279 |
|
|
Type=Application |
280 |
|
|
StartupNotify=true |
281 |
|
|
Categories=Game;ArcadeGame; |
282 |
|
|
EOF |
283 |
|
|
|
284 |
|
|
|
285 |
|
|
cat << EOF > %{buildroot}%{_datadir}/applications/mageia-%{oname}-rogue.desktop |
286 |
|
|
[Desktop Entry] |
287 |
|
|
Name=Quake II: Ground Zero |
288 |
shadow95 |
169886 |
Comment = %{Summary} |
289 |
|
|
Exec = %{_gamesbindir}/quake2 +set game rogue |
290 |
|
|
Icon = %{oname} |
291 |
shadow95 |
169603 |
Terminal=false |
292 |
|
|
Type=Application |
293 |
|
|
StartupNotify=true |
294 |
|
|
Categories=Game;ArcadeGame;X-MandrivaLinux-MoreApplications-Games-Arcade; |
295 |
|
|
EOF |
296 |
|
|
|
297 |
|
|
|
298 |
|
|
cat << EOF > %{buildroot}%{_datadir}/applications/mageia-%{oname}-ctf.desktop |
299 |
|
|
[Desktop Entry] |
300 |
shadow95 |
169886 |
Name = Quake II: Capture The Flag |
301 |
|
|
Comment = %{Summary} |
302 |
|
|
Exec = %{_gamesbindir}/quake2 +set game ctf |
303 |
|
|
Icon = %{oname} |
304 |
shadow95 |
169603 |
Terminal=false |
305 |
|
|
Type=Application |
306 |
|
|
StartupNotify=true |
307 |
|
|
Categories=Game;ArcadeGame;X-MandrivaLinux-MoreApplications-Games-Arcade; |
308 |
|
|
EOF |
309 |
|
|
|
310 |
|
|
# Create links from basedir to configdir |
311 |
|
|
ln -sf %{_sysconfdir}/quake2/baseq2/server.cfg %{buildroot}%{_libdir}/games/quake2/baseq2/server.cfg |
312 |
|
|
for FILE in pak0.pak pak1.pak pak2.pak maxpak.pak ; do |
313 |
|
|
ln -sf %{_gamesdatadir}/quake2/baseq2/${FILE} %{buildroot}%{_libdir}/games/quake2/baseq2/${FILE} |
314 |
|
|
done |
315 |
|
|
ln -sfn %{_gamesdatadir}/quake2/baseq2/video %{buildroot}%{_libdir}/games/quake2/baseq2/video |
316 |
|
|
ln -sf %{_sysconfdir}/quake2/ctf/server.cfg %{buildroot}%{_libdir}/games/quake2/ctf/server.cfg |
317 |
|
|
ln -sf %{_gamesdatadir}/quake2/ctf/pak0.pak %{buildroot}%{_libdir}/games/quake2/ctf/pak0.pak |
318 |
|
|
ln -sf %{_gamesdatadir}/quake2/rogue/pak0.pak %{buildroot}%{_libdir}/games/quake2/rogue/pak0.pak |
319 |
|
|
ln -sf %{_gamesdatadir}/quake2/xatrix/pak0.pak %{buildroot}%{_libdir}/games/quake2/xatrix/pak0.pak |
320 |
|
|
|
321 |
|
|
%post server |
322 |
|
|
%_post_service q2ded |
323 |
|
|
|
324 |
|
|
%preun server |
325 |
|
|
%_preun_service q2ded |
326 |
|
|
|
327 |
|
|
%post ctf |
328 |
|
|
%_post_service q2ctf |
329 |
|
|
|
330 |
|
|
%preun ctf |
331 |
|
|
%_preun_service q2ctf |
332 |
|
|
|
333 |
|
|
%files |
334 |
|
|
%doc README |
335 |
|
|
%attr(755,root,root) %{_gamesbindir}/quake2 |
336 |
|
|
%{_gamesbindir}/quake2.bin |
337 |
|
|
%dir %{_libdir}/games/quake2 |
338 |
|
|
%{_libdir}/games/quake2/baseq2 |
339 |
|
|
%{_datadir}/applications/mageia-%{oname}.desktop |
340 |
|
|
%{_iconsdir}/%{oname}.png |
341 |
|
|
%{_miconsdir}/%{oname}.png |
342 |
|
|
%{_liconsdir}/%{oname}.png |
343 |
|
|
%{_gamesdatadir}/quake2/baseq2 |
344 |
|
|
|
345 |
|
|
%files server |
346 |
|
|
%attr(755,root,root) %{_initrddir}/q2ded |
347 |
|
|
%attr(755,root,root) %{_gamesbindir}/q2ded |
348 |
|
|
%dir %{_sysconfdir}/quake2 |
349 |
|
|
%dir %{_sysconfdir}/quake2/baseq2 |
350 |
|
|
%config(noreplace) %{_sysconfdir}/quake2/baseq2/server.cfg |
351 |
|
|
%{_gamesbindir}/q2ded.bin |
352 |
|
|
|
353 |
|
|
%files ctf |
354 |
|
|
%attr(755,root,root) %{_initrddir}/q2ctf |
355 |
|
|
%dir %{_sysconfdir}/quake2/ctf |
356 |
|
|
%config(noreplace) %{_sysconfdir}/quake2/ctf/server.cfg |
357 |
|
|
%{_libdir}/games/quake2/ctf |
358 |
|
|
%{_gamesdatadir}/quake2/ctf |
359 |
|
|
%{_datadir}/applications/mageia-%{oname}-ctf.desktop |
360 |
|
|
|
361 |
|
|
%files glx |
362 |
|
|
%{_libdir}/games/quake2/ref_gl.so |
363 |
|
|
|
364 |
|
|
%files rogue |
365 |
|
|
%{_libdir}/games/quake2/rogue |
366 |
|
|
%{_gamesdatadir}/quake2/rogue |
367 |
|
|
%{_datadir}/applications/mageia-%{oname}-rogue.desktop |
368 |
|
|
|
369 |
|
|
%files xatrix |
370 |
|
|
%{_libdir}/games/quake2/xatrix |
371 |
|
|
%{_gamesdatadir}/quake2/xatrix |
372 |
|
|
%{_datadir}/applications/mageia-%{oname}-xatrix.desktop |
373 |
|
|
|