]> git.pld-linux.org Git - packages/allegro5.git/blob - allegro.spec
- fixed for !ix86
[packages/allegro5.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 # already there
10 #Patch0:                %{name}-makefile.patch
11 Patch1:         %{name}-info.patch
12 #Patch2:        %{name}-alsa9.patch
13 Patch3:         %{name}-examples.patch
14 URL:            http://alleg.sourceforge.net
15 BuildRequires:  XFree86-devel
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 %define         _prefix         /usr/X11R6
27 %define         _mandir         %{_prefix}/man
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:          X11/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:          X11/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:          X11/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:          X11/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:          X11/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:          X11/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:          X11/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:         X11/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:          X11/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 %patch3 -p1
198 #%patch2 -p1
199
200 %build
201 aclocal
202 %{__autoconf}
203 %configure \
204         --enable-static \
205         --enable-dbglib \
206 %ifnarch %{ix86} alpha
207         --disable-vga \
208         --disable-linux \
209 %endif
210         --enable-proflib \
211 %ifnarch %{ix86}
212         --disable-asm
213 %endif
214
215         
216 %{__make} \
217         MAKEINFO=makeinfo \
218         CFLAGS="%{optflags} -I/usr/X11R6/include/artsc -pipe %{?!debug:-funroll-loops -ffast-math -fomit-frame-pointer} -Wall -DALLEGRO_LIB_BUILD \
219 %ifnarch %{ix86}
220         -DALLEGRO_USE_C"
221 %endif
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 echo -e "# List of modules to be loaded by the Unix version of Allegro.\n" \
230         > $RPM_BUILD_ROOT%{_libdir}/allegro/4.1/modules.lst
231
232 mv $RPM_BUILD_ROOT%{_bindir}/demo{,-allegro}
233 mv $RPM_BUILD_ROOT%{_bindir}/play{,-allegro}
234 mv $RPM_BUILD_ROOT%{_bindir}/setup{,-allegro}
235 mv $RPM_BUILD_ROOT%{_bindir}/test{,-allegro}
236
237 %post   -p /sbin/ldconfig
238 %postun -p /sbin/ldconfig
239
240 %clean
241 rm -rf $RPM_BUILD_ROOT
242
243 %files
244 %defattr(644,root,root,755)
245 %doc AUTHORS CHANGES THANKS
246 %attr(755,root,root) %{_libdir}/liballeg-%{version}.so
247 %dir %{_libdir}/allegro/
248 %{_libdir}/allegro/4.1/modules.lst
249
250 %files devel
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{_libdir}/liballd-%{version}.so
253 %attr(755,root,root) %{_libdir}/liballp-%{version}.so
254 %{_includedir}/*
255 %attr(755,root,root) %{_bindir}/allegro-config
256 %{_mandir}/man3/*
257 %{_infodir}/*
258 %{_libdir}/*_unsharable.a
259
260 %files tools
261 %defattr(644,root,root,755)
262 %attr(755,root,root) %{_bindir}/colormap
263 %attr(755,root,root) %{_bindir}/exedat
264 %attr(755,root,root) %{_bindir}/pack
265 %attr(755,root,root) %{_bindir}/rgbmap
266 %attr(755,root,root) %{_bindir}/textconv
267 %attr(755,root,root) %{_bindir}/dat
268 %attr(755,root,root) %{_bindir}/dat2c
269 %attr(755,root,root) %{_bindir}/dat2s
270 %attr(755,root,root) %{_bindir}/grabber
271 %attr(755,root,root) %{_bindir}/pat2dat
272 %attr(755,root,root) %{_bindir}/setup-allegro
273 %attr(755,root,root) %{_bindir}/keyconf
274
275 %files static
276 %defattr(644,root,root,755)
277 %{_libdir}/liballd.a
278 %{_libdir}/liballeg.a
279 %{_libdir}/liballp.a
280
281 %ifarch %{ix86} alpha
282 %files svgalib
283 %defattr(644,root,root,755)
284 %{_libdir}/allegro/4.1/alleg-svgalib.so
285 %endif
286
287 %files dga2
288 %defattr(644,root,root,755)
289 %{_libdir}/allegro/4.1/alleg-dga2.so
290
291 %files esd
292 %defattr(644,root,root,755)
293 %{_libdir}/allegro/4.1/alleg-esddigi.so
294
295 #%if %{?_without_alsa:0}%{!?_without_alsa:1}
296 #%ifnarch sparc sparc64
297 #%files alsa
298 #%defattr(644,root,root,755)
299 #%{_libdir}/allegro/4.1/alleg-alsadigi.so
300 #%{_libdir}/allegro/4.1/alleg-alsamidi.so
301 #%endif
302 #%endif
303
304 %files tests
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_bindir}/afinfo
307 %attr(755,root,root) %{_bindir}/akaitest
308 %attr(755,root,root) %{_bindir}/demo-allegro
309 %attr(755,root,root) %{_bindir}/digitest
310 %attr(755,root,root) %{_bindir}/filetest
311 %attr(755,root,root) %{_bindir}/gfxinfo
312 %attr(755,root,root) %{_bindir}/mathtest
313 %attr(755,root,root) %{_bindir}/miditest
314 %attr(755,root,root) %{_bindir}/play-allegro
315 %attr(755,root,root) %{_bindir}/playfli
316 %attr(755,root,root) %{_bindir}/test-allegro
317 %attr(755,root,root) %{_bindir}/vesainfo
318
319 %files examples
320 %defattr(644,root,root,755)
321 %attr(755,root,root) %{_bindir}/ex12bit
322 %attr(755,root,root) %{_bindir}/ex3buf
323 %attr(755,root,root) %{_bindir}/ex3d
324 %attr(755,root,root) %{_bindir}/exaccel
325 %attr(755,root,root) %{_bindir}/exalpha
326 %attr(755,root,root) %{_bindir}/exbitmap
327 %attr(755,root,root) %{_bindir}/exblend
328 %attr(755,root,root) %{_bindir}/excamera
329 %attr(755,root,root) %{_bindir}/excolmap
330 %attr(755,root,root) %{_bindir}/excustom
331 %attr(755,root,root) %{_bindir}/exdata
332 %attr(755,root,root) %{_bindir}/exdbuf
333 %attr(755,root,root) %{_bindir}/exdodgy
334 %attr(755,root,root) %{_bindir}/exexedat
335 %attr(755,root,root) %{_bindir}/exfixed
336 %attr(755,root,root) %{_bindir}/exflame
337 %attr(755,root,root) %{_bindir}/exflip
338 %attr(755,root,root) %{_bindir}/exgui
339 %attr(755,root,root) %{_bindir}/exhello
340 %attr(755,root,root) %{_bindir}/exjoy
341 %attr(755,root,root) %{_bindir}/exkeys
342 %attr(755,root,root) %{_bindir}/exlights
343 %attr(755,root,root) %{_bindir}/exmem
344 %attr(755,root,root) %{_bindir}/exmidi
345 %attr(755,root,root) %{_bindir}/exmouse
346 %attr(755,root,root) %{_bindir}/expal
347 %attr(755,root,root) %{_bindir}/expat
348 %attr(755,root,root) %{_bindir}/exquat
349 %attr(755,root,root) %{_bindir}/exrgbhsv
350 %attr(755,root,root) %{_bindir}/exsample
351 %attr(755,root,root) %{_bindir}/exscale
352 %attr(755,root,root) %{_bindir}/exscn3d
353 %attr(755,root,root) %{_bindir}/exscroll
354 %attr(755,root,root) %{_bindir}/exshade
355 %attr(755,root,root) %{_bindir}/exspline
356 %attr(755,root,root) %{_bindir}/exsprite
357 %attr(755,root,root) %{_bindir}/exstars
358 %attr(755,root,root) %{_bindir}/exstream
359 %attr(755,root,root) %{_bindir}/exswitch
360 %attr(755,root,root) %{_bindir}/extimer
361 %attr(755,root,root) %{_bindir}/extrans
362 %attr(755,root,root) %{_bindir}/extruec
363 %attr(755,root,root) %{_bindir}/exunicod
364 %attr(755,root,root) %{_bindir}/exupdate
365 %attr(755,root,root) %{_bindir}/exxfade
366 %attr(755,root,root) %{_bindir}/exzbuf
This page took 0.047245 seconds and 3 git commands to generate.