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 Summary: A game programming library
12 Summary(de): Eine Bibliothek zur Programmierung von Spielen
13 Summary(es): Una biblioteca de programación de juegos
14 Summary(fr): Une librairie de programmation de jeux
15 Summary(it): Una libreria per la programmazione di videogiochi
16 Summary(pl): Biblioteka do programowania gier
22 Source0: http://dl.sourceforge.net/alleg/%{name}-%{version}.tar.gz
23 # Source0-md5: 46a73066105e379ec2ec18ddee8d7c63
24 Patch0: %{name}-info.patch
25 Patch1: %{name}-examples.patch
26 Patch2: %{name}-opt.patch
27 Patch3: %{name}-ldflags.patch
28 Patch4: %{name}-frame-pointer.patch
29 Patch5: %{name}-alsa-1_0.patch
30 Patch6: %{name}-am18.patch
31 URL: http://alleg.sourceforge.net/
32 BuildRequires: XFree86-devel
33 %{?with_alsa:BuildRequires: alsa-lib-devel}
34 %{?with_arts:BuildRequires: arts-devel}
35 BuildRequires: autoconf >= 2.53
36 BuildRequires: automake
37 BuildRequires: esound-devel
38 %{?with_jack:BuildRequires: jack-audio-connection-kit-devel}
39 %{?with_svga:BuildRequires: svgalib-devel}
40 BuildRequires: texinfo
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 Allegro is a cross-platform library intended for use in computer games
45 and other types of multimedia programming.
48 Allegro ist eine plattformübergreifende Bibliothek zur Verwendung in
49 Computerspielen und anderen Formen von Multinediaprogrammierung.
52 Allegro es una librería multi-plataforma creada para ser usada en la
53 programación de juegos u otro tipo de programación multimedia.
56 Allegro est une librairie multi-plateforme destinée à être utilisée dans
57 les jeux vidéo ou d'autres types de programmation multimédia.
60 Allegro è una libreria multipiattaforma dedicata all'uso nei videogiochi
61 ed in altri tipi di programmazione multimediale.
64 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
65 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
68 Summary: A game programming library - header files
69 Summary(es): Archivos de inclusión
70 Summary(pl): Biblioteka do programowania gier - pliki nag³ówkowe
71 Group: Development/Libraries
72 Requires: %{name} = %{version}-%{release}
75 Allegro is a cross-platform library intended for use in computer games
76 and other types of multimedia programming.
78 This package contains header files neccessary for compiling
79 applications using allegro library.
81 %description devel -l de
82 Allegro ist eine plattformübergreifende Bibliothek zur Verwendung in
83 Computerspielen und anderen Formen von Multinediaprogrammierung.
84 Dieses Paket wird benötigt, um Programme zu bauen, die Allegro
87 %description devel -l es
88 Allegro es una librería multi-plataforma creada para ser usada en la
89 programación de juegos u otro tipo de programación multimedia. Este
90 paquete es necesario para compilar los programas que usen Allegro.
92 %description devel -l fr
93 Allegro est une librairie multi-plateforme destinée à être utilisée dans
94 les jeux vidéo ou d'autres types de programmation multimédia. Ce package
95 est nécessaire pour compiler les programmes utilisant Allegro.
97 %description devel -l it
98 Allegro è una libreria multipiattaforma dedicata all'uso nei videogiochi
99 ed in altri tipi di programmazione multimediale. Questo pacchetto è
100 necessario per compilare programmi scritti con Allegro.
102 %description devel -l pl
103 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
104 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
106 Ten pakiet zawiera pliki nag³ówkowe niezbêdne do kompilowania
107 aplikacji wykorzystuj±cych bibliotekê allegro.
110 Summary: A game programming library - static libraries
111 Summary(pl): Biblioteka do programowania gier - biblioteki statyczne
112 Group: Development/Libraries
113 Requires: %{name}-devel = %{version}-%{release}
116 Allegro is a cross-platform library intended for use in computer games
117 and other types of multimedia programming.
119 This package contains static libraries for linking with allegro
122 %description static -l pl
123 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
124 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
126 Ten pakiet zawiera biblioteki statyczne do konsolidacji z aplikacjami
127 wykorzystuj±cymi allegro.
130 Summary: liballd - debug version of shared allegro library
131 Summary(pl): liballd - wersja debug dzielonej biblioteki allegro
132 Group: Development/Libraries
133 Requires: %{name}-devel = %{version}-%{release}
136 liballd - debug version of shared allegro library (contains debugging
137 symbols and other information).
139 %description debug -l pl
140 liballd - wersja debug dzielonej biblioteki allegro (zawieraj±ca
141 symbole i inne informacje potrzebne przy odpluskwianiu).
143 %package debug-static
144 Summary: liballd - debug version of static allegro library
145 Summary(pl): liballd - wersja debug statycznej biblioteki allegro
146 Group: Development/Libraries
147 Requires: %{name}-devel = %{version}-%{release}
149 %description debug-static
150 liballd - debug version of static allegro library (contains debugging
151 symbols and other information).
153 %description debug-static -l pl
154 liballd - wersja debug statycznej biblioteki allegro (zawieraj±ca
155 symbole i inne informacje potrzebne przy odpluskwianiu).
158 Summary: liballp - profiling version of shared allegro library
159 Summary(pl): liballp - wersja dzielonej biblioteki allegro s³u¿±ca do profilowania
160 Group: Development/Libraries
161 Requires: %{name}-devel = %{version}-%{release}
164 liballp - profiling version of shared allegro library.
166 %description profile -l pl
167 liballp - wersja dzielonej biblioteki allegro s³u¿±ca do profilowania.
169 %package profile-static
170 Summary: liballp - profiling version of static allegro library
171 Summary(pl): liballp - wersja statycznej biblioteki allegro s³u¿±ca do profilowania
172 Group: Development/Libraries
173 Requires: %{name}-devel = %{version}-%{release}
175 %description profile-static
176 liballp - profiling version of static allegro library.
178 %description debug-static -l pl
179 liballp - wersja statycznej biblioteki allegro s³u¿±ca do
183 Summary: A game programming library - svgalib module
184 Summary(pl): Biblioteka do programowania gier - modu³ dla svgalib
186 PreReq: %{name} = %{version}-%{release}
189 Allegro is a cross-platform library intended for use in computer games
190 and other types of multimedia programming.
192 This package contains module for use with allegro and svgalib.
194 %description svgalib -l pl
195 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
196 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
198 Ten pakiet zawiera modu³ do wykorzystania allegro z svgalibem.
201 Summary: A game programming library - DGA2 module
202 Summary(pl): Biblioteka do programowania gier - modu³ dla DGA2
204 PreReq: %{name} = %{version}-%{release}
207 Allegro is a cross-platform library intended for use in computer games
208 and other types of multimedia programming.
210 This package contains module for use with DGA.
212 %description dga2 -l pl
213 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
214 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
216 Ten pakiet zawiera modu³ do wykorzystania z DGA.
219 Summary: A game programming library - esound module
220 Summary(pl): Biblioteka do programowania gier - modu³ dla esound
222 PreReq: %{name} = %{version}-%{release}
225 Allegro is a cross-platform library intended for use in computer games
226 and other types of multimedia programming.
228 This package contains a esound module for use with ESound daemon.
230 %description esd -l pl
231 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
232 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
234 Ten pakiet zawiera modu³ do wykorzystania z demonem ESound.
237 Summary: A game programming library - aRts module
238 Summary(pl): Biblioteka do programowania gier - modu³ dla aRts
240 PreReq: %{name} = %{version}-%{release}
243 Allegro is a cross-platform library intended for use in computer games
244 and other types of multimedia programming.
246 This package contains a esound module for use with aRts.
248 %description arts -l pl
249 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
250 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
252 Ten pakiet zawiera modu³ do wykorzystania z aRts.
255 Summary: A game programming library - framebuffer module
256 Summary(pl): Biblioteka do programowania gier - modu³ dla framebuffera
258 PreReq: %{name} = %{version}-%{release}
261 Allegro is a cross-platform library intended for use in computer games
262 and other types of multimedia programming.
264 This package contains a esound module for use with framebuffer.
266 %description fbcon -l pl
267 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
268 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
270 Ten pakiet zawiera modu³ do wykorzystania z framebufferem.
273 Summary: A game programming library - vga module
274 Summary(pl): Biblioteka do programowania gier - modu³ dla vga
276 PreReq: %{name} = %{version}-%{release}
279 Allegro is a cross-platform library intended for use in computer games
280 and other types of multimedia programming.
282 This package contains a esound module for use with vga.
284 %description vga -l pl
285 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
286 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
288 Ten pakiet zawiera modu³ do wykorzystania z vga.
291 Summary: A game programming library - ALSA modules
292 Summary(pl): Biblioteka do programowania gier - modu³y dla ALSA
294 PreReq: %{name} = %{version}-%{release}
295 Obsoletes: allegro-alsa9
298 Allegro is a cross-platform library intended for use in computer games
299 and other types of multimedia programming.
301 This package contains modules for use with ALSA sound library.
303 %description alsa -l pl
304 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
305 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
307 Ten pakiet zawiera modu³y do wykorzystania z bibliotek± d¼wiêkow±
311 Summary: A game programming library - JACK module
312 Summary(pl): Biblioteka do programowania gier - modu³ dla JACK-a
314 PreReq: %{name} = %{version}-%{release}
317 Allegro is a cross-platform library intended for use in computer games
318 and other types of multimedia programming.
320 This package contains module for use with JACK sound library.
322 %description alsa -l pl
323 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
324 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
326 Ten pakiet zawiera modu³ do wykorzystania z bibliotek± d¼wiêkow±
330 Summary: A game programming library - tools
331 Summary(de): Zusätzliche Hilfprogramme für die Allegro Bibliothek
332 Summary(es): Herramientas adicionales para la librería de programación Allegro
333 Summary(fr): Outils supplémentaires pour la librairie de programmation Allegro
334 Summary(it): Programmi di utilità aggiuntivi per la libreria Allegro
335 Summary(pl): Biblioteka do programowania gier - narzêdzia
337 PreReq: %{name} = %{version}-%{release}
340 Allegro is a cross-platform library intended for use in computer games
341 and other types of multimedia programming.
343 This package contains tools.
345 %description tools -l de
346 Allegro ist eine plattformübergreifende Bibliothek zur Verwendung in
347 Computerspielen und anderen Formen von Multinediaprogrammierung.
348 Dieses Paket enthält Programme, die für die Entwicklung von
349 Allegro Programmen hilfreich sind.
351 %description tools -l es
352 Allegro es una librería multi-plataforma creada para ser usada en la
353 programación de juegos u otro tipo de programación multimedia. Este
354 paquete contiene herramientas adicionales que son útiles para
355 desarrollar programas que usen Allegro.
357 %description tools -l fr
358 Allegro est une librairie multi-plateforme destinée à être utilisée dans
359 les jeux vidéo ou d'autres types de programmation multimédia. Ce package
360 contient des outils supplémentaires qui sont utiles pour le développement
361 de programmes avec Allegro.
363 %description tools -l it
364 Allegro è una libreria multipiattaforma dedicata all'uso nei videogiochi
365 ed in altri tipi di programmazione multimediale. Questo pacchetto
366 contiene programmi di utilità aggiuntivi utili allo sviluppo di programmi
369 %description tools -l pl
370 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
371 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
373 Ten pakiet zawiera narzêdzia.
376 Summary: A game programming library - test programs
377 Summary(pl): Biblioteka do programowania gier - programy testuj±ce
378 Group: Development/Libraries
379 Requires: %{name} = %{version}-%{release}
382 This package contains programs for testing allegro library.
384 %description tests -l pl
385 Pakiet zawiera programy testuj±ce bibliotekê allegro.
388 Summary: A game programming library - examples
389 Summary(pl): Biblioteka do programowania gier - programy przyk³adowe
390 Group: Development/Libraries
391 Requires: %{name} = %{version}-%{release}
393 %description examples
394 This package contains example programs which demonstrate allegro
397 %description examples -l pl
398 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
469 %{_aclocaldir}/allegro.m4
474 %defattr(644,root,root,755)
475 %{_libdir}/liballeg.a
479 %defattr(644,root,root,755)
480 %attr(755,root,root) %{_libdir}/liballd-%{version}.so
481 %{_libdir}/liballd_unsharable.a
484 %defattr(644,root,root,755)
490 %defattr(644,root,root,755)
491 %attr(755,root,root) %{_libdir}/liballp-%{version}.so
492 %{_libdir}/liballp_unsharable.a
494 %files profile-static
495 %defattr(644,root,root,755)
501 %defattr(644,root,root,755)
502 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-svgalib.so
506 %defattr(644,root,root,755)
507 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-dga2.so
510 %defattr(644,root,root,755)
511 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-esddigi.so
515 %defattr(644,root,root,755)
516 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-artsdigi.so
520 %defattr(644,root,root,755)
521 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-fbcon.so
525 %defattr(644,root,root,755)
526 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-vga.so
531 %defattr(644,root,root,755)
532 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-alsadigi.so
533 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-alsamidi.so
538 %defattr(644,root,root,755)
539 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-jackdigi.so
543 %defattr(644,root,root,755)
544 %attr(755,root,root) %{_bindir}/colormap
545 %attr(755,root,root) %{_bindir}/exedat
546 %attr(755,root,root) %{_bindir}/pack
547 %attr(755,root,root) %{_bindir}/rgbmap
548 %attr(755,root,root) %{_bindir}/textconv
549 %attr(755,root,root) %{_bindir}/dat
550 %attr(755,root,root) %{_bindir}/dat2c
551 %attr(755,root,root) %{_bindir}/dat2s
552 %attr(755,root,root) %{_bindir}/grabber
553 %attr(755,root,root) %{_bindir}/pat2dat
554 %attr(755,root,root) %{_bindir}/setup-allegro
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