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