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