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