]> git.pld-linux.org Git - packages/allegro.git/blob - allegro.spec
- 4.1.7
[packages/allegro.git] / allegro.spec
1 #
2 # Conditional build:
3 # --without alsa
4 #
5 Summary:        A game programming library
6 Summary(pl):    Biblioteka do programowania gier
7 Name:           allegro
8 Version:        4.1.7
9 Release:        1
10 License:        Giftware
11 Group:          Libraries
12 Source0:        http://belnet.dl.sourceforge.net/sourceforge/alleg/%{name}-%{version}.tar.gz
13 Patch0:         %{name}-info.patch
14 Patch1:         %{name}-examples.patch
15 Patch2:         %{name}-alsa9.patch
16 URL:            http://alleg.sourceforge.net
17 BuildRequires:  XFree86-devel
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  esound-devel
21 %ifnarch sparc sparc64
22 BuildRequires:  alsa-lib-devel
23 %endif
24 %ifarch %{ix86} alpha
25 BuildRequires:  svgalib-devel
26 %endif
27 BuildRequires:  arts-devel
28 BuildRequires:  texinfo
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 Allegro is a cross-platform library intended for use in computer games
33 and other types of multimedia programming.
34
35 %description -l pl
36 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
37 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
38
39 %package devel
40 Summary:        A game programming library - header files
41 Summary(pl):    Biblioteka do programowania gier - pliki nag³ówkowe
42 Group:          Development/Libraries
43 Requires:       %{name} = %{version}
44
45 %description devel
46 Allegro is a cross-platform library intended for use in computer games
47 and other types of multimedia programming.
48
49 This package contains header files neccessary for compiling
50 applications using allegro library.
51
52 %description devel -l pl
53 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
54 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
55
56 Ten pakiet zawiera pliki nag³ówkowe niezbêdne do kompilowania
57 aplikacji wykorzystuj±cych bibliotekê allegro.
58
59 %package tests
60 Summary:        A game programming library - test programs
61 Summary(pl):    Biblioteka do programowania gier - programy testuj±ce
62 Group:          Development/Libraries
63 Requires:       %{name} = %{version}
64
65 %description tests
66 This package contains programs for testing allegro library.
67
68 %description tests -l pl
69 Pakiet zawiera programy testuj±ce bibliotekê allegro.
70
71 %package examples
72 Summary:        A game programming library - examples
73 Summary(pl):    Biblioteka do programowania gier - programy przyk³adowe
74 Group:          Development/Libraries
75 Requires:       %{name} = %{version}
76
77 %description examples
78 This package contains example programs which are showing
79 allegro features.
80
81 %description examples -l pl
82 Pakiet zawiera programy przyk³adowe demonstruj±ce mo?liwo¶ci biblioteki allegro.
83
84 %package static
85 Summary:        A game programming library - static libraries
86 Summary(pl):    Biblioteka do programowania gier - biblioteki statyczne
87 Group:          Development/Libraries
88 Requires:       %{name}-devel = %{version}
89
90 %description static
91 Allegro is a cross-platform library intended for use in computer games
92 and other types of multimedia programming.
93
94 This package contains static libraries for linking with allegro
95 applications.
96
97 %description static -l pl
98 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
99 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
100
101 Ten pakiet zawiera biblioteki statyczne do linkowania z aplikacjami
102 wykorzystuj±cymi allegro.
103
104 %package svgalib
105 Summary:        A game programming library - svgalib module
106 Summary(pl):    Biblioteka do programowania gier - modu³ dla svgalib
107 Group:          Libraries
108 PreReq:         %{name} = %{version}
109
110 %description svgalib
111 Allegro is a cross-platform library intended for use in computer games
112 and other types of multimedia programming.
113
114 This package contains module for use with allegro and svgalib.
115
116 %description svgalib -l pl
117 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
118 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
119
120 Ten pakiet zawiera modu³ do wykorzystania allegro z svgalibem.
121
122 %package dga2
123 Summary:        A game programming library - DGA2 module
124 Summary(pl):    Biblioteka do programowania gier - modu³ dla DGA2
125 Group:          Libraries
126 PreReq:         %{name} = %{version}
127
128 %description dga2
129 Allegro is a cross-platform library intended for use in computer games
130 and other types of multimedia programming.
131
132 This package contains module for use with DGA.
133
134 %description dga2 -l pl
135 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
136 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
137
138 Ten pakiet zawiera modu³ do wykorzystania z DGA.
139
140 %package esd
141 Summary:        A game programming library - esound module
142 Summary(pl):    Biblioteka do programowania gier - modu³ dla esound
143 Group:          Libraries
144 PreReq:         %{name} = %{version}
145
146 %description esd
147 Allegro is a cross-platform library intended for use in computer games
148 and other types of multimedia programming.
149
150 This package contains a esound module for use with ESound daemon.
151
152 %description esd -l pl
153 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
154 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
155
156 Ten pakiet zawiera modu³ do wykorzystania z demonem ESound.
157
158 %package arts
159 Summary:        A game programming library - aRts module
160 Summary(pl):    Biblioteka do programowania gier - modu³ dla aRts
161 Group:          Libraries
162 PreReq:         %{name} = %{version}
163
164 %description arts
165 Allegro is a cross-platform library intended for use in computer games
166 and other types of multimedia programming.
167
168 This package contains a esound module for use with aRts.
169
170 %description arts -l pl
171 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
172 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
173
174 Ten pakiet zawiera modu³ do wykorzystania z aRts.
175
176 %package fbcon
177 Summary:        A game programming library - framebuffer module
178 Summary(pl):    Biblioteka do programowania gier - modu³ dla framebuffera
179 Group:          Libraries
180 PreReq:         %{name} = %{version}
181
182 %description fbcon
183 Allegro is a cross-platform library intended for use in computer games
184 and other types of multimedia programming.
185
186 This package contains a esound module for use with framebuffer.
187
188 %description fbcon -l pl
189 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
190 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
191
192 Ten pakiet zawiera modu³ do wykorzystania z framebufferem.
193
194 %package vga
195 Summary:        A game programming library - vga module
196 Summary(pl):    Biblioteka do programowania gier - modu³ dla vga
197 Group:          Libraries
198 PreReq:         %{name} = %{version}
199
200 %description vga
201 Allegro is a cross-platform library intended for use in computer games
202 and other types of multimedia programming.
203
204 This package contains a esound module for use with vga.
205
206 %description vga -l pl
207 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
208 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
209
210 Ten pakiet zawiera modu³ do wykorzystania z vga.
211
212 %package alsa9
213 Summary:        A game programming library - ALSA 0.9 modules
214 Summary(pl):    Biblioteka do programowania gier - modu³y dla ALSA 0.9
215 Group:          Libraries
216 PreReq:         %{name} = %{version}
217
218 %description alsa9
219 Allegro is a cross-platform library intended for use in computer games
220 and other types of multimedia programming.
221
222 This package contains modules for use with ALSA 0.9 sound library.
223
224 %description alsa9 -l pl
225 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
226 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
227
228 Ten pakiet zawiera modu³y do wykorzystania z bibliotek± d¼wiêkow±
229 ALSA 0.9.
230
231 %package alsa
232 Summary:        A game programming library - ALSA modules
233 Summary(pl):    Biblioteka do programowania gier - modu³y dla ALSA
234 Group:          Libraries
235 PreReq:         %{name} = %{version}
236
237 %description alsa
238 Allegro is a cross-platform library intended for use in computer games
239 and other types of multimedia programming.
240
241 This package contains modules for use with ALSA sound library.
242
243 %description alsa -l pl
244 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
245 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
246
247 Ten pakiet zawiera modu³y do wykorzystania z bibliotek± d¼wiêkow±
248 ALSA.
249
250 %package tools
251 Summary:        A game programming library - tools
252 Summary(pl):    Biblioteka do programowania gier - narzêdzia
253 Group:          Libraries
254 PreReq:         %{name} = %{version}
255
256 %description tools
257 Allegro is a cross-platform library intended for use in computer games
258 and other types of multimedia programming.
259
260 This package contains tools.
261
262 %description tools -l pl
263 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
264 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
265
266 Ten pakiet zawiera narzêdzia.
267
268 %prep
269 %setup  -q
270 %patch0 -p1
271 %patch1 -p1
272 %patch2 -p1
273
274 %build
275 %{__aclocal}
276 %{__autoheader} configure.in include/allegro/platform/alunixac.hin
277 %{__autoconf}
278 # dbglib & proflib are compiled besides normlib, so it's ok to have them here
279 %configure \
280         --enable-static \
281         --enable-dbglib \
282 %ifnarch %{ix86} alpha
283         --disable-vga \
284         --disable-linux \
285 %endif
286         --enable-proflib \
287 %ifnarch %{ix86}
288         --disable-asm
289 %endif
290
291 %{__make} \
292         MAKEINFO=makeinfo \
293         CFLAGS="%{rpmcflags} `artsc-config --cflags` -pipe %{?!debug:-funroll-loops -ffast-math -fomit-frame-pointer} -Wall \
294 %ifnarch %{ix86}
295         -DALLEGRO_USE_C \
296 %endif
297         -DALLEGRO_LIB_BUILD"
298
299 %install
300 rm -rf $RPM_BUILD_ROOT
301
302 %{__make} install install-man install-info install-lib \
303         DESTDIR=$RPM_BUILD_ROOT
304
305 install modules.lst $RPM_BUILD_ROOT%{_libdir}/allegro/4.1/
306
307 mv $RPM_BUILD_ROOT%{_bindir}/demo{,-allegro}
308 mv $RPM_BUILD_ROOT%{_bindir}/play{,-allegro}
309 mv $RPM_BUILD_ROOT%{_bindir}/setup{,-allegro}
310 mv $RPM_BUILD_ROOT%{_bindir}/test{,-allegro}
311
312 %post   -p /sbin/ldconfig
313 %postun -p /sbin/ldconfig
314
315 %clean
316 rm -rf $RPM_BUILD_ROOT
317
318 %files
319 %defattr(644,root,root,755)
320 %doc AUTHORS CHANGES THANKS
321 %attr(755,root,root) %{_libdir}/liballeg-%{version}.so
322 %dir %{_libdir}/allegro/
323 %{_libdir}/allegro/4.1/modules.lst
324
325 %files devel
326 %defattr(644,root,root,755)
327 %attr(755,root,root) %{_libdir}/liballd-%{version}.so
328 %attr(755,root,root) %{_libdir}/liballp-%{version}.so
329 %{_includedir}/*
330 %attr(755,root,root) %{_bindir}/allegro-config
331 %{_mandir}/man3/*
332 %{_infodir}/*
333 %{_libdir}/*_unsharable.a
334
335 %files tools
336 %defattr(644,root,root,755)
337 %attr(755,root,root) %{_bindir}/colormap
338 %attr(755,root,root) %{_bindir}/exedat
339 %attr(755,root,root) %{_bindir}/pack
340 %attr(755,root,root) %{_bindir}/rgbmap
341 %attr(755,root,root) %{_bindir}/textconv
342 %attr(755,root,root) %{_bindir}/dat
343 %attr(755,root,root) %{_bindir}/dat2c
344 %attr(755,root,root) %{_bindir}/dat2s
345 %attr(755,root,root) %{_bindir}/grabber
346 %attr(755,root,root) %{_bindir}/pat2dat
347 %attr(755,root,root) %{_bindir}/setup-allegro
348 %attr(755,root,root) %{_bindir}/keyconf
349
350 %files static
351 %defattr(644,root,root,755)
352 %{_libdir}/liballd.a
353 %{_libdir}/liballeg.a
354 %{_libdir}/liballp.a
355
356 %ifarch %{ix86} alpha
357 %files svgalib
358 %defattr(644,root,root,755)
359 %{_libdir}/allegro/4.1/alleg-svgalib.so
360 %endif
361
362 %files dga2
363 %defattr(644,root,root,755)
364 %{_libdir}/allegro/4.1/alleg-dga2.so
365
366 %files esd
367 %defattr(644,root,root,755)
368 %{_libdir}/allegro/4.1/alleg-esddigi.so
369
370 %files arts
371 %defattr(644,root,root,755)
372 %{_libdir}/allegro/4.1/alleg-artsdigi.so
373
374 %files fbcon
375 %defattr(644,root,root,755)
376 %{_libdir}/allegro/4.1/alleg-fbcon.so
377
378 %files vga
379 %defattr(644,root,root,755)
380 %{_libdir}/allegro/4.1/alleg-vga.so
381
382 %ifnarch sparc sparc64
383 %if %{!?_without_alsa:1}%{?_without_alsa:0}
384 %if %{!?_with_alsa9:1}%{?_with_alsa9:0}
385 %files alsa
386 %defattr(644,root,root,755)
387 %{_libdir}/allegro/4.1/alleg-alsadigi.so
388 %{_libdir}/allegro/4.1/alleg-alsamidi.so
389 %else
390 %files alsa9
391 %defattr(644,root,root,755)
392 %{_libdir}/allegro/4.1/alleg-alsa9digi.so
393 %{_libdir}/allegro/4.1/alleg-alsa9midi.so
394 %endif
395 %endif
396 %endif
397
398 %files tests
399 %defattr(644,root,root,755)
400 %attr(755,root,root) %{_bindir}/afinfo
401 %attr(755,root,root) %{_bindir}/akaitest
402 %attr(755,root,root) %{_bindir}/demo-allegro
403 %attr(755,root,root) %{_bindir}/digitest
404 %attr(755,root,root) %{_bindir}/filetest
405 %attr(755,root,root) %{_bindir}/gfxinfo
406 %attr(755,root,root) %{_bindir}/mathtest
407 %attr(755,root,root) %{_bindir}/miditest
408 %attr(755,root,root) %{_bindir}/play-allegro
409 %attr(755,root,root) %{_bindir}/playfli
410 %attr(755,root,root) %{_bindir}/test-allegro
411 %attr(755,root,root) %{_bindir}/vesainfo
412
413 %files examples
414 %defattr(644,root,root,755)
415 %attr(755,root,root) %{_bindir}/ex12bit
416 %attr(755,root,root) %{_bindir}/ex3buf
417 %attr(755,root,root) %{_bindir}/ex3d
418 %attr(755,root,root) %{_bindir}/exaccel
419 %attr(755,root,root) %{_bindir}/exalpha
420 %attr(755,root,root) %{_bindir}/exbitmap
421 %attr(755,root,root) %{_bindir}/exblend
422 %attr(755,root,root) %{_bindir}/excamera
423 %attr(755,root,root) %{_bindir}/excolmap
424 %attr(755,root,root) %{_bindir}/excustom
425 %attr(755,root,root) %{_bindir}/exdata
426 %attr(755,root,root) %{_bindir}/exdbuf
427 %attr(755,root,root) %{_bindir}/exdodgy
428 %attr(755,root,root) %{_bindir}/exexedat
429 %attr(755,root,root) %{_bindir}/exfixed
430 %attr(755,root,root) %{_bindir}/exflame
431 %attr(755,root,root) %{_bindir}/exflip
432 %attr(755,root,root) %{_bindir}/exgui
433 %attr(755,root,root) %{_bindir}/exhello
434 %attr(755,root,root) %{_bindir}/exjoy
435 %attr(755,root,root) %{_bindir}/exkeys
436 %attr(755,root,root) %{_bindir}/exlights
437 %attr(755,root,root) %{_bindir}/exmem
438 %attr(755,root,root) %{_bindir}/exmidi
439 %attr(755,root,root) %{_bindir}/exmouse
440 %attr(755,root,root) %{_bindir}/expal
441 %attr(755,root,root) %{_bindir}/expat
442 %attr(755,root,root) %{_bindir}/exquat
443 %attr(755,root,root) %{_bindir}/exrgbhsv
444 %attr(755,root,root) %{_bindir}/exsample
445 %attr(755,root,root) %{_bindir}/exscale
446 %attr(755,root,root) %{_bindir}/exscn3d
447 %attr(755,root,root) %{_bindir}/exscroll
448 %attr(755,root,root) %{_bindir}/exshade
449 %attr(755,root,root) %{_bindir}/exspline
450 %attr(755,root,root) %{_bindir}/exsprite
451 %attr(755,root,root) %{_bindir}/exstars
452 %attr(755,root,root) %{_bindir}/exstream
453 %attr(755,root,root) %{_bindir}/exswitch
454 %attr(755,root,root) %{_bindir}/extimer
455 %attr(755,root,root) %{_bindir}/extrans
456 %attr(755,root,root) %{_bindir}/extruec
457 %attr(755,root,root) %{_bindir}/exunicod
458 %attr(755,root,root) %{_bindir}/exupdate
459 %attr(755,root,root) %{_bindir}/exxfade
460 %attr(755,root,root) %{_bindir}/exzbuf
This page took 0.086619 seconds and 4 git commands to generate.