3 # _without_alsa - without ALSA
4 # _without_svga - without SVGAlib support
6 %ifarch sparc sparcv9 sparc64
7 %define _without_alsa 1
10 %ifnarch %{ix86} alpha
11 %define _without_svga 1
14 Summary: 3D game engine based on id Software's Quake engine
15 Summary(pl): Silnik gry 3D bazuj±cy na silniku Quake id Software
17 Version: 0.5.1.20020822
20 Group: Applications/Games
21 # From http://www.quakeforge.net/files/quakeforge-current.tar.bz2
22 Source0: %{name}-%{version}.tar.bz2
24 Source2: %{name}-servers.tgz
25 URL: http://www.%{name}.net/
26 BuildRequires: OpenGL-devel
27 BuildRequires: SDL-devel
28 BuildRequires: XFree86-devel
29 BuildRequires: autoconf
30 BuildRequires: automake >= 1.6
31 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
32 BuildRequires: nas-devel
33 %{!?_without_svga:BuildRequires: svgalib-devel}
34 BuildRequires: texinfo
35 BuildRequires: xmms-devel
36 BuildRequires: zlib-devel
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 %define _noautoreqdep libGL.so.1 libGLU.so.1
41 %define _xbindir /usr/X11R6/bin
44 QuakeForge is a source port of Quake and QuakeWorld, the successors to
45 id Software's very popular DOOM series. Its primary development goal
46 is to remain compatible with the original games released by id
47 Software while adding portability and optional extensions to enhance
51 QuakeForge jest portem ¼róde³ gier Quake i QuakeWorld - sukcesorów
52 bardzo popularnej serii DOOM firmy id Software. Podstawowym celem
53 projektu jest zachowanie zgodno¶ci z oryginalnymi odpowiednikami
54 tych¿e gier przy jednoczesnym dodaniu opcjonalnych rozszerzeñ
55 s³u¿±cych podniesieniu jako¶ci zabawy.
58 Summary: QuakeForge - headers and devel libs
59 Summary(pl): QuakeForge - pliki nag³ówkowe
60 Group: Applications/Games
61 Requires: %{name} = %{version}
64 QuakeForge - headers and devel libs
66 %description devel -l pl
67 QuakeForge - pliki nag³ówkowe
70 Summary: QuakeForge 3D game engine - static libraries
71 Summary(pl): Silnik gry 3D QuakeForge - biblioteki statyczne
72 Group: Applications/Games
73 Requires: %{name}-devel = %{version}
76 QuakeForge 3D game engine - static libraries
78 %description static -l pl
79 Silnik gry 3D QuakeForge - biblioteki statyczne
82 Summary: QuakeForge Servers
83 Summary(pl): Serwery QuakeForge
84 Group: Applications/Games
85 Requires: %{name} = %{version}
90 %description servers -l pl
94 Summary: QuakeForge - utility programs
95 Summary(pl): QuakeForge - programy narzêdziowe
96 Group: Applications/Games
97 Requires: %{name} = %{version}
100 QuakeForge - utility programs.
102 %description utils -l pl
103 QuakeForge - programy narzêdziowe.
106 Summary: QuakeForge client for 3dfx
107 Summary(pl): Klient QuakeForge pod 3dfx
108 Group: Applications/Games
109 Requires: %{name}-libs-gl = %{version}
112 Quakeforge client for 3dfx device.
114 %description 3dfx -l pl
115 Klient QuakeForge pod 3dfx.
118 Summary: QuakeForge client for fbdev
119 Summary(pl): Klient QuakeForge pod fbdev
120 Group: Applications/Games
121 Requires: %{name}-libs-sw = %{version}
124 Quakeforge client for framebuffer device.
126 %description fbdev -l pl
127 Klient QuakeForge pod framebuffer.
130 Summary: QuakeForge glx client
131 Summary(pl): Klient QuakeForge glx
132 Group: Applications/Games
133 Requires: %{name}-libs-gl = %{version}
136 Quakeforge client for X Window that uses OpenGL through GLX extension.
138 %description glx -l pl
139 Klient QuakeForge pod X Window u¿ywaj±cy OpenGL poprzez rozszerzenie
143 Summary: QuakeForge client for SDL with 8-bit color
144 Summary(pl): Klient QuakeForge pod SDL z 8-bitowym kolorem
145 Group: Applications/Games
146 Requires: %{name}-libs-sw = %{version}
149 Quakeforge client for SDL with 8-bit color.
151 %description sdl -l pl
152 Klient QuakeForge pod SDL z 8-bitowym kolorem.
155 Summary: QuakeForge client for SDL with various color depths support
156 Summary(pl): Klient QuakeForge pod SDL z obs³ug± ró¿nych g³êbi kolorów
157 Group: Applications/Games
158 Requires: %{name}-libs-sw = %{version}
161 Quakeforge client for SDL with various color depths support (8, 16,
164 %description sdl32 -l pl
165 Klient QuakeForge pod SDL z obs³ug± ró¿nych g³êbi kolorów (8, 16 i
169 Summary: QuakeForge client for SDL with GL
170 Summary: Klient QuakeForge pod SDL z obs³ug± GL
171 Group: Applications/Games
172 Requires: %{name}-libs-gl = %{version}
175 QuakeForge client for SDL that uses OpenGL through SDL.
177 %description sgl -l pl
178 Klient QuakeForge pod SDL, u¿ywaj±cy OpenGL za po¶rednictwem SDL.
181 Summary: QuakeForge client for svgalib
182 Summary(pl): Klient QuakeForge pod svgalib
183 Group: Applications/Games
184 Requires: %{name}-libs-sw = %{version}
185 Obsoletes: %{name}-svgalib
188 Quakeforge client for svgalib.
190 %description svga -l pl
191 Klient QuakeForge pod svgalib.
194 Summary: QuakeForge client for x11
195 Summary(pl): Klient QuakeForge pod x11
196 Group: Applications/Games
197 Requires: %{name}-libs-sw = %{version}
200 Quakeforge client for x11.
202 %description x11 -l pl
203 Klient QuakeForge pod x11.
206 Summary: QuakeForge - Linux CD plugin
207 Summary(pl): QuakeForge - wtyczka CD dla Linuksa
208 Group: Applications/Games
209 Requires: %{name} = %{version}
211 %description cd-linux
212 QuakeForge - native Linux CD plugin.
214 %description cd-linux -l pl
215 QuakeForge - wtyczka CD u¿ywaj±ca mechanizmów charakterystycznych dla
219 Summary: QuakeForge - SDL CD plugin
220 Summary(pl): QuakeForge - wtyczka CD dla SDL
221 Group: Applications/Games
222 Requires: %{name} = %{version}
225 QuakeForge - CD plugin that uses SDL to access drive.
227 %description cd-sdl -l pl
228 QuakeForge - wtyczka CD odwo³uj±ca siê do odtwarzacza poprzez SDL.
231 Summary: QuakeForge - xmms CD plugin
232 Summary(pl): QuakeForge - wtyczka CD dla xmms
233 Group: Applications/Games
234 Requires: %{name} = %{version}
237 QuakeForge - CD plugin that uses xmms to access drive.
239 %description cd-xmms -l pl
240 QuakeForge - wtyczka CD odwo³uj±ca siê do odtwarzacza poprzez xmms.
243 Summary: QuakeForge - OpenGL renderer libraries
244 Summary(pl): QuakeForge - biblioteki renderujace OpenGL
245 Group: Applications/Games
246 Requires: %{name} = %{version}
250 QuakeForge - OpenGL renderer libraries.
252 %description libs-gl -l pl
253 QuakeForge - biblioteki renderuj±ce z u¿yciem OpenGL.
256 Summary: QuakeForge - Software renderer libraries
257 Summary(pl): QuakeForge - biblioteki do renderowania programowego
258 Group: Applications/Games
259 Requires: %{name} = %{version}
262 QuakeForge - Software renderer libraries.
264 %description libs-sw -l pl
265 QuakeForge - biblioteki do renderowania programowego.
268 Summary: ALSA sound plugin for QuakeForge
269 Summary(pl): Wtyczka d¼wiêkowa ALSA dla QuakeForge
270 Group: Applications/Games
271 Requires: %{name} = %{version}
273 %description snd-alsa
274 The ALSA plugin for QuakeForge provides digital audio output for
275 QuakeForge targets that contain clients.
277 %description snd-alsa -l pl
278 Wtyczka ALSA dla QuakeForge udostêpnia cyfrowe wyj¶cie d¼wiêku dla
282 Summary: OSS sound plugin for QuakeForge
283 Summary(pl): Wtyczka d¼wiêkowa OSS dla QuakeForge
284 Group: Applications/Games
285 Requires: %{name} = %{version}
288 The OSS plugin for QuakeForge provides digital audio output (using
289 OSS/Linux, OSS/Free, or kernel sound) for QuakeForge targets that
292 NOTE: This plugin does not work on all systems, since it uses
293 memory-mapped I/O for the output device. If you have trouble, try the
294 %{name}-snd-alsa package.
296 %description snd-oss -l pl
297 Wtyczka OSS dla QuakeForge udostêpnia cyfrowe wyj¶cie d¼wieku
298 (u¿ywaj±ce OSS/Linux, OSS/Free lub obs³ugi d¼wiêku wkompilowanej w
299 kernel) dla klientów gry.
301 UWAGA: Ta wtyczka nie dzia³a na wszystkich systemach, gdy uzywaj± one
302 mapowanego w pamiêci I/O dla urz±dzenia wyj¶ciowego. Je¶li masz z ni±
303 k³opoty - spróbuj u¿yæ pakietu %{name}-snd-alsa.
306 Summary: SDL sound plugin for QuakeForge
307 Summary(pl): Wtyczka d¼wiêkowa SDL dla QuakeForge
308 Group: Applications/Games
309 Requires: %{name} = %{version}
312 The SDL plugin for QuakeForge provides digital audio output for
313 QuakeForge targets that contain clients.
315 %description snd-sdl -l pl
316 Wtyczka SDL dla QuakeForge udostêpnia cyfrowe wyj¶cie d¼wiêku dla
325 %{__libtoolize} --automake
332 --with-plugin-path=%{_libdir}/%{name} \
333 --with-user-cfg="~/.%{name}/%{name}.conf" \
334 %{?_without_alsa:--disable-alsa} \
335 %{?_without_svga:--without-svga}
340 rm -rf $RPM_BUILD_ROOT
341 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_datadir}/games/%{name}/qw} \
342 $RPM_BUILD_ROOT{%{_xbindir},%{_pixmapsdir},%{_applnkdir}/Games}
344 %{__make} install DESTDIR=$RPM_BUILD_ROOT
346 mv $RPM_BUILD_ROOT%{_bindir}/{*3dfx,*glx,*sdl*,*sgl,*x11} $RPM_BUILD_ROOT%{_xbindir}
348 install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}
349 cp RPM/%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}
351 cd $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
355 qfver="3dfx glx sdl sdl32 sgl x11"
358 desktopfile="$RPM_BUILD_ROOT%{_applnkdir}/Games/qw-client-$f.desktop"
359 echo "[Desktop Entry]\nName=QuakeWorld ($f)\nExec=qw-client-$f \
360 \nIcon=%{name}.png\nTerminal=0\nType=Application" > $desktopfile
362 desktopfile="$RPM_BUILD_ROOT%{_applnkdir}/Games/nq-$f.desktop"
363 echo "[Desktop Entry]\nName=Quake ($f)\nExec=nq-$f \
364 \nIcon=%{name}.png\nTerminal=0\nType=Application" > $desktopfile
367 mv doc/man/%{name}* $RPM_BUILD_ROOT%{_mandir}/man1
368 rm -rf doc/{CVS,Makefile*,man,config/{CVS,gib/CVS},data/{CVS,docs/CVS},ideas/CVS}
371 rm -rf $RPM_BUILD_ROOT
374 /sbin/chkconfig --add qw-serverd
375 if [ -f /var/lock/subsys/qw-serverd ]; then
376 /etc/rc.d/init.d/qw-serverd restart 1>&2
378 echo "Run \"/etc/rc.d/init.d/qw-serverd start\" to start QuakeWorld Server."
380 /sbin/chkconfig --add nq-serverd
381 if [ -f /var/lock/subsys/nq-serverd ]; then
382 /etc/rc.d/init.d/nq-serverd restart 1>&2
384 echo "Run \"/etc/rc.d/init.d/nq-serverd start\" to start NQuake Server."
386 /sbin/chkconfig --add qw-masterd
387 if [ -f /var/lock/subsys/qw-masterd ]; then
388 /etc/rc.d/init.d/qw-masterd restart 1>&2
390 echo "Run \"/etc/rc.d/init.d/qw-masterd start\" to start QuakeWorld Master."
394 if [ "$1" = "0" ]; then
395 if [ -f /var/lock/subsys/qw-serverd ]; then
396 /etc/rc.d/init.d/qw-serverd stop 1>&2
398 /sbin/chkconfig --del qw-serverd
400 if [ "$1" = "0" ]; then
401 if [ -f /var/lock/subsys/nq-serverd ]; then
402 /etc/rc.d/init.d/nq-serverd stop 1>&2
404 /sbin/chkconfig --del nq-serverd
406 if [ "$1" = "0" ]; then
407 if [ -f /var/lock/subsys/qw-masterd ]; then
408 /etc/rc.d/init.d/qw-masterd stop 1>&2
410 /sbin/chkconfig --del qw-masterd
414 %defattr(644,root,root,755)
415 %doc NEWS TODO ChangeLog doc/*
416 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}.conf
417 %attr(755,root,root) %{_libdir}/libQFcd.so.*
418 %attr(755,root,root) %{_libdir}/libQFconsole.so.*
419 %attr(755,root,root) %{_libdir}/libQFcsqc.so.*
420 %attr(755,root,root) %{_libdir}/libQFgamecode.so.*
421 %attr(755,root,root) %{_libdir}/libQFgamecode_builtins.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}/cd_null.so*
428 %attr(755,root,root) %{_libdir}/%{name}/console_client.so*
429 %attr(755,root,root) %{_libdir}/%{name}/snd_output_disk.so*
430 %attr(755,root,root) %{_libdir}/%{name}/snd_output_null.so*
431 %attr(755,root,root) %{_libdir}/%{name}/snd_render_default.so*
432 %dir %{_datadir}/games/%{name}
433 %dir %{_datadir}/games/%{name}/id1
434 %{_datadir}/games/%{name}/id1/game.dat*
435 %{_datadir}/games/%{name}/id1/menu.dat*
436 %dir %{_datadir}/games/%{name}/qw
437 %{_pixmapsdir}/%{name}.png
438 %{_mandir}/man1/%{name}.1*
441 %defattr(644,root,root,755)
442 %attr(755,root,root) %{_bindir}/qfcc
443 %attr(755,root,root) %{_libdir}/libQFcd.so
444 %attr(755,root,root) %{_libdir}/libQFcd.la
445 %attr(755,root,root) %{_libdir}/libQFconsole.so
446 %attr(755,root,root) %{_libdir}/libQFconsole.la
447 %attr(755,root,root) %{_libdir}/libQFcsqc.so
448 %attr(755,root,root) %{_libdir}/libQFcsqc.la
449 %attr(755,root,root) %{_libdir}/libQFgamecode.so
450 %attr(755,root,root) %{_libdir}/libQFgamecode.la
451 %attr(755,root,root) %{_libdir}/libQFgamecode_builtins.so
452 %attr(755,root,root) %{_libdir}/libQFgamecode_builtins.la
453 %attr(755,root,root) %{_libdir}/libQFjs.so
454 %attr(755,root,root) %{_libdir}/libQFjs.la
455 %attr(755,root,root) %{_libdir}/libQFmodels.so
456 %attr(755,root,root) %{_libdir}/libQFmodels.la
457 %attr(755,root,root) %{_libdir}/libQFmodels_gl.so
458 %attr(755,root,root) %{_libdir}/libQFmodels_gl.la
459 %attr(755,root,root) %{_libdir}/libQFrenderer_gl.so
460 %attr(755,root,root) %{_libdir}/libQFrenderer_gl.la
461 %attr(755,root,root) %{_libdir}/libQFmodels_sw.so
462 %attr(755,root,root) %{_libdir}/libQFmodels_sw.la
463 %attr(755,root,root) %{_libdir}/libQFrenderer_sw32.so
464 %attr(755,root,root) %{_libdir}/libQFrenderer_sw32.la
465 %attr(755,root,root) %{_libdir}/libQFsound.so
466 %attr(755,root,root) %{_libdir}/libQFsound.la
467 %attr(755,root,root) %{_libdir}/libQFutil.so
468 %attr(755,root,root) %{_libdir}/libQFutil.la
469 %attr(755,root,root) %{_libdir}/%{name}/cd_linux.la
470 %attr(755,root,root) %{_libdir}/%{name}/cd_null.la
471 %attr(755,root,root) %{_libdir}/%{name}/cd_sdl.la
472 %attr(755,root,root) %{_libdir}/%{name}/cd_xmms.la
473 %attr(755,root,root) %{_libdir}/%{name}/console_client.la
474 %attr(755,root,root) %{_libdir}/%{name}/console_server.la
475 %{!?_without_alsa:%attr(755,root,root) %{_libdir}/%{name}/snd_output_alsa0_5.la}
476 %attr(755,root,root) %{_libdir}/%{name}/snd_output_disk.la
477 %attr(755,root,root) %{_libdir}/%{name}/snd_output_null.la
478 %attr(755,root,root) %{_libdir}/%{name}/snd_output_oss.la
479 %attr(755,root,root) %{_libdir}/%{name}/snd_output_sdl.la
480 %attr(755,root,root) %{_libdir}/%{name}/snd_render_default.la
482 %{_mandir}/man1/qfcc.1*
485 %defattr(644,root,root,755)
487 %{_libdir}/libQFconsole.a
488 %{_libdir}/libQFcsqc.a
489 %{_libdir}/libQFgamecode.a
490 %{_libdir}/libQFgamecode_builtins.a
492 %{_libdir}/libQFmodels.a
493 %{_libdir}/libQFmodels_gl.a
494 %{_libdir}/libQFrenderer_gl.a
495 %{_libdir}/libQFmodels_sw.a
496 %{_libdir}/libQFrenderer_sw32.a
497 %{_libdir}/libQFsound.a
498 %{_libdir}/libQFutil.a
499 %{_libdir}/%{name}/cd_linux.a
500 %{_libdir}/%{name}/cd_null.a
501 %{_libdir}/%{name}/cd_sdl.a
502 %{_libdir}/%{name}/cd_xmms.a
503 %{_libdir}/%{name}/console_client.a
504 %{_libdir}/%{name}/console_server.a
505 %{!?_without_alsa:%{_libdir}/%{name}/snd_output_alsa0_5.a}
506 %{_libdir}/%{name}/snd_output_disk.a
507 %{_libdir}/%{name}/snd_output_null.a
508 %{_libdir}/%{name}/snd_output_oss.a
509 %{_libdir}/%{name}/snd_output_sdl.a
510 %{_libdir}/%{name}/snd_render_default.a
513 %defattr(644,root,root,755)
514 %attr(755,root,root) %{_bindir}/qw-server
515 %attr(755,root,root) %{_bindir}/nq-server
516 %attr(755,root,root) %{_bindir}/qw-master
517 %attr(755,root,root) %{_libdir}/%{name}/console_server.so*
518 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/*
521 %defattr(644,root,root,755)
522 %attr(755,root,root) %{_bindir}/pak
523 %attr(755,root,root) %{_bindir}/qfdefs
524 %attr(755,root,root) %{_bindir}/qfprogs
525 %attr(755,root,root) %{_bindir}/qfwavinfo
526 %attr(755,root,root) %{_bindir}/zpak
527 %{_mandir}/man1/pak.1*
528 #%{_mandir}/man1/qfprogs.1*
529 #%{_mandir}/man1/qfwavinfo.1*
532 %defattr(644,root,root,755)
533 %attr(755,root,root) %{_xbindir}/*3dfx
534 %{_applnkdir}/Games/*3dfx.desktop
537 %defattr(644,root,root,755)
538 %attr(755,root,root) %{_bindir}/*fbdev
541 %defattr(644,root,root,755)
542 %attr(755,root,root) %{_xbindir}/*glx
543 %{_applnkdir}/Games/*glx.desktop
546 %defattr(644,root,root,755)
547 %attr(755,root,root) %{_xbindir}/*sdl
548 %{_applnkdir}/Games/*sdl.desktop
551 %defattr(644,root,root,755)
552 %attr(755,root,root) %{_xbindir}/*sdl32
553 %{_applnkdir}/Games/*sdl32.desktop
556 %defattr(644,root,root,755)
557 %attr(755,root,root) %{_xbindir}/*sgl
558 %{_applnkdir}/Games/*sgl.desktop
560 %if %{?_without_svga:0}%{!?_without_svga:1}
562 %defattr(644,root,root,755)
563 %attr(755,root,root) %{_bindir}/*svga
567 %defattr(644,root,root,755)
568 %attr(755,root,root) %{_xbindir}/*x11
569 %{_applnkdir}/Games/*x11.desktop
572 %defattr(644,root,root,755)
573 %attr(755,root,root) %{_libdir}/%{name}/cd_linux.so*
576 %defattr(644,root,root,755)
577 %attr(755,root,root) %{_libdir}/%{name}/cd_sdl.so*
580 %defattr(644,root,root,755)
581 %attr(755,root,root)%{_libdir}/%{name}/cd_xmms.so*
584 %defattr(644,root,root,755)
585 %attr(755,root,root) %{_libdir}/libQFmodels_gl.so.*
586 %attr(755,root,root) %{_libdir}/libQFrenderer_gl.so.*
589 %defattr(644,root,root,755)
590 %attr(755,root,root) %{_libdir}/libQFmodels_sw.so.*
591 %attr(755,root,root) %{_libdir}/libQFrenderer_sw32.so.*
593 %if %{?_without_alsa:0}%{!?_without_alsa:1}
595 %defattr(644,root,root,755)
596 %attr(755,root,root) %{_libdir}/%{name}/snd_output_alsa0_5.so*
600 %defattr(644,root,root,755)
601 %attr(755,root,root) %{_libdir}/%{name}/snd_output_oss.so*
604 %defattr(644,root,root,755)
605 %attr(755,root,root) %{_libdir}/%{name}/snd_output_sdl.so*