]> git.pld-linux.org Git - packages/allegro5.git/blob - allegro.spec
- updated do 4.1.6
[packages/allegro5.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.6
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 alsa
213 Summary:        A game programming library - ALSA modules
214 Summary(pl):    Biblioteka do programowania gier - modu³y dla ALSA
215 Group:          Libraries
216 PreReq:         %{name} = %{version}
217
218 %description alsa
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 sound library.
223
224 %description alsa -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.
230
231 %package tools
232 Summary:        A game programming library - tools
233 Summary(pl):    Biblioteka do programowania gier - narzêdzia
234 Group:          Libraries
235 PreReq:         %{name} = %{version}
236
237 %description tools
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 tools.
242
243 %description tools -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 narzêdzia.
248
249 %prep
250 %setup  -q
251 %patch0 -p1
252 %patch1 -p1
253 #%patch2 -p1
254
255 %build
256 %{__aclocal}
257 %{__autoconf}
258 # dbglib & proflib are compiled besides normlib, so it's ok to have them here
259 %configure \
260         --enable-static \
261         --enable-dbglib \
262 %ifnarch %{ix86} alpha
263         --disable-vga \
264         --disable-linux \
265 %endif
266         --enable-proflib \
267 %ifnarch %{ix86}
268         --disable-asm
269 %endif
270
271         
272 %{__make} \
273         MAKEINFO=makeinfo \
274         CFLAGS="%{rpmcflags} `artsc-config --cflags` -pipe %{?!debug:-funroll-loops -ffast-math -fomit-frame-pointer} -Wall \
275 %ifnarch %{ix86}
276         -DALLEGRO_USE_C \
277 %endif
278         -DALLEGRO_LIB_BUILD"
279
280 %install
281 rm -rf $RPM_BUILD_ROOT
282
283 %{__make} install install-man install-info install-lib \
284         DESTDIR=$RPM_BUILD_ROOT
285
286 install modules.lst $RPM_BUILD_ROOT%{_libdir}/allegro/4.1/
287
288 mv $RPM_BUILD_ROOT%{_bindir}/demo{,-allegro}
289 mv $RPM_BUILD_ROOT%{_bindir}/play{,-allegro}
290 mv $RPM_BUILD_ROOT%{_bindir}/setup{,-allegro}
291 mv $RPM_BUILD_ROOT%{_bindir}/test{,-allegro}
292
293 %post   -p /sbin/ldconfig
294 %postun -p /sbin/ldconfig
295
296 %clean
297 rm -rf $RPM_BUILD_ROOT
298
299 %files
300 %defattr(644,root,root,755)
301 %doc AUTHORS CHANGES THANKS
302 %attr(755,root,root) %{_libdir}/liballeg-%{version}.so
303 %dir %{_libdir}/allegro/
304 %{_libdir}/allegro/4.1/modules.lst
305
306 %files devel
307 %defattr(644,root,root,755)
308 %attr(755,root,root) %{_libdir}/liballd-%{version}.so
309 %attr(755,root,root) %{_libdir}/liballp-%{version}.so
310 %{_includedir}/*
311 %attr(755,root,root) %{_bindir}/allegro-config
312 %{_mandir}/man3/*
313 %{_infodir}/*
314 %{_libdir}/*_unsharable.a
315
316 %files tools
317 %defattr(644,root,root,755)
318 %attr(755,root,root) %{_bindir}/colormap
319 %attr(755,root,root) %{_bindir}/exedat
320 %attr(755,root,root) %{_bindir}/pack
321 %attr(755,root,root) %{_bindir}/rgbmap
322 %attr(755,root,root) %{_bindir}/textconv
323 %attr(755,root,root) %{_bindir}/dat
324 %attr(755,root,root) %{_bindir}/dat2c
325 %attr(755,root,root) %{_bindir}/dat2s
326 %attr(755,root,root) %{_bindir}/grabber
327 %attr(755,root,root) %{_bindir}/pat2dat
328 %attr(755,root,root) %{_bindir}/setup-allegro
329 %attr(755,root,root) %{_bindir}/keyconf
330
331 %files static
332 %defattr(644,root,root,755)
333 %{_libdir}/liballd.a
334 %{_libdir}/liballeg.a
335 %{_libdir}/liballp.a
336
337 %ifarch %{ix86} alpha
338 %files svgalib
339 %defattr(644,root,root,755)
340 %{_libdir}/allegro/4.1/alleg-svgalib.so
341 %endif
342
343 %files dga2
344 %defattr(644,root,root,755)
345 %{_libdir}/allegro/4.1/alleg-dga2.so
346
347 %files esd
348 %defattr(644,root,root,755)
349 %{_libdir}/allegro/4.1/alleg-esddigi.so
350
351 %files arts
352 %defattr(644,root,root,755)
353 %{_libdir}/allegro/4.1/alleg-artsdigi.so
354
355 %files fbcon
356 %defattr(644,root,root,755)
357 %{_libdir}/allegro/4.1/alleg-fbcon.so
358
359 %files vga
360 %defattr(644,root,root,755)
361 %{_libdir}/allegro/4.1/alleg-vga.so
362
363 %if %{?_without_alsa:0}%{!?_without_alsa:1}
364 %ifnarch sparc sparc64
365 %files alsa
366 %defattr(644,root,root,755)
367 %{_libdir}/allegro/4.1/alleg-alsadigi.so
368 %{_libdir}/allegro/4.1/alleg-alsamidi.so
369 %endif
370 %endif
371
372 %files tests
373 %defattr(644,root,root,755)
374 %attr(755,root,root) %{_bindir}/afinfo
375 %attr(755,root,root) %{_bindir}/akaitest
376 %attr(755,root,root) %{_bindir}/demo-allegro
377 %attr(755,root,root) %{_bindir}/digitest
378 %attr(755,root,root) %{_bindir}/filetest
379 %attr(755,root,root) %{_bindir}/gfxinfo
380 %attr(755,root,root) %{_bindir}/mathtest
381 %attr(755,root,root) %{_bindir}/miditest
382 %attr(755,root,root) %{_bindir}/play-allegro
383 %attr(755,root,root) %{_bindir}/playfli
384 %attr(755,root,root) %{_bindir}/test-allegro
385 %attr(755,root,root) %{_bindir}/vesainfo
386
387 %files examples
388 %defattr(644,root,root,755)
389 %attr(755,root,root) %{_bindir}/ex12bit
390 %attr(755,root,root) %{_bindir}/ex3buf
391 %attr(755,root,root) %{_bindir}/ex3d
392 %attr(755,root,root) %{_bindir}/exaccel
393 %attr(755,root,root) %{_bindir}/exalpha
394 %attr(755,root,root) %{_bindir}/exbitmap
395 %attr(755,root,root) %{_bindir}/exblend
396 %attr(755,root,root) %{_bindir}/excamera
397 %attr(755,root,root) %{_bindir}/excolmap
398 %attr(755,root,root) %{_bindir}/excustom
399 %attr(755,root,root) %{_bindir}/exdata
400 %attr(755,root,root) %{_bindir}/exdbuf
401 %attr(755,root,root) %{_bindir}/exdodgy
402 %attr(755,root,root) %{_bindir}/exexedat
403 %attr(755,root,root) %{_bindir}/exfixed
404 %attr(755,root,root) %{_bindir}/exflame
405 %attr(755,root,root) %{_bindir}/exflip
406 %attr(755,root,root) %{_bindir}/exgui
407 %attr(755,root,root) %{_bindir}/exhello
408 %attr(755,root,root) %{_bindir}/exjoy
409 %attr(755,root,root) %{_bindir}/exkeys
410 %attr(755,root,root) %{_bindir}/exlights
411 %attr(755,root,root) %{_bindir}/exmem
412 %attr(755,root,root) %{_bindir}/exmidi
413 %attr(755,root,root) %{_bindir}/exmouse
414 %attr(755,root,root) %{_bindir}/expal
415 %attr(755,root,root) %{_bindir}/expat
416 %attr(755,root,root) %{_bindir}/exquat
417 %attr(755,root,root) %{_bindir}/exrgbhsv
418 %attr(755,root,root) %{_bindir}/exsample
419 %attr(755,root,root) %{_bindir}/exscale
420 %attr(755,root,root) %{_bindir}/exscn3d
421 %attr(755,root,root) %{_bindir}/exscroll
422 %attr(755,root,root) %{_bindir}/exshade
423 %attr(755,root,root) %{_bindir}/exspline
424 %attr(755,root,root) %{_bindir}/exsprite
425 %attr(755,root,root) %{_bindir}/exstars
426 %attr(755,root,root) %{_bindir}/exstream
427 %attr(755,root,root) %{_bindir}/exswitch
428 %attr(755,root,root) %{_bindir}/extimer
429 %attr(755,root,root) %{_bindir}/extrans
430 %attr(755,root,root) %{_bindir}/extruec
431 %attr(755,root,root) %{_bindir}/exunicod
432 %attr(755,root,root) %{_bindir}/exupdate
433 %attr(755,root,root) %{_bindir}/exxfade
434 %attr(755,root,root) %{_bindir}/exzbuf
This page took 0.459008 seconds and 4 git commands to generate.