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