]> git.pld-linux.org Git - packages/allegro.git/blob - allegro.spec
- updated to 4.1.9
[packages/allegro.git] / allegro.spec
1 #
2 # Conditional build:
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
8 #
9 %ifarch sparc sparc64
10 %define _without_alsa   1
11 %endif
12 %{!?_without_alsa:%{!?_with_alsa9:%define _with_alsa5 1}}
13 Summary:        A game programming library
14 Summary(pl):    Biblioteka do programowania gier
15 Name:           allegro
16 Version:        4.1.9
17 Release:        1
18 License:        Giftware
19 Group:          Libraries
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
32 %ifarch %{ix86} alpha
33 BuildRequires:  svgalib-devel
34 %endif
35 BuildRequires:  texinfo
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
39 Allegro is a cross-platform library intended for use in computer games
40 and other types of multimedia programming.
41
42 %description -l pl
43 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
44 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
45
46 %package devel
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}
51
52 %description devel
53 Allegro is a cross-platform library intended for use in computer games
54 and other types of multimedia programming.
55
56 This package contains header files neccessary for compiling
57 applications using allegro library.
58
59 %description devel -l pl
60 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
61 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
62
63 Ten pakiet zawiera pliki nag³ówkowe niezbêdne do kompilowania
64 aplikacji wykorzystuj±cych bibliotekê allegro.
65
66 %package static
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}
71
72 %description static
73 Allegro is a cross-platform library intended for use in computer games
74 and other types of multimedia programming.
75
76 This package contains static libraries for linking with allegro
77 applications.
78
79 %description static -l pl
80 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
81 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
82
83 Ten pakiet zawiera biblioteki statyczne do linkowania z aplikacjami
84 wykorzystuj±cymi allegro.
85
86 %package debug
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}
91
92 %description debug
93 liballd - debug version of shared allegro library (contains debugging
94 symbols and other information).
95
96 %description debug -l pl
97 liballd - wersja debug dzielonej biblioteki allegro (zawieraj±ca
98 symbole i inne informacje potrzebne przy odpluskwianiu).
99
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}
105
106 %description debug-static
107 liballd - debug version of static allegro library (contains debugging
108 symbols and other information).
109
110 %description debug-static -l pl
111 liballd - wersja debug statycznej biblioteki allegro (zawieraj±ca
112 symbole i inne informacje potrzebne przy odpluskwianiu).
113
114 %package profile
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}
119
120 %description profile
121 liballp - profiling version of shared allegro library.
122
123 %description profile -l pl
124 liballp - wersja dzielonej biblioteki allegro s³u¿±ca do profilowania.
125
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}
131
132 %description profile-static
133 liballp - profiling version of static allegro library.
134
135 %description debug-static -l pl
136 liballp - wersja statycznej biblioteki allegro s³u¿±ca do
137 profilowania.
138
139 %package svgalib
140 Summary:        A game programming library - svgalib module
141 Summary(pl):    Biblioteka do programowania gier - modu³ dla svgalib
142 Group:          Libraries
143 PreReq:         %{name} = %{version}
144
145 %description svgalib
146 Allegro is a cross-platform library intended for use in computer games
147 and other types of multimedia programming.
148
149 This package contains module for use with allegro and svgalib.
150
151 %description svgalib -l pl
152 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
153 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
154
155 Ten pakiet zawiera modu³ do wykorzystania allegro z svgalibem.
156
157 %package dga2
158 Summary:        A game programming library - DGA2 module
159 Summary(pl):    Biblioteka do programowania gier - modu³ dla DGA2
160 Group:          Libraries
161 PreReq:         %{name} = %{version}
162
163 %description dga2
164 Allegro is a cross-platform library intended for use in computer games
165 and other types of multimedia programming.
166
167 This package contains module for use with DGA.
168
169 %description dga2 -l pl
170 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
171 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
172
173 Ten pakiet zawiera modu³ do wykorzystania z DGA.
174
175 %package esd
176 Summary:        A game programming library - esound module
177 Summary(pl):    Biblioteka do programowania gier - modu³ dla esound
178 Group:          Libraries
179 PreReq:         %{name} = %{version}
180
181 %description esd
182 Allegro is a cross-platform library intended for use in computer games
183 and other types of multimedia programming.
184
185 This package contains a esound module for use with ESound daemon.
186
187 %description esd -l pl
188 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
189 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
190
191 Ten pakiet zawiera modu³ do wykorzystania z demonem ESound.
192
193 %package arts
194 Summary:        A game programming library - aRts module
195 Summary(pl):    Biblioteka do programowania gier - modu³ dla aRts
196 Group:          Libraries
197 PreReq:         %{name} = %{version}
198
199 %description arts
200 Allegro is a cross-platform library intended for use in computer games
201 and other types of multimedia programming.
202
203 This package contains a esound module for use with aRts.
204
205 %description arts -l pl
206 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
207 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
208
209 Ten pakiet zawiera modu³ do wykorzystania z aRts.
210
211 %package fbcon
212 Summary:        A game programming library - framebuffer module
213 Summary(pl):    Biblioteka do programowania gier - modu³ dla framebuffera
214 Group:          Libraries
215 PreReq:         %{name} = %{version}
216
217 %description fbcon
218 Allegro is a cross-platform library intended for use in computer games
219 and other types of multimedia programming.
220
221 This package contains a esound module for use with framebuffer.
222
223 %description fbcon -l pl
224 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
225 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
226
227 Ten pakiet zawiera modu³ do wykorzystania z framebufferem.
228
229 %package vga
230 Summary:        A game programming library - vga module
231 Summary(pl):    Biblioteka do programowania gier - modu³ dla vga
232 Group:          Libraries
233 PreReq:         %{name} = %{version}
234
235 %description vga
236 Allegro is a cross-platform library intended for use in computer games
237 and other types of multimedia programming.
238
239 This package contains a esound module for use with vga.
240
241 %description vga -l pl
242 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
243 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
244
245 Ten pakiet zawiera modu³ do wykorzystania z vga.
246
247 %package alsa9
248 Summary:        A game programming library - ALSA 0.9 modules
249 Summary(pl):    Biblioteka do programowania gier - modu³y dla ALSA 0.9
250 Group:          Libraries
251 PreReq:         %{name} = %{version}
252
253 %description alsa9
254 Allegro is a cross-platform library intended for use in computer games
255 and other types of multimedia programming.
256
257 This package contains modules for use with ALSA 0.9 sound library.
258
259 %description alsa9 -l pl
260 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
261 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
262
263 Ten pakiet zawiera modu³y do wykorzystania z bibliotek± d¼wiêkow±
264 ALSA 0.9.
265
266 %package alsa
267 Summary:        A game programming library - ALSA modules
268 Summary(pl):    Biblioteka do programowania gier - modu³y dla ALSA
269 Group:          Libraries
270 PreReq:         %{name} = %{version}
271
272 %description alsa
273 Allegro is a cross-platform library intended for use in computer games
274 and other types of multimedia programming.
275
276 This package contains modules for use with ALSA sound library.
277
278 %description alsa -l pl
279 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
280 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
281
282 Ten pakiet zawiera modu³y do wykorzystania z bibliotek± d¼wiêkow±
283 ALSA.
284
285 %package tools
286 Summary:        A game programming library - tools
287 Summary(pl):    Biblioteka do programowania gier - narzêdzia
288 Group:          Libraries
289 PreReq:         %{name} = %{version}
290
291 %description tools
292 Allegro is a cross-platform library intended for use in computer games
293 and other types of multimedia programming.
294
295 This package contains tools.
296
297 %description tools -l pl
298 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
299 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
300
301 Ten pakiet zawiera narzêdzia.
302
303 %package tests
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}
308
309 %description tests
310 This package contains programs for testing allegro library.
311
312 %description tests -l pl
313 Pakiet zawiera programy testuj±ce bibliotekê allegro.
314
315 %package examples
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}
320
321 %description examples
322 This package contains example programs which are showing
323 allegro features.
324
325 %description examples -l pl
326 Pakiet zawiera programy przyk³adowe demonstruj±ce mo?liwo¶ci biblioteki allegro.
327
328 %prep
329 %setup  -q
330 %patch0 -p1
331 %patch1 -p1
332 %patch2 -p1
333 %patch3 -p1
334
335 %build
336 %{__aclocal}
337 %{__autoheader} configure.in include/allegro/platform/alunixac.hin
338 %{__autoconf}
339 TARGET_ARCH="%{rpmcflags}"; export TARGET_ARCH
340 # dbglib & proflib are compiled besides normlib, so it's ok to have them here
341 %configure \
342         --enable-static \
343         %{!?_without_dbglib:--enable-dbglib} \
344 %ifnarch %{ix86} alpha
345         --disable-vga \
346         --disable-linux \
347 %endif
348         %{!?_without_proflib:--enable-proflib} \
349 %ifnarch %{ix86}
350         --disable-asm
351 %endif
352
353 %{__make} \
354         MAKEINFO=makeinfo
355
356 %install
357 rm -rf $RPM_BUILD_ROOT
358
359 %{__make} install install-man install-info install-lib \
360         DESTDIR=$RPM_BUILD_ROOT
361
362 install modules.lst $RPM_BUILD_ROOT%{_libdir}/allegro/4.1
363
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}
368
369 %clean
370 rm -rf $RPM_BUILD_ROOT
371
372 %post   -p /sbin/ldconfig
373 %postun -p /sbin/ldconfig
374
375 %files
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
382
383 %files devel
384 %defattr(644,root,root,755)
385 %attr(755,root,root) %{_bindir}/allegro-config
386 %{_libdir}/liballeg_unsharable.a
387 %{_includedir}/*
388 %{_mandir}/man3/*
389 %{_infodir}/*.info*
390
391 %files static
392 %defattr(644,root,root,755)
393 %{_libdir}/liballeg.a
394
395 %if 0%{!?_without_dbglib:1}
396 %files debug
397 %defattr(644,root,root,755)
398 %attr(755,root,root) %{_libdir}/liballd-%{version}.so
399 %{_libdir}/liballd_unsharable.a
400
401 %files debug-static
402 %defattr(644,root,root,755)
403 %{_libdir}/liballd.a
404 %endif
405
406 %if 0%{!?_without_proflib:1}
407 %files profile
408 %defattr(644,root,root,755)
409 %attr(755,root,root) %{_libdir}/liballp-%{version}.so
410 %{_libdir}/liballp_unsharable.a
411
412 %files profile-static
413 %defattr(644,root,root,755)
414 %{_libdir}/liballp.a
415 %endif
416
417 %ifarch %{ix86} alpha
418 %files svgalib
419 %defattr(644,root,root,755)
420 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-svgalib.so
421 %endif
422
423 %files dga2
424 %defattr(644,root,root,755)
425 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-dga2.so
426
427 %files esd
428 %defattr(644,root,root,755)
429 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-esddigi.so
430
431 %if 0%{!?_without_arts:1}
432 %files arts
433 %defattr(644,root,root,755)
434 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-artsdigi.so
435 %endif
436
437 %files fbcon
438 %defattr(644,root,root,755)
439 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-fbcon.so
440
441 %files vga
442 %defattr(644,root,root,755)
443 %attr(755,root,root) %{_libdir}/allegro/4.1/alleg-vga.so
444
445 %if 0%{?_with_alsa5:1}
446 %files alsa
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
450 %endif
451
452 %if 0%{?_with_alsa9:1}
453 %files alsa9
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
457 %endif
458
459 %files tools
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
473
474 %files tests
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
488
489 %files examples
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
This page took 0.111813 seconds and 4 git commands to generate.