3 # _without_alsa - without ALSA
4 # _without_svga - without SVGAlib & 3dfx support
7 %define _snapshot 20030214
9 %ifarch sparc sparcv9 sparc64
10 %define _without_alsa 1
13 %ifnarch %{ix86} alpha
14 %define _without_svga 1
17 Summary: 3D game engine based on id Software's Quake engine
18 Summary(pl): Silnik gry 3D bazuj±cy na silniku Quake id Software
21 Release: 2.%{_snapshot}.1
23 Group: Applications/Games
24 #Source0: http://download.sourceforge.net/quake/%{name}-%{version}.tar.bz2
25 # From http://www.quakeforge.org/files/quakeforge-current.tar.bz2
26 Source0: %{name}-%{_snapshot}.tar.bz2
28 Source2: %{name}-servers.tgz
29 URL: http://www.%{name}.net/
30 BuildRequires: OpenGL-devel
31 BuildRequires: SDL-devel
32 BuildRequires: XFree86-devel
33 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
34 BuildRequires: autoconf
35 BuildRequires: automake >= 1.6
37 BuildRequires: nas-devel
38 %{!?_without_svga:BuildRequires: svgalib-devel}
39 BuildRequires: texinfo
40 BuildRequires: xmms-devel
41 BuildRequires: zlib-devel
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 %define _noautoreqdep libGL.so.1 libGLU.so.1
48 QuakeForge is a source port of Quake and QuakeWorld, the successors to
49 id Software's very popular DOOM series. Its primary development goal
50 is to remain compatible with the original games released by id
51 Software while adding portability and optional extensions to enhance
55 QuakeForge jest portem ¼róde³ gier Quake i QuakeWorld - sukcesorów
56 bardzo popularnej serii DOOM firmy id Software. Podstawowym celem
57 projektu jest zachowanie zgodno¶ci z oryginalnymi odpowiednikami
58 tych¿e gier przy jednoczesnym dodaniu opcjonalnych rozszerzeñ
59 s³u¿±cych podniesieniu jako¶ci zabawy.
62 Summary: QuakeForge - headers and devel libs
63 Summary(pl): QuakeForge - pliki nag³ówkowe
64 Group: Applications/Games
65 Requires: %{name} = %{version}
68 QuakeForge - headers and devel libs
70 %description devel -l pl
71 QuakeForge - pliki nag³ówkowe
74 Summary: QuakeForge 3D game engine - static libraries
75 Summary(pl): Silnik gry 3D QuakeForge - biblioteki statyczne
76 Group: Applications/Games
77 Requires: %{name}-devel = %{version}
80 QuakeForge 3D game engine - static libraries
82 %description static -l pl
83 Silnik gry 3D QuakeForge - biblioteki statyczne
86 Summary: QuakeForge Servers
87 Summary(pl): Serwery QuakeForge
88 Group: Applications/Games
89 Requires: %{name} = %{version}
94 %description servers -l pl
98 Summary: QuakeForge - utility programs
99 Summary(pl): QuakeForge - programy narzêdziowe
100 Group: Applications/Games
101 Requires: %{name} = %{version}
104 QuakeForge - utility programs.
106 %description utils -l pl
107 QuakeForge - programy narzêdziowe.
110 Summary: QuakeForge client for 3dfx
111 Summary(pl): Klient QuakeForge pod 3dfx
112 Group: Applications/Games
113 Requires: %{name}-libs-gl = %{version}
116 Quakeforge client for 3dfx device.
118 %description 3dfx -l pl
119 Klient QuakeForge pod 3dfx.
122 Summary: QuakeForge client for fbdev
123 Summary(pl): Klient QuakeForge pod fbdev
124 Group: Applications/Games
125 Requires: %{name}-libs-sw = %{version}
128 Quakeforge client for framebuffer device.
130 %description fbdev -l pl
131 Klient QuakeForge pod framebuffer.
134 Summary: QuakeForge glx client
135 Summary(pl): Klient QuakeForge glx
136 Group: Applications/Games
137 Requires: %{name}-libs-gl = %{version}
140 Quakeforge client for X Window that uses OpenGL through GLX extension.
142 %description glx -l pl
143 Klient QuakeForge pod X Window u¿ywaj±cy OpenGL poprzez rozszerzenie
147 Summary: QuakeForge client for SDL with 8-bit color
148 Summary(pl): Klient QuakeForge pod SDL z 8-bitowym kolorem
149 Group: Applications/Games
150 Requires: %{name}-libs-sw = %{version}
153 Quakeforge client for SDL with 8-bit color.
155 %description sdl -l pl
156 Klient QuakeForge pod SDL z 8-bitowym kolorem.
159 Summary: QuakeForge client for SDL with various color depths support
160 Summary(pl): Klient QuakeForge pod SDL z obs³ug± ró¿nych g³êbi kolorów
161 Group: Applications/Games
162 Requires: %{name}-libs-sw = %{version}
165 Quakeforge client for SDL with various color depths support (8, 16,
168 %description sdl32 -l pl
169 Klient QuakeForge pod SDL z obs³ug± ró¿nych g³êbi kolorów (8, 16 i
173 Summary: QuakeForge client for SDL with GL
174 Summary(pl): Klient QuakeForge pod SDL z obs³ug± GL
175 Group: Applications/Games
176 Requires: %{name}-libs-gl = %{version}
179 QuakeForge client for SDL that uses OpenGL through SDL.
181 %description sgl -l pl
182 Klient QuakeForge pod SDL, u¿ywaj±cy OpenGL za po¶rednictwem SDL.
185 Summary: QuakeForge client for svgalib
186 Summary(pl): Klient QuakeForge pod svgalib
187 Group: Applications/Games
188 Requires: %{name}-libs-sw = %{version}
189 Obsoletes: %{name}-svgalib
192 Quakeforge client for svgalib.
194 %description svga -l pl
195 Klient QuakeForge pod svgalib.
198 Summary: QuakeForge client for x11
199 Summary(pl): Klient QuakeForge pod x11
200 Group: Applications/Games
201 Requires: %{name}-libs-sw = %{version}
204 Quakeforge client for x11.
206 %description x11 -l pl
207 Klient QuakeForge pod x11.
210 Summary: QuakeForge - Linux CD plugin
211 Summary(pl): QuakeForge - wtyczka CD dla Linuksa
212 Group: Applications/Games
213 Requires: %{name} = %{version}
215 %description cd-linux
216 QuakeForge - native Linux CD plugin.
218 %description cd-linux -l pl
219 QuakeForge - wtyczka CD u¿ywaj±ca mechanizmów charakterystycznych dla
223 Summary: QuakeForge - SDL CD plugin
224 Summary(pl): QuakeForge - wtyczka CD dla SDL
225 Group: Applications/Games
226 Requires: %{name} = %{version}
229 QuakeForge - CD plugin that uses SDL to access drive.
231 %description cd-sdl -l pl
232 QuakeForge - wtyczka CD odwo³uj±ca siê do odtwarzacza poprzez SDL.
235 Summary: QuakeForge - xmms CD plugin
236 Summary(pl): QuakeForge - wtyczka CD dla xmms
237 Group: Applications/Games
238 Requires: %{name} = %{version}
241 QuakeForge - CD plugin that uses xmms to access drive.
243 %description cd-xmms -l pl
244 QuakeForge - wtyczka CD odwo³uj±ca siê do odtwarzacza poprzez xmms.
247 Summary: QuakeForge - OpenGL renderer libraries
248 Summary(pl): QuakeForge - biblioteki renderujace OpenGL
249 Group: Applications/Games
250 Requires: %{name} = %{version}
254 QuakeForge - OpenGL renderer libraries.
256 %description libs-gl -l pl
257 QuakeForge - biblioteki renderuj±ce z u¿yciem OpenGL.
260 Summary: QuakeForge - Software renderer libraries
261 Summary(pl): QuakeForge - biblioteki do renderowania programowego
262 Group: Applications/Games
263 Requires: %{name} = %{version}
266 QuakeForge - Software renderer libraries.
268 %description libs-sw -l pl
269 QuakeForge - biblioteki do renderowania programowego.
272 Summary: ALSA sound plugin for QuakeForge
273 Summary(pl): Wtyczka d¼wiêkowa ALSA dla QuakeForge
274 Group: Applications/Games
275 Requires: %{name} = %{version}
277 %description snd-alsa
278 The ALSA plugin for QuakeForge provides digital audio output for
279 QuakeForge targets that contain clients.
281 %description snd-alsa -l pl
282 Wtyczka ALSA dla QuakeForge udostêpnia cyfrowe wyj¶cie d¼wiêku dla
286 Summary: OSS sound plugin for QuakeForge
287 Summary(pl): Wtyczka d¼wiêkowa OSS dla QuakeForge
288 Group: Applications/Games
289 Requires: %{name} = %{version}
292 The OSS plugin for QuakeForge provides digital audio output (using
293 OSS/Linux, OSS/Free, or kernel sound) for QuakeForge targets that
296 NOTE: This plugin does not work on all systems, since it uses
297 memory-mapped I/O for the output device. If you have trouble, try the
298 %{name}-snd-alsa package.
300 %description snd-oss -l pl
301 Wtyczka OSS dla QuakeForge udostêpnia cyfrowe wyj¶cie d¼wieku
302 (u¿ywaj±ce OSS/Linux, OSS/Free lub obs³ugi d¼wiêku wkompilowanej w
303 kernel) dla klientów gry.
305 UWAGA: Ta wtyczka nie dzia³a na wszystkich systemach, gdy uzywaj± one
306 mapowanego w pamiêci I/O dla urz±dzenia wyj¶ciowego. Je¶li masz z ni±
307 k³opoty - spróbuj u¿yæ pakietu %{name}-snd-alsa.
310 Summary: SDL sound plugin for QuakeForge
311 Summary(pl): Wtyczka d¼wiêkowa SDL dla QuakeForge
312 Group: Applications/Games
313 Requires: %{name} = %{version}
316 The SDL plugin for QuakeForge provides digital audio output for
317 QuakeForge targets that contain clients.
319 %description snd-sdl -l pl
320 Wtyczka SDL dla QuakeForge udostêpnia cyfrowe wyj¶cie d¼wiêku dla
329 %{__libtoolize} --automake
332 # --without-arch not to override -march passed by %%configure
338 --with-plugin-path=%{_libdir}/%{name} \
339 --with-global-cfg="%{_sysconfdir}/%{name}/%{name}.conf" \
340 --with-user-cfg="~/.%{name}/%{name}.conf" \
341 %{?_without_svga:--disable-3dfx} \
342 %{?_without_alsa:--disable-alsa} \
343 %{?_without_svga:--without-svga}
348 rm -rf $RPM_BUILD_ROOT
350 %{__make} install DESTDIR=$RPM_BUILD_ROOT
352 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,%{name}},%{_datadir}/games/%{name}/qw} \
353 $RPM_BUILD_ROOT{%{_pixmapsdir},%{_applnkdir}/Games}
355 install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}
356 cp RPM/%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
358 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/qw-server.cfg
359 echo "map e1m3" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/nq-server.cfg
361 cd $RPM_BUILD_ROOT%{_datadir}/games/%{name}/qw
362 ln -sf %{_sysconfdir}/%{name}/qw-server.cfg server.cfg
365 cd $RPM_BUILD_ROOT/etc/rc.d/init.d
369 qfver="%{?!_without_3dfx:3dfx }glx sdl sdl32 sgl x11"
372 desktopfile="$RPM_BUILD_ROOT%{_applnkdir}/Games/qw-client-$f.desktop"
373 echo "[Desktop Entry]\nName=QuakeWorld ($f)\nExec=qw-client-$f \
374 \nIcon=%{name}.png\nTerminal=0\nType=Application" > $desktopfile
376 desktopfile="$RPM_BUILD_ROOT%{_applnkdir}/Games/nq-$f.desktop"
377 echo "[Desktop Entry]\nName=Quake ($f)\nExec=nq-$f \
378 \nIcon=%{name}.png\nTerminal=0\nType=Application" > $desktopfile
385 /sbin/chkconfig --add qw-serverd
386 if [ -f /var/lock/subsys/qw-serverd ]; then
387 /etc/rc.d/init.d/qw-serverd restart 1>&2
389 echo "Run \"/etc/rc.d/init.d/qw-serverd start\" to start QuakeWorld Server."
391 /sbin/chkconfig --add nq-serverd
392 if [ -f /var/lock/subsys/nq-serverd ]; then
393 /etc/rc.d/init.d/nq-serverd restart 1>&2
395 echo "Run \"/etc/rc.d/init.d/nq-serverd start\" to start NQuake Server."
399 if [ "$1" = "0" ]; then
400 if [ -f /var/lock/subsys/qw-serverd ]; then
401 /etc/rc.d/init.d/qw-serverd stop 1>&2
403 /sbin/chkconfig --del qw-serverd
405 if [ "$1" = "0" ]; then
406 if [ -f /var/lock/subsys/nq-serverd ]; then
407 /etc/rc.d/init.d/nq-serverd stop 1>&2
409 /sbin/chkconfig --del nq-serverd
413 %defattr(644,root,root,755)
414 %doc NEWS TODO ChangeLog doc/[!Mm]*
415 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/%{name}.conf
416 %attr(755,root,root) %{_libdir}/libQFcd.so.*
417 %attr(755,root,root) %{_libdir}/libQFconsole.so.*
418 %attr(755,root,root) %{_libdir}/libQFcsqc.so.*
419 %attr(755,root,root) %{_libdir}/libQFgamecode.so.*
420 %attr(755,root,root) %{_libdir}/libQFgamecode_builtins.so.*
421 %attr(755,root,root) %{_libdir}/libQFgib.so.*
422 %attr(755,root,root) %{_libdir}/libQFjs.so.*
423 %attr(755,root,root) %{_libdir}/libQFmodels.so.*
424 %attr(755,root,root) %{_libdir}/libQFsound.so.*
425 %attr(755,root,root) %{_libdir}/libQFutil.so.*
426 %dir %{_libdir}/%{name}
427 %attr(755,root,root) %{_libdir}/%{name}/console_client.so
428 %attr(755,root,root) %{_libdir}/%{name}/snd_output_disk.so
429 %attr(755,root,root) %{_libdir}/%{name}/snd_render_default.so
430 %{_datadir}/games/%{name}/QF
431 %{_datadir}/games/%{name}/qw
432 %{_pixmapsdir}/%{name}.png
435 %defattr(644,root,root,755)
436 %attr(755,root,root) %{_bindir}/qfcc
437 %attr(755,root,root) %{_libdir}/libQFcd.so
438 %{_libdir}/libQFcd.la
439 %attr(755,root,root) %{_libdir}/libQFconsole.so
440 %{_libdir}/libQFconsole.la
441 %attr(755,root,root) %{_libdir}/libQFcsqc.so
442 %{_libdir}/libQFcsqc.la
443 %attr(755,root,root) %{_libdir}/libQFgamecode.so
444 %{_libdir}/libQFgamecode.la
445 %attr(755,root,root) %{_libdir}/libQFgamecode_builtins.so
446 %{_libdir}/libQFgamecode_builtins.la
447 %attr(755,root,root) %{_libdir}/libQFgib.so
448 %{_libdir}/libQFgib.la
449 %attr(755,root,root) %{_libdir}/libQFjs.so
450 %{_libdir}/libQFjs.la
451 %attr(755,root,root) %{_libdir}/libQFmodels.so
452 %{_libdir}/libQFmodels.la
453 %attr(755,root,root) %{_libdir}/libQFmodels_gl.so
454 %{_libdir}/libQFmodels_gl.la
455 %attr(755,root,root) %{_libdir}/libQFmodels_sw.so
456 %{_libdir}/libQFmodels_sw.la
457 %attr(755,root,root) %{_libdir}/libQFrenderer_gl.so
458 %{_libdir}/libQFrenderer_gl.la
459 %attr(755,root,root) %{_libdir}/libQFrenderer_sw32.so
460 %{_libdir}/libQFrenderer_sw32.la
461 %attr(755,root,root) %{_libdir}/libQFsound.so
462 %{_libdir}/libQFsound.la
463 %attr(755,root,root) %{_libdir}/libQFutil.so
464 %{_libdir}/libQFutil.la
465 %{_libdir}/%{name}/cd_linux.la
466 %{_libdir}/%{name}/cd_sdl.la
467 %{_libdir}/%{name}/cd_xmms.la
468 %{_libdir}/%{name}/console_client.la
469 %{_libdir}/%{name}/console_server.la
470 %{!?_without_alsa:%{_libdir}/%{name}/snd_output_alsa*.la}
471 %{_libdir}/%{name}/snd_output_disk.la
472 %{_libdir}/%{name}/snd_output_oss.la
473 %{_libdir}/%{name}/snd_output_sdl.la
474 %{_libdir}/%{name}/snd_render_default.la
476 %{_mandir}/man1/qfcc.1*
479 %defattr(644,root,root,755)
481 %{_libdir}/libQFconsole.a
482 %{_libdir}/libQFcsqc.a
483 %{_libdir}/libQFgamecode.a
484 %{_libdir}/libQFgamecode_builtins.a
485 %{_libdir}/libQFgib.a
487 %{_libdir}/libQFmodels.a
488 %{_libdir}/libQFmodels_gl.a
489 %{_libdir}/libQFrenderer_gl.a
490 %{_libdir}/libQFmodels_sw.a
491 %{_libdir}/libQFrenderer_sw32.a
492 %{_libdir}/libQFsound.a
493 %{_libdir}/libQFutil.a
494 %{_libdir}/%{name}/cd_linux.a
495 %{_libdir}/%{name}/cd_sdl.a
496 %{_libdir}/%{name}/cd_xmms.a
497 %{_libdir}/%{name}/console_client.a
498 %{_libdir}/%{name}/console_server.a
499 %{!?_without_alsa:%{_libdir}/%{name}/snd_output_alsa*.a}
500 %{_libdir}/%{name}/snd_output_disk.a
501 %{_libdir}/%{name}/snd_output_oss.a
502 %{_libdir}/%{name}/snd_output_sdl.a
503 %{_libdir}/%{name}/snd_render_default.a
507 %defattr(644,root,root,755)
508 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/*-server.cfg
509 %attr(755,root,root) %{_bindir}/hw-master
510 %attr(755,root,root) %{_bindir}/qw-master
511 %attr(755,root,root) %{_bindir}/qw-server
512 %attr(755,root,root) %{_bindir}/nq-server
513 %attr(755,root,root) %{_libdir}/%{name}/console_server.so
514 %{_datadir}/games/%{name}/qw/server.cfg
515 %attr(754,root,root) /etc/rc.d/init.d/*-[!m]*
518 %defattr(644,root,root,755)
519 %attr(755,root,root) %{_bindir}/pak
520 %attr(755,root,root) %{_bindir}/bsp2img
521 %attr(755,root,root) %{_bindir}/qfbsp
522 %attr(755,root,root) %{_bindir}/qfdefs
523 %attr(755,root,root) %{_bindir}/qflight
524 %attr(755,root,root) %{_bindir}/qfmodelgen
525 %attr(755,root,root) %{_bindir}/qfprogs
526 %attr(755,root,root) %{_bindir}/qfvis
527 %attr(755,root,root) %{_bindir}/qfwavinfo
528 %attr(755,root,root) %{_bindir}/zpak
529 %{_mandir}/man1/pak.1*
530 %{_mandir}/man1/qflight.1*
531 %{_mandir}/man1/qfvis.1*
533 %if %{?_without_svga:0}%{!?_without_svga:1}
535 %defattr(644,root,root,755)
536 %attr(755,root,root) %{_bindir}/*3dfx
537 %{_applnkdir}/Games/*3dfx.desktop
541 %defattr(644,root,root,755)
542 %attr(755,root,root) %{_bindir}/*fbdev
545 %defattr(644,root,root,755)
546 %attr(755,root,root) %{_bindir}/*glx
547 %{_applnkdir}/Games/*glx.desktop
550 %defattr(644,root,root,755)
551 %attr(755,root,root) %{_bindir}/*sdl
552 %{_applnkdir}/Games/*sdl.desktop
555 %defattr(644,root,root,755)
556 %attr(755,root,root) %{_bindir}/*sdl32
557 %{_applnkdir}/Games/*sdl32.desktop
560 %defattr(644,root,root,755)
561 %attr(755,root,root) %{_bindir}/*sgl
562 %{_applnkdir}/Games/*sgl.desktop
564 %if %{?_without_svga:0}%{!?_without_svga:1}
566 %defattr(644,root,root,755)
567 %attr(755,root,root) %{_bindir}/*svga
571 %defattr(644,root,root,755)
572 %attr(755,root,root) %{_bindir}/*x11
573 %{_applnkdir}/Games/*x11.desktop
576 %defattr(644,root,root,755)
577 %attr(755,root,root) %{_libdir}/%{name}/cd_linux.so
580 %defattr(644,root,root,755)
581 %attr(755,root,root) %{_libdir}/%{name}/cd_sdl.so
584 %defattr(644,root,root,755)
585 %attr(755,root,root)%{_libdir}/%{name}/cd_xmms.so
588 %defattr(644,root,root,755)
589 %attr(755,root,root) %{_libdir}/libQFmodels_gl.so.*
590 %attr(755,root,root) %{_libdir}/libQFrenderer_gl.so.*
593 %defattr(644,root,root,755)
594 %attr(755,root,root) %{_libdir}/libQFmodels_sw.so.*
595 %attr(755,root,root) %{_libdir}/libQFrenderer_sw32.so.*
597 %if %{?_without_alsa:0}%{!?_without_alsa:1}
599 %defattr(644,root,root,755)
600 %attr(755,root,root) %{_libdir}/%{name}/snd_output_alsa*.so
604 %defattr(644,root,root,755)
605 %attr(755,root,root) %{_libdir}/%{name}/snd_output_oss.so
608 %defattr(644,root,root,755)
609 %attr(755,root,root) %{_libdir}/%{name}/snd_output_sdl.so