3 # _without_alsa - without alsa modules
4 # _without_arts - without arts module
5 # _without_dbglib - don't build debug versions of library
6 # _without_proflib - don't debug profiling versions of library
7 # _with_alsa9 - use alsa 0.9 not 0.5
10 %define _without_alsa 1
12 %{!?_without_alsa:%{!?_with_alsa9:%define _with_alsa5 1}}
13 Summary: A game programming library
14 Summary(pl): Biblioteka do programowania gier
20 Source0: http://dl.sourceforge.net/alleg/%{name}-%{version}.tar.gz
21 Patch0: %{name}-info.patch
22 Patch1: %{name}-examples.patch
23 Patch2: %{name}-alsa9.patch
24 Patch3: %{name}-opt.patch
25 URL: http://alleg.sourceforge.net/
26 BuildRequires: XFree86-devel
27 %{!?_without_alsa:BuildRequires: alsa-lib-devel}
28 %{!?_without_arts:BuildRequires: arts-devel}
29 BuildRequires: autoconf
30 BuildRequires: automake
31 BuildRequires: esound-devel
33 BuildRequires: svgalib-devel
35 BuildRequires: texinfo
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 Allegro is a cross-platform library intended for use in computer games
40 and other types of multimedia programming.
43 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
44 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
47 Summary: A game programming library - header files
48 Summary(pl): Biblioteka do programowania gier - pliki nag³ówkowe
49 Group: Development/Libraries
50 Requires: %{name} = %{version}
53 Allegro is a cross-platform library intended for use in computer games
54 and other types of multimedia programming.
56 This package contains header files neccessary for compiling
57 applications using allegro library.
59 %description devel -l pl
60 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
61 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
63 Ten pakiet zawiera pliki nag³ówkowe niezbêdne do kompilowania
64 aplikacji wykorzystuj±cych bibliotekê allegro.
67 Summary: A game programming library - static libraries
68 Summary(pl): Biblioteka do programowania gier - biblioteki statyczne
69 Group: Development/Libraries
70 Requires: %{name}-devel = %{version}
73 Allegro is a cross-platform library intended for use in computer games
74 and other types of multimedia programming.
76 This package contains static libraries for linking with allegro
79 %description static -l pl
80 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
81 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
83 Ten pakiet zawiera biblioteki statyczne do linkowania z aplikacjami
84 wykorzystuj±cymi allegro.
87 Summary: liballd - debug version of shared allegro library
88 Summary(pl): liballd - wersja debug dzielonej biblioteki allegro
89 Group: Development/Libraries
90 Requires: %{name}-devel = %{version}
93 liballd - debug version of shared allegro library (contains debugging
94 symbols and other information).
96 %description debug -l pl
97 liballd - wersja debug dzielonej biblioteki allegro (zawieraj±ca
98 symbole i inne informacje potrzebne przy odpluskwianiu).
100 %package debug-static
101 Summary: liballd - debug version of static allegro library
102 Summary(pl): liballd - wersja debug statycznej biblioteki allegro
103 Group: Development/Libraries
104 Requires: %{name}-devel = %{version}
106 %description debug-static
107 liballd - debug version of static allegro library (contains debugging
108 symbols and other information).
110 %description debug-static -l pl
111 liballd - wersja debug statycznej biblioteki allegro (zawieraj±ca
112 symbole i inne informacje potrzebne przy odpluskwianiu).
115 Summary: liballp - profiling version of shared allegro library
116 Summary(pl): liballp - wersja dzielonej biblioteki allegro s³u¿±ca do profilowania
117 Group: Development/Libraries
118 Requires: %{name}-devel = %{version}
121 liballp - profiling version of shared allegro library.
123 %description profile -l pl
124 liballp - wersja dzielonej biblioteki allegro s³u¿±ca do profilowania.
126 %package profile-static
127 Summary: liballp - profiling version of static allegro library
128 Summary(pl): liballp - wersja statycznej biblioteki allegro s³u¿±ca do profilowania
129 Group: Development/Libraries
130 Requires: %{name}-devel = %{version}
132 %description profile-static
133 liballp - profiling version of static allegro library.
135 %description debug-static -l pl
136 liballp - wersja statycznej biblioteki allegro s³u¿±ca do
140 Summary: A game programming library - svgalib module
141 Summary(pl): Biblioteka do programowania gier - modu³ dla svgalib
143 PreReq: %{name} = %{version}
146 Allegro is a cross-platform library intended for use in computer games
147 and other types of multimedia programming.
149 This package contains module for use with allegro and svgalib.
151 %description svgalib -l pl
152 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
153 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
155 Ten pakiet zawiera modu³ do wykorzystania allegro z svgalibem.
158 Summary: A game programming library - DGA2 module
159 Summary(pl): Biblioteka do programowania gier - modu³ dla DGA2
161 PreReq: %{name} = %{version}
164 Allegro is a cross-platform library intended for use in computer games
165 and other types of multimedia programming.
167 This package contains module for use with DGA.
169 %description dga2 -l pl
170 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
171 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
173 Ten pakiet zawiera modu³ do wykorzystania z DGA.
176 Summary: A game programming library - esound module
177 Summary(pl): Biblioteka do programowania gier - modu³ dla esound
179 PreReq: %{name} = %{version}
182 Allegro is a cross-platform library intended for use in computer games
183 and other types of multimedia programming.
185 This package contains a esound module for use with ESound daemon.
187 %description esd -l pl
188 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
189 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
191 Ten pakiet zawiera modu³ do wykorzystania z demonem ESound.
194 Summary: A game programming library - aRts module
195 Summary(pl): Biblioteka do programowania gier - modu³ dla aRts
197 PreReq: %{name} = %{version}
200 Allegro is a cross-platform library intended for use in computer games
201 and other types of multimedia programming.
203 This package contains a esound module for use with aRts.
205 %description arts -l pl
206 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
207 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
209 Ten pakiet zawiera modu³ do wykorzystania z aRts.
212 Summary: A game programming library - framebuffer module
213 Summary(pl): Biblioteka do programowania gier - modu³ dla framebuffera
215 PreReq: %{name} = %{version}
218 Allegro is a cross-platform library intended for use in computer games
219 and other types of multimedia programming.
221 This package contains a esound module for use with framebuffer.
223 %description fbcon -l pl
224 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
225 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
227 Ten pakiet zawiera modu³ do wykorzystania z framebufferem.
230 Summary: A game programming library - vga module
231 Summary(pl): Biblioteka do programowania gier - modu³ dla vga
233 PreReq: %{name} = %{version}
236 Allegro is a cross-platform library intended for use in computer games
237 and other types of multimedia programming.
239 This package contains a esound module for use with vga.
241 %description vga -l pl
242 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
243 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
245 Ten pakiet zawiera modu³ do wykorzystania z vga.
248 Summary: A game programming library - ALSA 0.9 modules
249 Summary(pl): Biblioteka do programowania gier - modu³y dla ALSA 0.9
251 PreReq: %{name} = %{version}
254 Allegro is a cross-platform library intended for use in computer games
255 and other types of multimedia programming.
257 This package contains modules for use with ALSA 0.9 sound library.
259 %description alsa9 -l pl
260 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
261 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
263 Ten pakiet zawiera modu³y do wykorzystania z bibliotek± d¼wiêkow±
267 Summary: A game programming library - ALSA modules
268 Summary(pl): Biblioteka do programowania gier - modu³y dla ALSA
270 PreReq: %{name} = %{version}
273 Allegro is a cross-platform library intended for use in computer games
274 and other types of multimedia programming.
276 This package contains modules for use with ALSA sound library.
278 %description alsa -l pl
279 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
280 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
282 Ten pakiet zawiera modu³y do wykorzystania z bibliotek± d¼wiêkow±
286 Summary: A game programming library - tools
287 Summary(pl): Biblioteka do programowania gier - narzêdzia
289 PreReq: %{name} = %{version}
292 Allegro is a cross-platform library intended for use in computer games
293 and other types of multimedia programming.
295 This package contains tools.
297 %description tools -l pl
298 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
299 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
301 Ten pakiet zawiera narzêdzia.
304 Summary: A game programming library - test programs
305 Summary(pl): Biblioteka do programowania gier - programy testuj±ce
306 Group: Development/Libraries
307 Requires: %{name} = %{version}
310 This package contains programs for testing allegro library.
312 %description tests -l pl
313 Pakiet zawiera programy testuj±ce bibliotekê allegro.
316 Summary: A game programming library - examples
317 Summary(pl): Biblioteka do programowania gier - programy przyk³adowe
318 Group: Development/Libraries
319 Requires: %{name} = %{version}
321 %description examples
322 This package contains example programs which are showing
325 %description examples -l pl
326 Pakiet zawiera programy przyk³adowe demonstruj±ce mo?liwo¶ci biblioteki allegro.
337 %{__autoheader} configure.in include/allegro/platform/alunixac.hin
339 TARGET_ARCH="%{rpmcflags}"; export TARGET_ARCH
340 # dbglib & proflib are compiled besides normlib, so it's ok to have them here
343 %{!?_without_dbglib:--enable-dbglib} \
344 %ifnarch %{ix86} alpha
348 %{!?_without_proflib:--enable-proflib} \
357 rm -rf $RPM_BUILD_ROOT
359 %{__make} install install-man install-info install-lib \
360 DESTDIR=$RPM_BUILD_ROOT
362 install modules.lst $RPM_BUILD_ROOT%{_libdir}/allegro/4.1
364 mv $RPM_BUILD_ROOT%{_bindir}/demo{,-allegro}
365 mv $RPM_BUILD_ROOT%{_bindir}/play{,-allegro}
366 mv $RPM_BUILD_ROOT%{_bindir}/setup{,-allegro}
367 mv $RPM_BUILD_ROOT%{_bindir}/test{,-allegro}
370 rm -rf $RPM_BUILD_ROOT
372 %post -p /sbin/ldconfig
373 %postun -p /sbin/ldconfig
376 %defattr(644,root,root,755)
377 %doc AUTHORS CHANGES THANKS
378 %attr(755,root,root) %{_libdir}/liballeg-%{version}.so
379 %dir %{_libdir}/allegro
380 %dir %{_libdir}/allegro/4.1
381 %{_libdir}/allegro/4.1/modules.lst
384 %defattr(644,root,root,755)
385 %attr(755,root,root) %{_bindir}/allegro-config
386 %{_libdir}/liballeg_unsharable.a
392 %defattr(644,root,root,755)
393 %{_libdir}/liballeg.a
395 %if 0%{!?_without_dbglib:1}
397 %defattr(644,root,root,755)
398 %attr(755,root,root) %{_libdir}/liballd-%{version}.so
399 %{_libdir}/liballd_unsharable.a
402 %defattr(644,root,root,755)
406 %if 0%{!?_without_proflib:1}
408 %defattr(644,root,root,755)
409 %attr(755,root,root) %{_libdir}/liballp-%{version}.so
410 %{_libdir}/liballp_unsharable.a
412 %files profile-static
413 %defattr(644,root,root,755)
417 %ifarch %{ix86} alpha
419 %defattr(644,root,root,755)
420 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-svgalib.so
424 %defattr(644,root,root,755)
425 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-dga2.so
428 %defattr(644,root,root,755)
429 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-esddigi.so
431 %if 0%{!?_without_arts:1}
433 %defattr(644,root,root,755)
434 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-artsdigi.so
438 %defattr(644,root,root,755)
439 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-fbcon.so
442 %defattr(644,root,root,755)
443 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-vga.so
445 %if 0%{?_with_alsa5:1}
447 %defattr(644,root,root,755)
448 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-alsadigi.so
449 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-alsamidi.so
452 %if 0%{?_with_alsa9:1}
454 %defattr(644,root,root,755)
455 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-alsa9digi.so
456 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-alsa9midi.so
460 %defattr(644,root,root,755)
461 %attr(755,root,root) %{_bindir}/colormap
462 %attr(755,root,root) %{_bindir}/exedat
463 %attr(755,root,root) %{_bindir}/pack
464 %attr(755,root,root) %{_bindir}/rgbmap
465 %attr(755,root,root) %{_bindir}/textconv
466 %attr(755,root,root) %{_bindir}/dat
467 %attr(755,root,root) %{_bindir}/dat2c
468 %attr(755,root,root) %{_bindir}/dat2s
469 %attr(755,root,root) %{_bindir}/grabber
470 %attr(755,root,root) %{_bindir}/pat2dat
471 %attr(755,root,root) %{_bindir}/setup-allegro
472 %attr(755,root,root) %{_bindir}/keyconf
475 %defattr(644,root,root,755)
476 %attr(755,root,root) %{_bindir}/afinfo
477 %attr(755,root,root) %{_bindir}/akaitest
478 %attr(755,root,root) %{_bindir}/demo-allegro
479 %attr(755,root,root) %{_bindir}/digitest
480 %attr(755,root,root) %{_bindir}/filetest
481 %attr(755,root,root) %{_bindir}/gfxinfo
482 %attr(755,root,root) %{_bindir}/mathtest
483 %attr(755,root,root) %{_bindir}/miditest
484 %attr(755,root,root) %{_bindir}/play-allegro
485 %attr(755,root,root) %{_bindir}/playfli
486 %attr(755,root,root) %{_bindir}/test-allegro
487 %attr(755,root,root) %{_bindir}/vesainfo
490 %defattr(644,root,root,755)
491 %attr(755,root,root) %{_bindir}/ex12bit
492 %attr(755,root,root) %{_bindir}/ex3buf
493 %attr(755,root,root) %{_bindir}/ex3d
494 %attr(755,root,root) %{_bindir}/exaccel
495 %attr(755,root,root) %{_bindir}/exalpha
496 %attr(755,root,root) %{_bindir}/exbitmap
497 %attr(755,root,root) %{_bindir}/exblend
498 %attr(755,root,root) %{_bindir}/excamera
499 %attr(755,root,root) %{_bindir}/excolmap
500 %attr(755,root,root) %{_bindir}/excustom
501 %attr(755,root,root) %{_bindir}/exdata
502 %attr(755,root,root) %{_bindir}/exdbuf
503 %attr(755,root,root) %{_bindir}/exdodgy
504 %attr(755,root,root) %{_bindir}/exexedat
505 %attr(755,root,root) %{_bindir}/exfixed
506 %attr(755,root,root) %{_bindir}/exflame
507 %attr(755,root,root) %{_bindir}/exflip
508 %attr(755,root,root) %{_bindir}/exgui
509 %attr(755,root,root) %{_bindir}/exhello
510 %attr(755,root,root) %{_bindir}/exjoy
511 %attr(755,root,root) %{_bindir}/exkeys
512 %attr(755,root,root) %{_bindir}/exlights
513 %attr(755,root,root) %{_bindir}/exmem
514 %attr(755,root,root) %{_bindir}/exmidi
515 %attr(755,root,root) %{_bindir}/exmouse
516 %attr(755,root,root) %{_bindir}/expal
517 %attr(755,root,root) %{_bindir}/expat
518 %attr(755,root,root) %{_bindir}/exquat
519 %attr(755,root,root) %{_bindir}/exrgbhsv
520 %attr(755,root,root) %{_bindir}/exsample
521 %attr(755,root,root) %{_bindir}/exscale
522 %attr(755,root,root) %{_bindir}/exscn3d
523 %attr(755,root,root) %{_bindir}/exscroll
524 %attr(755,root,root) %{_bindir}/exshade
525 %attr(755,root,root) %{_bindir}/exspline
526 %attr(755,root,root) %{_bindir}/exsprite
527 %attr(755,root,root) %{_bindir}/exstars
528 %attr(755,root,root) %{_bindir}/exstream
529 %attr(755,root,root) %{_bindir}/exswitch
530 %attr(755,root,root) %{_bindir}/extimer
531 %attr(755,root,root) %{_bindir}/extrans
532 %attr(755,root,root) %{_bindir}/extruec
533 %attr(755,root,root) %{_bindir}/exunicod
534 %attr(755,root,root) %{_bindir}/exupdate
535 %attr(755,root,root) %{_bindir}/exxfade
536 %attr(755,root,root) %{_bindir}/exzbuf