]> git.pld-linux.org Git - packages/allegro.git/blob - allegro.spec
- typo
[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 # 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 
219 %ifnarch %{ix86}
220         -DALLEGRO_USE_C \
221 %endif
222         -DALLEGRO_LIB_BUILD"
223
224 %install
225 rm -rf $RPM_BUILD_ROOT
226
227 %{__make} install install-man install-info install-lib \
228         DESTDIR=$RPM_BUILD_ROOT
229
230 echo -e "# List of modules to be loaded by the Unix version of Allegro.\n" \
231         > $RPM_BUILD_ROOT%{_libdir}/allegro/4.1/modules.lst
232
233 mv $RPM_BUILD_ROOT%{_bindir}/demo{,-allegro}
234 mv $RPM_BUILD_ROOT%{_bindir}/play{,-allegro}
235 mv $RPM_BUILD_ROOT%{_bindir}/setup{,-allegro}
236 mv $RPM_BUILD_ROOT%{_bindir}/test{,-allegro}
237
238 %post   -p /sbin/ldconfig
239 %postun -p /sbin/ldconfig
240
241 %clean
242 rm -rf $RPM_BUILD_ROOT
243
244 %files
245 %defattr(644,root,root,755)
246 %doc AUTHORS CHANGES THANKS
247 %attr(755,root,root) %{_libdir}/liballeg-%{version}.so
248 %dir %{_libdir}/allegro/
249 %{_libdir}/allegro/4.1/modules.lst
250
251 %files devel
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_libdir}/liballd-%{version}.so
254 %attr(755,root,root) %{_libdir}/liballp-%{version}.so
255 %{_includedir}/*
256 %attr(755,root,root) %{_bindir}/allegro-config
257 %{_mandir}/man3/*
258 %{_infodir}/*
259 %{_libdir}/*_unsharable.a
260
261 %files tools
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_bindir}/colormap
264 %attr(755,root,root) %{_bindir}/exedat
265 %attr(755,root,root) %{_bindir}/pack
266 %attr(755,root,root) %{_bindir}/rgbmap
267 %attr(755,root,root) %{_bindir}/textconv
268 %attr(755,root,root) %{_bindir}/dat
269 %attr(755,root,root) %{_bindir}/dat2c
270 %attr(755,root,root) %{_bindir}/dat2s
271 %attr(755,root,root) %{_bindir}/grabber
272 %attr(755,root,root) %{_bindir}/pat2dat
273 %attr(755,root,root) %{_bindir}/setup-allegro
274 %attr(755,root,root) %{_bindir}/keyconf
275
276 %files static
277 %defattr(644,root,root,755)
278 %{_libdir}/liballd.a
279 %{_libdir}/liballeg.a
280 %{_libdir}/liballp.a
281
282 %ifarch %{ix86} alpha
283 %files svgalib
284 %defattr(644,root,root,755)
285 %{_libdir}/allegro/4.1/alleg-svgalib.so
286 %endif
287
288 %files dga2
289 %defattr(644,root,root,755)
290 %{_libdir}/allegro/4.1/alleg-dga2.so
291
292 %files esd
293 %defattr(644,root,root,755)
294 %{_libdir}/allegro/4.1/alleg-esddigi.so
295
296 #%if %{?_without_alsa:0}%{!?_without_alsa:1}
297 #%ifnarch sparc sparc64
298 #%files alsa
299 #%defattr(644,root,root,755)
300 #%{_libdir}/allegro/4.1/alleg-alsadigi.so
301 #%{_libdir}/allegro/4.1/alleg-alsamidi.so
302 #%endif
303 #%endif
304
305 %files tests
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_bindir}/afinfo
308 %attr(755,root,root) %{_bindir}/akaitest
309 %attr(755,root,root) %{_bindir}/demo-allegro
310 %attr(755,root,root) %{_bindir}/digitest
311 %attr(755,root,root) %{_bindir}/filetest
312 %attr(755,root,root) %{_bindir}/gfxinfo
313 %attr(755,root,root) %{_bindir}/mathtest
314 %attr(755,root,root) %{_bindir}/miditest
315 %attr(755,root,root) %{_bindir}/play-allegro
316 %attr(755,root,root) %{_bindir}/playfli
317 %attr(755,root,root) %{_bindir}/test-allegro
318 %attr(755,root,root) %{_bindir}/vesainfo
319
320 %files examples
321 %defattr(644,root,root,755)
322 %attr(755,root,root) %{_bindir}/ex12bit
323 %attr(755,root,root) %{_bindir}/ex3buf
324 %attr(755,root,root) %{_bindir}/ex3d
325 %attr(755,root,root) %{_bindir}/exaccel
326 %attr(755,root,root) %{_bindir}/exalpha
327 %attr(755,root,root) %{_bindir}/exbitmap
328 %attr(755,root,root) %{_bindir}/exblend
329 %attr(755,root,root) %{_bindir}/excamera
330 %attr(755,root,root) %{_bindir}/excolmap
331 %attr(755,root,root) %{_bindir}/excustom
332 %attr(755,root,root) %{_bindir}/exdata
333 %attr(755,root,root) %{_bindir}/exdbuf
334 %attr(755,root,root) %{_bindir}/exdodgy
335 %attr(755,root,root) %{_bindir}/exexedat
336 %attr(755,root,root) %{_bindir}/exfixed
337 %attr(755,root,root) %{_bindir}/exflame
338 %attr(755,root,root) %{_bindir}/exflip
339 %attr(755,root,root) %{_bindir}/exgui
340 %attr(755,root,root) %{_bindir}/exhello
341 %attr(755,root,root) %{_bindir}/exjoy
342 %attr(755,root,root) %{_bindir}/exkeys
343 %attr(755,root,root) %{_bindir}/exlights
344 %attr(755,root,root) %{_bindir}/exmem
345 %attr(755,root,root) %{_bindir}/exmidi
346 %attr(755,root,root) %{_bindir}/exmouse
347 %attr(755,root,root) %{_bindir}/expal
348 %attr(755,root,root) %{_bindir}/expat
349 %attr(755,root,root) %{_bindir}/exquat
350 %attr(755,root,root) %{_bindir}/exrgbhsv
351 %attr(755,root,root) %{_bindir}/exsample
352 %attr(755,root,root) %{_bindir}/exscale
353 %attr(755,root,root) %{_bindir}/exscn3d
354 %attr(755,root,root) %{_bindir}/exscroll
355 %attr(755,root,root) %{_bindir}/exshade
356 %attr(755,root,root) %{_bindir}/exspline
357 %attr(755,root,root) %{_bindir}/exsprite
358 %attr(755,root,root) %{_bindir}/exstars
359 %attr(755,root,root) %{_bindir}/exstream
360 %attr(755,root,root) %{_bindir}/exswitch
361 %attr(755,root,root) %{_bindir}/extimer
362 %attr(755,root,root) %{_bindir}/extrans
363 %attr(755,root,root) %{_bindir}/extruec
364 %attr(755,root,root) %{_bindir}/exunicod
365 %attr(755,root,root) %{_bindir}/exupdate
366 %attr(755,root,root) %{_bindir}/exxfade
367 %attr(755,root,root) %{_bindir}/exzbuf
This page took 0.181993 seconds and 4 git commands to generate.