]> git.pld-linux.org Git - packages/allegro.git/blob - allegro.spec
- it's not for X only
[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:        3
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}-alsa9.patch
11 Patch2:         %{name}-examples.patch
12 URL:            http://alleg.sourceforge.net
13 BuildRequires:  XFree86-devel
14 BuildRequires:  esound-devel
15 %ifnarch sparc sparc64
16 BuildRequires:  alsa-lib-devel
17 %endif
18 %ifarch %{ix86} alpha
19 BuildRequires:  svgalib-devel
20 %endif
21 BuildRequires:  texinfo
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Allegro is a cross-platform library intended for use in computer games
26 and other types of multimedia programming.
27
28 %description -l pl
29 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
30 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
31
32 %package devel
33 Summary:        A game programming library - header files
34 Summary(pl):    Biblioteka do programowania gier - pliki nag³ówkowe
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}
37
38 %description devel
39 Allegro is a cross-platform library intended for use in computer games
40 and other types of multimedia programming.
41
42 This package contains header files neccessary for compiling
43 applications using allegro library.
44
45 %description devel -l pl
46 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
47 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
48
49 Ten pakiet zawiera pliki nag³ówkowe niezbêdne do kompilowania
50 aplikacji wykorzystuj±cych bibliotekê allegro.
51
52 %package tests
53 Summary:        A game programming library - test programs
54 Summary(pl):    Biblioteka do programowania gier - programy testuj±ce
55 Group:          Development/Libraries
56 Requires:       %{name} = %{version}
57
58 %description tests
59 This package contains programs for testing allegro library.
60
61 %description tests -l pl
62 Pakiet zawiera programy testuj±ce bibliotekê allegro.
63
64 %package examples
65 Summary:        A game programming library - examples
66 Summary(pl):    Biblioteka do programowania gier - programy przyk³adowe
67 Group:          Development/Libraries
68 Requires:       %{name} = %{version}
69
70 %description examples
71 This package contains example programs which are showing
72 allegro features.
73
74 %description examples -l pl
75 Pakiet zawiera programy przyk³adowe demonstruj±ce mo?liwo¶ci biblioteki allegro.
76
77 %package static
78 Summary:        A game programming library - static libraries
79 Summary(pl):    Biblioteka do programowania gier - biblioteki statyczne
80 Group:          Development/Libraries
81 Requires:       %{name}-devel = %{version}
82
83 %description static
84 Allegro is a cross-platform library intended for use in computer games
85 and other types of multimedia programming.
86
87 This package contains static libraries for linking with allegro
88 applications.
89
90 %description static -l pl
91 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
92 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
93
94 Ten pakiet zawiera biblioteki statyczne do linkowania z aplikacjami
95 wykorzystuj±cymi allegro.
96
97 %package svgalib
98 Summary:        A game programming library - svgalib module
99 Summary(pl):    Biblioteka do programowania gier - modu³ dla svgalib
100 Group:          Libraries
101 PreReq:         %{name} = %{version}
102
103 %description svgalib
104 Allegro is a cross-platform library intended for use in computer games
105 and other types of multimedia programming.
106
107 This package contains module for use with allegro and svgalib.
108
109 %description svgalib -l pl
110 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
111 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
112
113 Ten pakiet zawiera modu³ do wykorzystania allegro z svgalibem.
114
115 %package dga2
116 Summary:        A game programming library - DGA2 module
117 Summary(pl):    Biblioteka do programowania gier - modu³ dla DGA2
118 Group:          Libraries
119 PreReq:         %{name} = %{version}
120
121 %description dga2
122 Allegro is a cross-platform library intended for use in computer games
123 and other types of multimedia programming.
124
125 This package contains module for use with DGA.
126
127 %description dga2 -l pl
128 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
129 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
130
131 Ten pakiet zawiera modu³ do wykorzystania z DGA.
132
133 %package esd
134 Summary:        A game programming library - esound module
135 Summary(pl):    Biblioteka do programowania gier - modu³ dla esound
136 Group:          Libraries
137 PreReq:         %{name} = %{version}
138
139 %description esd
140 Allegro is a cross-platform library intended for use in computer games
141 and other types of multimedia programming.
142
143 This package contains a esound module for use with ESound daemon.
144
145 %description esd -l pl
146 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
147 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
148
149 Ten pakiet zawiera modu³ do wykorzystania z demonem ESound.
150
151 %package alsa
152 Summary:        A game programming library - ALSA modules
153 Summary(pl):    Biblioteka do programowania gier - modu³y dla ALSA
154 Group:          Libraries
155 PreReq:         %{name} = %{version}
156
157 %description alsa
158 Allegro is a cross-platform library intended for use in computer games
159 and other types of multimedia programming.
160
161 This package contains modules for use with ALSA sound library.
162
163 %description alsa -l pl
164 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
165 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
166
167 Ten pakiet zawiera modu³y do wykorzystania z bibliotek± d¼wiêkow±
168 ALSA.
169
170 %package tools
171 Summary:        A game programming library - tools
172 Summary(pl):    Biblioteka do programowania gier - narzêdzia
173 Group:          Libraries
174 PreReq:         %{name} = %{version}
175
176 %description tools
177 Allegro is a cross-platform library intended for use in computer games
178 and other types of multimedia programming.
179
180 This package contains tools.
181
182 %description tools -l pl
183 Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w
184 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
185
186 Ten pakiet zawiera narzêdzia.
187
188 %prep
189 %setup  -q
190 %patch0 -p1
191 %patch2 -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="%{optflags} -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.050613 seconds and 4 git commands to generate.