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