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