3 %bcond_without alsa # without ALSA modules
4 %bcond_without arts # without aRts module
5 %bcond_without jack # without JACK module
6 %bcond_without dbglib # don't build debug versions of library
7 %bcond_without proflib # don't debug profiling versions of library
8 %bcond_without svga # without svgalib module
9 %bcond_without sse # build without sse (valgrind doesn't support it yet)
11 %ifnarch %{ix86} alpha
14 Summary: A game programming library
15 Summary(de): Eine Bibliothek zur Programmierung von Spielen
16 Summary(es): Una libreria de programacion de juegos
17 Summary(fr): Une librairie de programmation de jeux
18 Summary(it): Una libreria per la programmazione di videogiochi
19 Summary(pl): Biblioteka do programowania gier
25 Source0: http://dl.sourceforge.net/alleg/%{name}-%{version}.tar.gz
26 # Source0-md5: f91225cfd2429b8f0ba01f026981b681
27 Patch0: %{name}-info.patch
28 Patch1: %{name}-examples.patch
29 Patch2: %{name}-opt.patch
30 Patch3: %{name}-ldflags.patch
31 Patch4: %{name}-frame-pointer.patch
32 Patch5: %{name}-alsa-1_0.patch
33 URL: http://alleg.sourceforge.net/
34 BuildRequires: XFree86-devel
35 %{?with_alsa:BuildRequires: alsa-lib-devel}
36 %{?with_arts:BuildRequires: arts-devel}
37 BuildRequires: autoconf >= 2.53
38 BuildRequires: automake
39 BuildRequires: esound-devel
40 %{?with_jack:BuildRequires: jack-audio-connection-kit-devel}
41 %{?with_svga:BuildRequires: svgalib-devel}
42 BuildRequires: texinfo
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 Allegro is a cross-platform library intended for use in computer games
47 and other types of multimedia programming.
50 Allegro ist eine plattformübergreifende Bibliothek zur Verwendung in
51 Computerspielen und anderen Formen von Multinediaprogrammierung.
54 Allegro es una librería multi-plataforma creada para ser usada en la
55 programación de juegos u otro tipo de programación multimedia.
58 Allegro est une librairie multi-plateforme destinée à être utilisée dans
59 les jeux vidéo ou d'autres types de programmation multimédia.
62 Allegro è una libreria multipiattaforma dedicata all'uso nei videogiochi
63 ed in altri tipi di programmazione multimediale.
66 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
67 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
70 Summary: A game programming library - header files
71 Summary(pl): Biblioteka do programowania gier - pliki nag³ówkowe
72 Group: Development/Libraries
73 Requires: %{name} = %{version}-%{release}
76 Allegro is a cross-platform library intended for use in computer games
77 and other types of multimedia programming.
79 This package contains header files neccessary for compiling
80 applications using allegro library.
82 %description devel -l de
83 Allegro ist eine plattformübergreifende Bibliothek zur Verwendung in
84 Computerspielen und anderen Formen von Multinediaprogrammierung.
85 Dieses Paket wird benötigt, um Programme zu bauen, die Allegro
88 %description devel -l es
89 Allegro es una librería multi-plataforma creada para ser usada en la
90 programación de juegos u otro tipo de programación multimedia. Este
91 paquete es necesario para compilar los programas que usen Allegro.
93 %description devel -l fr
94 Allegro est une librairie multi-plateforme destinée à être utilisée dans
95 les jeux vidéo ou d'autres types de programmation multimédia. Ce package
96 est nécessaire pour compiler les programmes utilisant Allegro.
98 %description devel -l it
99 Allegro è una libreria multipiattaforma dedicata all'uso nei videogiochi
100 ed in altri tipi di programmazione multimediale. Questo pacchetto è
101 necessario per compilare programmi scritti con Allegro.
103 %description devel -l pl
104 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
105 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
107 Ten pakiet zawiera pliki nag³ówkowe niezbêdne do kompilowania
108 aplikacji wykorzystuj±cych bibliotekê allegro.
111 Summary: A game programming library - static libraries
112 Summary(pl): Biblioteka do programowania gier - biblioteki statyczne
113 Group: Development/Libraries
114 Requires: %{name}-devel = %{version}-%{release}
117 Allegro is a cross-platform library intended for use in computer games
118 and other types of multimedia programming.
120 This package contains static libraries for linking with allegro
123 %description static -l pl
124 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
125 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
127 Ten pakiet zawiera biblioteki statyczne do konsolidacji z aplikacjami
128 wykorzystuj±cymi allegro.
131 Summary: liballd - debug version of shared allegro library
132 Summary(pl): liballd - wersja debug dzielonej biblioteki allegro
133 Group: Development/Libraries
134 Requires: %{name}-devel = %{version}-%{release}
137 liballd - debug version of shared allegro library (contains debugging
138 symbols and other information).
140 %description debug -l pl
141 liballd - wersja debug dzielonej biblioteki allegro (zawieraj±ca
142 symbole i inne informacje potrzebne przy odpluskwianiu).
144 %package debug-static
145 Summary: liballd - debug version of static allegro library
146 Summary(pl): liballd - wersja debug statycznej biblioteki allegro
147 Group: Development/Libraries
148 Requires: %{name}-devel = %{version}-%{release}
150 %description debug-static
151 liballd - debug version of static allegro library (contains debugging
152 symbols and other information).
154 %description debug-static -l pl
155 liballd - wersja debug statycznej biblioteki allegro (zawieraj±ca
156 symbole i inne informacje potrzebne przy odpluskwianiu).
159 Summary: liballp - profiling version of shared allegro library
160 Summary(pl): liballp - wersja dzielonej biblioteki allegro s³u¿±ca do profilowania
161 Group: Development/Libraries
162 Requires: %{name}-devel = %{version}-%{release}
165 liballp - profiling version of shared allegro library.
167 %description profile -l pl
168 liballp - wersja dzielonej biblioteki allegro s³u¿±ca do profilowania.
170 %package profile-static
171 Summary: liballp - profiling version of static allegro library
172 Summary(pl): liballp - wersja statycznej biblioteki allegro s³u¿±ca do profilowania
173 Group: Development/Libraries
174 Requires: %{name}-devel = %{version}-%{release}
176 %description profile-static
177 liballp - profiling version of static allegro library.
179 %description debug-static -l pl
180 liballp - wersja statycznej biblioteki allegro s³u¿±ca do
184 Summary: A game programming library - svgalib module
185 Summary(pl): Biblioteka do programowania gier - modu³ dla svgalib
187 PreReq: %{name} = %{version}-%{release}
190 Allegro is a cross-platform library intended for use in computer games
191 and other types of multimedia programming.
193 This package contains module for use with allegro and svgalib.
195 %description svgalib -l pl
196 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
197 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
199 Ten pakiet zawiera modu³ do wykorzystania allegro z svgalibem.
202 Summary: A game programming library - DGA2 module
203 Summary(pl): Biblioteka do programowania gier - modu³ dla DGA2
205 PreReq: %{name} = %{version}-%{release}
208 Allegro is a cross-platform library intended for use in computer games
209 and other types of multimedia programming.
211 This package contains module for use with DGA.
213 %description dga2 -l pl
214 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
215 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
217 Ten pakiet zawiera modu³ do wykorzystania z DGA.
220 Summary: A game programming library - esound module
221 Summary(pl): Biblioteka do programowania gier - modu³ dla esound
223 PreReq: %{name} = %{version}-%{release}
226 Allegro is a cross-platform library intended for use in computer games
227 and other types of multimedia programming.
229 This package contains a esound module for use with ESound daemon.
231 %description esd -l pl
232 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
233 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
235 Ten pakiet zawiera modu³ do wykorzystania z demonem ESound.
238 Summary: A game programming library - aRts module
239 Summary(pl): Biblioteka do programowania gier - modu³ dla aRts
241 PreReq: %{name} = %{version}-%{release}
244 Allegro is a cross-platform library intended for use in computer games
245 and other types of multimedia programming.
247 This package contains a esound module for use with aRts.
249 %description arts -l pl
250 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
251 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
253 Ten pakiet zawiera modu³ do wykorzystania z aRts.
256 Summary: A game programming library - framebuffer module
257 Summary(pl): Biblioteka do programowania gier - modu³ dla framebuffera
259 PreReq: %{name} = %{version}-%{release}
262 Allegro is a cross-platform library intended for use in computer games
263 and other types of multimedia programming.
265 This package contains a esound module for use with framebuffer.
267 %description fbcon -l pl
268 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
269 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
271 Ten pakiet zawiera modu³ do wykorzystania z framebufferem.
274 Summary: A game programming library - vga module
275 Summary(pl): Biblioteka do programowania gier - modu³ dla vga
277 PreReq: %{name} = %{version}-%{release}
280 Allegro is a cross-platform library intended for use in computer games
281 and other types of multimedia programming.
283 This package contains a esound module for use with vga.
285 %description vga -l pl
286 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
287 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
289 Ten pakiet zawiera modu³ do wykorzystania z vga.
292 Summary: A game programming library - ALSA modules
293 Summary(pl): Biblioteka do programowania gier - modu³y dla ALSA
295 PreReq: %{name} = %{version}-%{release}
296 Obsoletes: allegro-alsa9
299 Allegro is a cross-platform library intended for use in computer games
300 and other types of multimedia programming.
302 This package contains modules for use with ALSA sound library.
304 %description alsa -l pl
305 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
306 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
308 Ten pakiet zawiera modu³y do wykorzystania z bibliotek± d¼wiêkow±
312 Summary: A game programming library - JACK module
313 Summary(pl): Biblioteka do programowania gier - modu³ dla JACK
315 PreReq: %{name} = %{version}-%{release}
318 Allegro is a cross-platform library intended for use in computer games
319 and other types of multimedia programming.
321 This package contains module for use with JACK sound library.
323 %description alsa -l pl
324 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
325 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
327 Ten pakiet zawiera modu³ do wykorzystania z bibliotek± d¼wiêkow±
331 Summary: A game programming library - tools
332 Summary(de): Zusätzliche Hilfprogramme für die Allegro Bibliothek
333 Summary(es): Herramientas adicionales para la librería de programación Allegro
334 Summary(fr): Outils supplémentaires pour la librairie de programmation Allegro
335 Summary(it): Programmi di utilità aggiuntivi per la libreria Allegro
336 Summary(pl): Biblioteka do programowania gier - narzêdzia
338 PreReq: %{name} = %{version}-%{release}
341 Allegro is a cross-platform library intended for use in computer games
342 and other types of multimedia programming.
344 This package contains tools.
346 %description tools -l de
347 Allegro ist eine plattformübergreifende Bibliothek zur Verwendung in
348 Computerspielen und anderen Formen von Multinediaprogrammierung.
349 Dieses Paket enthält Programme, die für die Entwicklung von
350 Allegro Programmen hilfreich sind.
352 %description tools -l es
353 Allegro es una librería multi-plataforma creada para ser usada en la
354 programación de juegos u otro tipo de programación multimedia. Este
355 paquete contiene herramientas adicionales que son útiles para
356 desarrollar programas que usen Allegro.
358 %description tools -l fr
359 Allegro est une librairie multi-plateforme destinée à être utilisée dans
360 les jeux vidéo ou d'autres types de programmation multimédia. Ce package
361 contient des outils supplémentaires qui sont utiles pour le développement
362 de programmes avec Allegro.
364 %description tools -l it
365 Allegro è una libreria multipiattaforma dedicata all'uso nei videogiochi
366 ed in altri tipi di programmazione multimediale. Questo pacchetto
367 contiene programmi di utilità aggiuntivi utili allo sviluppo di programmi
370 %description tools -l pl
371 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
372 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
374 Ten pakiet zawiera narzêdzia.
377 Summary: A game programming library - test programs
378 Summary(pl): Biblioteka do programowania gier - programy testuj±ce
379 Group: Development/Libraries
380 Requires: %{name} = %{version}-%{release}
383 This package contains programs for testing allegro library.
385 %description tests -l pl
386 Pakiet zawiera programy testuj±ce bibliotekê allegro.
389 Summary: A game programming library - examples
390 Summary(pl): Biblioteka do programowania gier - programy przyk³adowe
391 Group: Development/Libraries
392 Requires: %{name} = %{version}-%{release}
394 %description examples
395 This package contains example programs which demonstrate allegro
398 %description examples -l pl
399 Pakiet zawiera programy przyk³adowe demonstruj±ce mo¿liwo¶ci
413 %{__autoheader} configure.in > include/allegro/platform/alunixac.hin
415 TARGET_ARCH="%{rpmcflags}" export TARGET_ARCH
416 # dbglib & proflib are compiled besides normlib, so it's ok to have them here
419 %{!?with_svga:--disable-svgalib} \
420 %{?with_dbglib:--enable-dbglib} \
421 %{?with_proflib:--enable-proflib} \
422 %{!?with_arts:--disable-artsdigi} \
423 %{!?with_sse:--disable-sse} \
424 %{!?with_sse:--disable-asm} \
435 rm -rf $RPM_BUILD_ROOT
437 %{__make} install install-man install-info install-lib \
438 DESTDIR=$RPM_BUILD_ROOT
440 install modules.lst $RPM_BUILD_ROOT%{_libdir}/allegro/4.1
442 mv $RPM_BUILD_ROOT%{_bindir}/demo{,-allegro}
443 mv $RPM_BUILD_ROOT%{_bindir}/play{,-allegro}
444 mv $RPM_BUILD_ROOT%{_bindir}/setup{,-allegro}
445 mv $RPM_BUILD_ROOT%{_bindir}/test{,-allegro}
447 # help rpm to find reqs for ELF objects
448 chmod 755 $RPM_BUILD_ROOT%{_libdir}/{*.so,allegro/*/*.so}
451 rm -rf $RPM_BUILD_ROOT
453 %post -p /sbin/ldconfig
454 %postun -p /sbin/ldconfig
457 %defattr(644,root,root,755)
458 %doc AUTHORS CHANGES THANKS
459 %attr(755,root,root) %{_libdir}/liballeg-%{version}.so
460 %dir %{_libdir}/allegro
461 %dir %{_libdir}/allegro/4.1
462 %{_libdir}/allegro/4.1/modules.lst
465 %defattr(644,root,root,755)
466 %attr(755,root,root) %{_bindir}/allegro-config
467 %{_libdir}/liballeg_unsharable.a
473 %defattr(644,root,root,755)
474 %{_libdir}/liballeg.a
478 %defattr(644,root,root,755)
479 %attr(755,root,root) %{_libdir}/liballd-%{version}.so
480 %{_libdir}/liballd_unsharable.a
483 %defattr(644,root,root,755)
489 %defattr(644,root,root,755)
490 %attr(755,root,root) %{_libdir}/liballp-%{version}.so
491 %{_libdir}/liballp_unsharable.a
493 %files profile-static
494 %defattr(644,root,root,755)
500 %defattr(644,root,root,755)
501 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-svgalib.so
505 %defattr(644,root,root,755)
506 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-dga2.so
509 %defattr(644,root,root,755)
510 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-esddigi.so
514 %defattr(644,root,root,755)
515 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-artsdigi.so
519 %defattr(644,root,root,755)
520 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-fbcon.so
524 %defattr(644,root,root,755)
525 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-vga.so
530 %defattr(644,root,root,755)
531 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-alsadigi.so
532 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-alsamidi.so
537 %defattr(644,root,root,755)
538 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-jackdigi.so
542 %defattr(644,root,root,755)
543 %attr(755,root,root) %{_bindir}/colormap
544 %attr(755,root,root) %{_bindir}/exedat
545 %attr(755,root,root) %{_bindir}/pack
546 %attr(755,root,root) %{_bindir}/rgbmap
547 %attr(755,root,root) %{_bindir}/textconv
548 %attr(755,root,root) %{_bindir}/dat
549 %attr(755,root,root) %{_bindir}/dat2c
550 %attr(755,root,root) %{_bindir}/dat2s
551 %attr(755,root,root) %{_bindir}/grabber
552 %attr(755,root,root) %{_bindir}/pat2dat
553 %attr(755,root,root) %{_bindir}/setup-allegro
554 %attr(755,root,root) %{_bindir}/keyconf
557 %defattr(644,root,root,755)
558 %attr(755,root,root) %{_bindir}/afinfo
559 %attr(755,root,root) %{_bindir}/akaitest
560 %attr(755,root,root) %{_bindir}/demo-allegro
561 %attr(755,root,root) %{_bindir}/digitest
562 %attr(755,root,root) %{_bindir}/filetest
563 %attr(755,root,root) %{_bindir}/gfxinfo
564 %attr(755,root,root) %{_bindir}/mathtest
565 %attr(755,root,root) %{_bindir}/miditest
566 %attr(755,root,root) %{_bindir}/play-allegro
567 %attr(755,root,root) %{_bindir}/playfli
568 %attr(755,root,root) %{_bindir}/test-allegro
569 %attr(755,root,root) %{_bindir}/vesainfo
572 %defattr(644,root,root,755)
573 %attr(755,root,root) %{_bindir}/ex12bit
574 %attr(755,root,root) %{_bindir}/ex3buf
575 %attr(755,root,root) %{_bindir}/ex3d
576 %attr(755,root,root) %{_bindir}/exaccel
577 %attr(755,root,root) %{_bindir}/exalpha
578 %attr(755,root,root) %{_bindir}/exbitmap
579 %attr(755,root,root) %{_bindir}/exblend
580 %attr(755,root,root) %{_bindir}/excamera
581 %attr(755,root,root) %{_bindir}/excolmap
582 %attr(755,root,root) %{_bindir}/exconfig
583 %attr(755,root,root) %{_bindir}/excustom
584 %attr(755,root,root) %{_bindir}/exdata
585 %attr(755,root,root) %{_bindir}/exdbuf
586 %attr(755,root,root) %{_bindir}/exdodgy
587 %attr(755,root,root) %{_bindir}/exexedat
588 %attr(755,root,root) %{_bindir}/exfixed
589 %attr(755,root,root) %{_bindir}/exflame
590 %attr(755,root,root) %{_bindir}/exflip
591 %attr(755,root,root) %{_bindir}/exgui
592 %attr(755,root,root) %{_bindir}/exhello
593 %attr(755,root,root) %{_bindir}/exjoy
594 %attr(755,root,root) %{_bindir}/exkeys
595 %attr(755,root,root) %{_bindir}/exlights
596 %attr(755,root,root) %{_bindir}/exmem
597 %attr(755,root,root) %{_bindir}/exmidi
598 %attr(755,root,root) %{_bindir}/exmouse
599 %attr(755,root,root) %{_bindir}/expal
600 %attr(755,root,root) %{_bindir}/expat
601 %attr(755,root,root) %{_bindir}/exquat
602 %attr(755,root,root) %{_bindir}/exrgbhsv
603 %attr(755,root,root) %{_bindir}/exsample
604 %attr(755,root,root) %{_bindir}/exscale
605 %attr(755,root,root) %{_bindir}/exscn3d
606 %attr(755,root,root) %{_bindir}/exscroll
607 %attr(755,root,root) %{_bindir}/exshade
608 %attr(755,root,root) %{_bindir}/exspline
609 %attr(755,root,root) %{_bindir}/exsprite
610 %attr(755,root,root) %{_bindir}/exstars
611 %attr(755,root,root) %{_bindir}/exstream
612 %attr(755,root,root) %{_bindir}/exswitch
613 %attr(755,root,root) %{_bindir}/extimer
614 %attr(755,root,root) %{_bindir}/extrans
615 %attr(755,root,root) %{_bindir}/extruec
616 %attr(755,root,root) %{_bindir}/exunicod
617 %attr(755,root,root) %{_bindir}/exupdate
618 %attr(755,root,root) %{_bindir}/exxfade
619 %attr(755,root,root) %{_bindir}/exzbuf