]>
Commit | Line | Data |
---|---|---|
328fc681 | 1 | # |
b1f05c36 | 2 | # TODO: |
b1f05c36 | 3 | # - check if it's usable now |
328fc681 | 4 | # |
5 | # Conditional build: | |
b1f05c36 JB |
6 | %bcond_without alsa # ALSA support in allegro_audio library |
7 | %bcond_with curl # cURL example | |
170799a8 | 8 | %bcond_without doc # rebuild HTML and texinfo documentation |
b1f05c36 JB |
9 | %bcond_without dumb # MOD support in allegro_acodec library |
10 | %bcond_without gtk # (GTK+ 2.x based) native dialog library | |
11 | %bcond_without openal # OpenAL support in allegro_audio library | |
12 | %bcond_without physfs # PhysFS addon library | |
13 | %bcond_without pulseaudio # PulseAudio support in allegro_audio library | |
14 | %bcond_without python # Python wrapper | |
15 | %bcond_with sse # SSE instructions usage | |
328fc681 | 16 | # |
b1f05c36 JB |
17 | %ifarch pentium3 pentium4 %{x8664} |
18 | %define with_sse 1 | |
19 | %endif | |
ff73df2c | 20 | |
328fc681 | 21 | Summary: A game programming library |
22 | Summary(de.UTF-8): Eine Bibliothek zur Programmierung von Spielen | |
23 | Summary(es.UTF-8): Una biblioteca de programación de juegos | |
24 | Summary(fr.UTF-8): Une librairie de programmation de jeux | |
25 | Summary(it.UTF-8): Una libreria per la programmazione di videogiochi | |
26 | Summary(pl.UTF-8): Biblioteka do programowania gier | |
27 | Name: allegro5 | |
c43bc50c | 28 | Version: 5.2.5.0 |
954dfba3 | 29 | Release: 2 |
328fc681 | 30 | License: Giftware |
31 | Group: Libraries | |
c43bc50c JB |
32 | #Source0Download: https://github.com/liballeg/allegro5/releases |
33 | Source0: https://github.com/liballeg/allegro5/releases/download/%{version}/allegro-%{version}.tar.gz | |
34 | # Source0-md5: 8bcc28c86878405bf7d069aa77008032 | |
89e03088 | 35 | Patch0: %{name}-glx.patch |
c43bc50c | 36 | URL: https://liballeg.org/ |
b1f05c36 | 37 | %{?with_openal:BuildRequires: OpenAL-devel} |
328fc681 | 38 | BuildRequires: OpenGL-GLU-devel |
b1f05c36 | 39 | BuildRequires: OpenGL-devel |
328fc681 | 40 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
328fc681 | 41 | BuildRequires: cmake >= 2.6 |
b1f05c36 JB |
42 | %{?with_curl:BuildRequires: curl-devel} |
43 | BuildRequires: dumb-devel | |
44 | BuildRequires: flac-devel | |
89e03088 | 45 | BuildRequires: freetype-devel >= 2 |
b1f05c36 JB |
46 | %{?with_gtk:BuildRequires: glib2-devel >= 2.0} |
47 | %{?with_gtk:BuildRequires: gtk+2-devel >= 2.0} | |
48 | BuildRequires: libjpeg-devel | |
49 | BuildRequires: libogg-devel | |
50 | BuildRequires: libpng-devel | |
51 | BuildRequires: libvorbis-devel | |
52 | %{?with_physfs:BuildRequires: physfs-devel} | |
53 | BuildRequires: pkgconfig | |
54 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel >= 0.9.15} | |
55 | BuildRequires: rpmbuild(macros) >= 1.605 | |
328fc681 | 56 | BuildRequires: xorg-lib-libX11-devel |
57 | BuildRequires: xorg-lib-libXcursor-devel | |
58 | BuildRequires: xorg-lib-libXext-devel | |
b1f05c36 | 59 | BuildRequires: xorg-lib-libXinerama-devel |
328fc681 | 60 | BuildRequires: xorg-lib-libXpm-devel |
b1f05c36 | 61 | BuildRequires: xorg-lib-libXrandr-devel |
328fc681 | 62 | BuildRequires: xorg-lib-libXxf86vm-devel |
b1f05c36 JB |
63 | BuildRequires: zlib-devel |
64 | %if %{with python} | |
65 | BuildRequires: python | |
66 | BuildRequires: python-modules | |
67 | BuildRequires: rpm-pythonprov | |
68 | %endif | |
170799a8 JB |
69 | %if %{with doc} |
70 | BuildRequires: ctags | |
71 | BuildRequires: pandoc >= 1.5 | |
72 | BuildRequires: texinfo | |
73 | BuildRequires: texlive-latex | |
74 | %endif | |
89e03088 | 75 | Obsoletes: allegro5-tools |
328fc681 | 76 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
77 | ||
78 | %description | |
79 | Allegro is a cross-platform library intended for use in computer games | |
80 | and other types of multimedia programming. | |
81 | ||
82 | %description -l de.UTF-8 | |
83 | Allegro ist eine plattformübergreifende Bibliothek zur Verwendung in | |
84 | Computerspielen und anderen Formen von Multinediaprogrammierung. | |
85 | ||
86 | %description -l es.UTF-8 | |
87 | Allegro es una librería multi-plataforma creada para ser usada en la | |
88 | programación de juegos u otro tipo de programación multimedia. | |
89 | ||
90 | %description -l fr.UTF-8 | |
91 | Allegro est une librairie multi-plateforme destinée à être utilisée | |
92 | dans les jeux vidéo ou d'autres types de programmation multimédia. | |
93 | ||
94 | %description -l it.UTF-8 | |
95 | Allegro è una libreria multipiattaforma dedicata all'uso nei | |
96 | videogiochi ed in altri tipi di programmazione multimediale. | |
97 | ||
98 | %description -l pl.UTF-8 | |
99 | Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w | |
100 | grach komputerowych i innych rodzajach oprogramowania multimedialnego. | |
101 | ||
102 | %package devel | |
103 | Summary: A game programming library - header files | |
104 | Summary(es.UTF-8): Archivos de inclusión | |
105 | Summary(pl.UTF-8): Biblioteka do programowania gier - pliki nagłówkowe | |
106 | Group: Development/Libraries | |
107 | Requires: %{name} = %{version}-%{release} | |
108 | ||
109 | %description devel | |
110 | Allegro is a cross-platform library intended for use in computer games | |
111 | and other types of multimedia programming. | |
112 | ||
113 | This package contains header files neccessary for compiling | |
114 | applications using allegro library. | |
115 | ||
116 | %description devel -l de.UTF-8 | |
117 | Allegro ist eine plattformübergreifende Bibliothek zur Verwendung in | |
118 | Computerspielen und anderen Formen von Multinediaprogrammierung. | |
119 | Dieses Paket wird benötigt, um Programme zu bauen, die Allegro | |
120 | verwenden. | |
121 | ||
122 | %description devel -l es.UTF-8 | |
123 | Allegro es una librería multi-plataforma creada para ser usada en la | |
124 | programación de juegos u otro tipo de programación multimedia. Este | |
125 | paquete es necesario para compilar los programas que usen Allegro. | |
126 | ||
127 | %description devel -l fr.UTF-8 | |
128 | Allegro est une librairie multi-plateforme destinée à être utilisée | |
129 | dans les jeux vidéo ou d'autres types de programmation multimédia. Ce | |
130 | package est nécessaire pour compiler les programmes utilisant Allegro. | |
131 | ||
132 | %description devel -l it.UTF-8 | |
133 | Allegro è una libreria multipiattaforma dedicata all'uso nei | |
134 | videogiochi ed in altri tipi di programmazione multimediale. Questo | |
135 | pacchetto è necessario per compilare programmi scritti con Allegro. | |
136 | ||
137 | %description devel -l pl.UTF-8 | |
138 | Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w | |
139 | grach komputerowych i innych rodzajach oprogramowania multimedialnego. | |
140 | ||
141 | Ten pakiet zawiera pliki nagłówkowe niezbędne do kompilowania | |
142 | aplikacji wykorzystujących bibliotekę allegro. | |
143 | ||
b1f05c36 JB |
144 | %package acodec |
145 | Summary: Allegro acodec addon library | |
146 | Summary(pl.UTF-8): Biblioteka dodatkowa Allegro acodec | |
147 | Group: Libraries | |
148 | Requires: %{name}-audio = %{version}-%{release} | |
328fc681 | 149 | |
b1f05c36 JB |
150 | %description acodec |
151 | Allegro acodec addon library. | |
328fc681 | 152 | |
b1f05c36 JB |
153 | %description acodec -l pl.UTF-8 |
154 | Biblioteka dodatkowa Allegro acodec. | |
328fc681 | 155 | |
b1f05c36 JB |
156 | %package acodec-devel |
157 | Summary: Header files for Allegro acodec addon library | |
158 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dodatkowej Allegro acodec | |
159 | Group: Libraries | |
160 | Requires: %{name}-acodec = %{version}-%{release} | |
161 | Requires: %{name}-audio-devel = %{version}-%{release} | |
328fc681 | 162 | |
b1f05c36 JB |
163 | %description acodec-devel |
164 | Header files for Allegro acodec addon library. | |
328fc681 | 165 | |
b1f05c36 JB |
166 | %description acodec-devel -l pl.UTF-8 |
167 | Pliki nagłówkowe biblioteki dodatkowej Allegro acodec. | |
328fc681 | 168 | |
b1f05c36 JB |
169 | %package audio |
170 | Summary: Allegro audio addon library | |
171 | Summary(pl.UTF-8): Biblioteka dodatkowa Allegro audio | |
328fc681 | 172 | Group: Libraries |
173 | Requires: %{name} = %{version}-%{release} | |
328fc681 | 174 | |
b1f05c36 JB |
175 | %description audio |
176 | Allegro audio addon library. | |
328fc681 | 177 | |
b1f05c36 JB |
178 | %description audio -l pl.UTF-8 |
179 | Biblioteka dodatkowa Allegro audio. | |
328fc681 | 180 | |
b1f05c36 JB |
181 | %package audio-devel |
182 | Summary: Header files for Allegro audio addon library | |
183 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dodatkowej Allegro audio | |
328fc681 | 184 | Group: Libraries |
b1f05c36 JB |
185 | Requires: %{name}-audio = %{version}-%{release} |
186 | Requires: %{name}-devel = %{version}-%{release} | |
328fc681 | 187 | |
b1f05c36 JB |
188 | %description audio-devel |
189 | Header files for Allegro audio addon library. | |
328fc681 | 190 | |
b1f05c36 JB |
191 | %description audio-devel -l pl.UTF-8 |
192 | Pliki nagłówkowe biblioteki dodatkowej Allegro audio. | |
328fc681 | 193 | |
b1f05c36 JB |
194 | %package dialog |
195 | Summary: Allegro dialog addon library | |
196 | Summary(pl.UTF-8): Biblioteka dodatkowa Allegro dialog | |
328fc681 | 197 | Group: Libraries |
198 | Requires: %{name} = %{version}-%{release} | |
199 | ||
b1f05c36 JB |
200 | %description dialog |
201 | Allegro dialog addon library. | |
328fc681 | 202 | |
b1f05c36 JB |
203 | %description dialog -l pl.UTF-8 |
204 | Biblioteka dodatkowa Allegro dialog. | |
328fc681 | 205 | |
b1f05c36 JB |
206 | %package dialog-devel |
207 | Summary: Header files for Allegro dialog addon library | |
208 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dodatkowej Allegro dialog | |
328fc681 | 209 | Group: Libraries |
b1f05c36 JB |
210 | Requires: %{name}-dialog = %{version}-%{release} |
211 | Requires: %{name}-devel = %{version}-%{release} | |
328fc681 | 212 | |
b1f05c36 JB |
213 | %description dialog-devel |
214 | Header files for Allegro dialog addon library. | |
328fc681 | 215 | |
b1f05c36 JB |
216 | %description dialog-devel -l pl.UTF-8 |
217 | Pliki nagłówkowe biblioteki dodatkowej Allegro dialog. | |
328fc681 | 218 | |
b1f05c36 JB |
219 | %package image |
220 | Summary: Allegro image addon library | |
221 | Summary(pl.UTF-8): Biblioteka dodatkowa Allegro image | |
328fc681 | 222 | Group: Libraries |
223 | Requires: %{name} = %{version}-%{release} | |
224 | ||
b1f05c36 JB |
225 | %description image |
226 | Allegro image addon library. | |
328fc681 | 227 | |
b1f05c36 JB |
228 | %description image -l pl.UTF-8 |
229 | Biblioteka dodatkowa Allegro image. | |
328fc681 | 230 | |
b1f05c36 JB |
231 | %package image-devel |
232 | Summary: Header files for Allegro image addon library | |
233 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dodatkowej Allegro image | |
328fc681 | 234 | Group: Libraries |
b1f05c36 JB |
235 | Requires: %{name}-image = %{version}-%{release} |
236 | Requires: %{name}-devel = %{version}-%{release} | |
328fc681 | 237 | |
b1f05c36 JB |
238 | %description image-devel |
239 | Header files for Allegro image addon library. | |
328fc681 | 240 | |
b1f05c36 JB |
241 | %description image-devel -l pl.UTF-8 |
242 | Pliki nagłówkowe biblioteki dodatkowej Allegro image. | |
328fc681 | 243 | |
b1f05c36 JB |
244 | %package physfs |
245 | Summary: Allegro physfs addon library | |
246 | Summary(pl.UTF-8): Biblioteka dodatkowa Allegro physfs | |
328fc681 | 247 | Group: Libraries |
248 | Requires: %{name} = %{version}-%{release} | |
328fc681 | 249 | |
b1f05c36 JB |
250 | %description physfs |
251 | Allegro physfs addon library. | |
328fc681 | 252 | |
b1f05c36 JB |
253 | %description physfs -l pl.UTF-8 |
254 | Biblioteka dodatkowa Allegro physfs. | |
328fc681 | 255 | |
b1f05c36 JB |
256 | %package physfs-devel |
257 | Summary: Header files for Allegro physfs addon library | |
258 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dodatkowej Allegro physfs | |
259 | Group: Libraries | |
260 | Requires: %{name}-physfs = %{version}-%{release} | |
261 | Requires: %{name}-devel = %{version}-%{release} | |
328fc681 | 262 | |
b1f05c36 JB |
263 | %description physfs-devel |
264 | Header files for Allegro physfs addon library. | |
328fc681 | 265 | |
b1f05c36 JB |
266 | %description physfs-devel -l pl.UTF-8 |
267 | Pliki nagłówkowe biblioteki dodatkowej Allegro physfs. | |
268 | ||
269 | %package ttf | |
270 | Summary: Allegro ttf addon library | |
271 | Summary(pl.UTF-8): Biblioteka dodatkowa Allegro ttf | |
328fc681 | 272 | Group: Libraries |
273 | Requires: %{name} = %{version}-%{release} | |
274 | ||
b1f05c36 JB |
275 | %description ttf |
276 | Allegro ttf addon library. | |
328fc681 | 277 | |
b1f05c36 JB |
278 | %description ttf -l pl.UTF-8 |
279 | Biblioteka dodatkowa Allegro ttf. | |
328fc681 | 280 | |
b1f05c36 JB |
281 | %package ttf-devel |
282 | Summary: Header files for Allegro ttf addon library | |
283 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dodatkowej Allegro ttf | |
284 | Group: Libraries | |
285 | Requires: %{name}-ttf = %{version}-%{release} | |
286 | Requires: %{name}-devel = %{version}-%{release} | |
328fc681 | 287 | |
b1f05c36 JB |
288 | %description ttf-devel |
289 | Header files for Allegro ttf addon library. | |
290 | ||
291 | %description ttf-devel -l pl.UTF-8 | |
292 | Pliki nagłówkowe biblioteki dodatkowej Allegro ttf. | |
328fc681 | 293 | |
7cbfeea0 JB |
294 | %package video |
295 | Summary: Allegro audio addon library | |
296 | Summary(pl.UTF-8): Biblioteka dodatkowa Allegro audio | |
297 | Group: Libraries | |
298 | Requires: %{name}-audio = %{version}-%{release} | |
299 | ||
300 | %description video | |
301 | Allegro audio addon library. | |
302 | ||
303 | %description video -l pl.UTF-8 | |
304 | Biblioteka dodatkowa Allegro audio. | |
305 | ||
306 | %package video-devel | |
307 | Summary: Header files for Allegro video addon library | |
308 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dodatkowej Allegro video | |
309 | Group: Libraries | |
310 | Requires: %{name}-audio-devel = %{version}-%{release} | |
311 | Requires: %{name}-video = %{version}-%{release} | |
312 | ||
313 | %description video-devel | |
314 | Header files for Allegro audio video library. | |
315 | ||
316 | %description video-devel -l pl.UTF-8 | |
317 | Pliki nagłówkowe biblioteki dodatkowej Allegro video. | |
318 | ||
328fc681 | 319 | %package examples |
320 | Summary: A game programming library - examples | |
321 | Summary(pl.UTF-8): Biblioteka do programowania gier - programy przykładowe | |
322 | Group: Development/Libraries | |
323 | Requires: %{name} = %{version}-%{release} | |
324 | ||
325 | %description examples | |
326 | This package contains example programs which demonstrate allegro | |
327 | features. | |
328 | ||
329 | %description examples -l pl.UTF-8 | |
330 | Pakiet zawiera programy przykładowe demonstrujące możliwości | |
331 | biblioteki allegro. | |
332 | ||
b1f05c36 JB |
333 | %package -n python-%{name} |
334 | Summary: Python wrapper for Allegro library | |
335 | Summary(pl.UTF-8): Pythonowy interfejs do biblioteki Allegro | |
336 | Group: Development/Languages/Python | |
337 | Requires: %{name} = %{version}-%{release} | |
338 | Requires: python-modules | |
339 | ||
340 | %description -n python-%{name} | |
341 | Python wrapper for Allegro library. | |
342 | ||
343 | %description -n python-%{name} -l pl.UTF-8 | |
344 | Pythonowy interfejs do biblioteki Allegro. | |
345 | ||
328fc681 | 346 | %prep |
c43bc50c | 347 | %setup -q -n allegro-%{version} |
89e03088 | 348 | %patch0 -p1 |
328fc681 | 349 | |
350 | %build | |
328fc681 | 351 | install -d build |
352 | cd build | |
353 | %cmake .. \ | |
328fc681 | 354 | -DMANDIR=%{_mandir} \ |
b1f05c36 | 355 | -DINFODIR=%{_infodir} \ |
54b7addb | 356 | -DWANT_TTF=ON \ |
b1f05c36 JB |
357 | %{!?with_sse:-DWANT_ALLOW_SSE=OFF} \ |
358 | %{!?with_alsa:-DWANT_ALSA=OFF} \ | |
359 | %{?with_curl:-DWANT_CURL_EXAMPLE=ON} \ | |
360 | %{!?with_dumb:-DWANT_MODAUDIO=OFF} \ | |
361 | %{!?with_gtk:-DWANT_NATIVE_DIALOG=OFF} \ | |
362 | %{!?with_openal:-DWANT_OPENAL=OFF} \ | |
363 | %{!?with_physfs:-DWANT_PHYSFS=OFF} \ | |
364 | %{!?with_pulseaudio:-DWANT_PULSEAUDIO=OFF} \ | |
365 | %{?with_python:-DWANT_PYTHON_WRAPPER=ON} | |
328fc681 | 366 | |
367 | %{__make} | |
368 | ||
369 | %install | |
370 | rm -rf $RPM_BUILD_ROOT | |
371 | install -d $RPM_BUILD_ROOT%{_bindir} | |
372 | ||
373 | %{__make} install -C build \ | |
374 | DESTDIR=$RPM_BUILD_ROOT | |
375 | ||
b1f05c36 JB |
376 | %if %{with python} |
377 | install -d $RPM_BUILD_ROOT%{py_sitescriptdir} | |
378 | install build/python/allegro.py $RPM_BUILD_ROOT%{py_sitescriptdir} | |
379 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
380 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
381 | %py_postclean | |
382 | %endif | |
328fc681 | 383 | |
b1f05c36 JB |
384 | install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
385 | cp -p docs/man/*.3 $RPM_BUILD_ROOT%{_mandir}/man3 | |
328fc681 | 386 | |
b1f05c36 JB |
387 | # install examples |
388 | find build/examples -maxdepth 1 -perm 755 -name "ex*" -exec install {} $RPM_BUILD_ROOT%{_bindir} \; | |
328fc681 | 389 | |
390 | %clean | |
391 | rm -rf $RPM_BUILD_ROOT | |
392 | ||
97ee6f50 | 393 | %post -p /sbin/ldconfig |
394 | %postun -p /sbin/ldconfig | |
328fc681 | 395 | |
b1f05c36 JB |
396 | %post acodec -p /sbin/ldconfig |
397 | %postun acodec -p /sbin/ldconfig | |
398 | ||
399 | %post audio -p /sbin/ldconfig | |
400 | %postun audio -p /sbin/ldconfig | |
401 | ||
402 | %post dialog -p /sbin/ldconfig | |
403 | %postun dialog -p /sbin/ldconfig | |
404 | ||
405 | %post image -p /sbin/ldconfig | |
406 | %postun image -p /sbin/ldconfig | |
407 | ||
408 | %post physfs -p /sbin/ldconfig | |
409 | %postun physfs -p /sbin/ldconfig | |
410 | ||
411 | %post ttf -p /sbin/ldconfig | |
412 | %postun ttf -p /sbin/ldconfig | |
413 | ||
7cbfeea0 JB |
414 | %post video -p /sbin/ldconfig |
415 | %postun video -p /sbin/ldconfig | |
416 | ||
328fc681 | 417 | %files |
418 | %defattr(644,root,root,755) | |
54b7addb | 419 | %doc CHANGES-5.0.txt CHANGES-5.1.txt CHANGES-5.2.txt README.txt docs/html/refman |
389f5f31 | 420 | %attr(755,root,root) %{_libdir}/liballegro.so.*.*.* |
54b7addb | 421 | %attr(755,root,root) %ghost %{_libdir}/liballegro.so.5.2 |
b1f05c36 | 422 | %attr(755,root,root) %{_libdir}/liballegro_color.so.*.*.* |
54b7addb | 423 | %attr(755,root,root) %ghost %{_libdir}/liballegro_color.so.5.2 |
b1f05c36 | 424 | %attr(755,root,root) %{_libdir}/liballegro_font.so.*.*.* |
54b7addb | 425 | %attr(755,root,root) %ghost %{_libdir}/liballegro_font.so.5.2 |
b1f05c36 | 426 | %attr(755,root,root) %{_libdir}/liballegro_main.so.*.*.* |
54b7addb | 427 | %attr(755,root,root) %ghost %{_libdir}/liballegro_main.so.5.2 |
b1f05c36 | 428 | %attr(755,root,root) %{_libdir}/liballegro_memfile.so.*.*.* |
54b7addb | 429 | %attr(755,root,root) %ghost %{_libdir}/liballegro_memfile.so.5.2 |
b1f05c36 | 430 | %attr(755,root,root) %{_libdir}/liballegro_primitives.so.*.*.* |
54b7addb | 431 | %attr(755,root,root) %ghost %{_libdir}/liballegro_primitives.so.5.2 |
328fc681 | 432 | |
433 | %files devel | |
434 | %defattr(644,root,root,755) | |
b1f05c36 JB |
435 | %attr(755,root,root) %{_libdir}/liballegro.so |
436 | %attr(755,root,root) %{_libdir}/liballegro_color.so | |
437 | %attr(755,root,root) %{_libdir}/liballegro_font.so | |
438 | %attr(755,root,root) %{_libdir}/liballegro_main.so | |
439 | %attr(755,root,root) %{_libdir}/liballegro_memfile.so | |
440 | %attr(755,root,root) %{_libdir}/liballegro_primitives.so | |
441 | %{_includedir}/allegro5 | |
442 | %exclude %{_includedir}/allegro5/allegro_acodec.h | |
443 | %exclude %{_includedir}/allegro5/allegro_audio.h | |
444 | %exclude %{_includedir}/allegro5/allegro_image.h | |
445 | %{?with_gtk:%exclude %{_includedir}/allegro5/allegro_native_dialog.h} | |
446 | %{?with_physfs:%exclude %{_includedir}/allegro5/allegro_physfs.h} | |
447 | %exclude %{_includedir}/allegro5/allegro_ttf.h | |
7cbfeea0 | 448 | %exclude %{_includedir}/allegro5/allegro_video.h |
b1f05c36 | 449 | %{_pkgconfigdir}/allegro-5.pc |
b1f05c36 | 450 | %{_pkgconfigdir}/allegro_color-5.pc |
b1f05c36 | 451 | %{_pkgconfigdir}/allegro_font-5.pc |
b1f05c36 | 452 | %{_pkgconfigdir}/allegro_main-5.pc |
b1f05c36 | 453 | %{_pkgconfigdir}/allegro_memfile-5.pc |
b1f05c36 JB |
454 | %{_pkgconfigdir}/allegro_primitives-5.pc |
455 | %{_mandir}/man3/ALLEGRO_*.3* | |
456 | %{_mandir}/man3/al_*.3* | |
457 | ||
458 | %files acodec | |
459 | %defattr(644,root,root,755) | |
460 | %attr(755,root,root) %{_libdir}/liballegro_acodec.so.*.*.* | |
54b7addb | 461 | %attr(755,root,root) %ghost %{_libdir}/liballegro_acodec.so.5.2 |
b1f05c36 JB |
462 | |
463 | %files acodec-devel | |
464 | %defattr(644,root,root,755) | |
465 | %attr(755,root,root) %{_libdir}/liballegro_acodec.so | |
466 | %{_includedir}/allegro5/allegro_acodec.h | |
b1f05c36 JB |
467 | %{_pkgconfigdir}/allegro_acodec-5.pc |
468 | ||
469 | %files audio | |
470 | %defattr(644,root,root,755) | |
471 | %attr(755,root,root) %{_libdir}/liballegro_audio.so.*.*.* | |
54b7addb | 472 | %attr(755,root,root) %ghost %{_libdir}/liballegro_audio.so.5.2 |
b1f05c36 JB |
473 | |
474 | %files audio-devel | |
475 | %defattr(644,root,root,755) | |
476 | %attr(755,root,root) %{_libdir}/liballegro_audio.so | |
477 | %{_includedir}/allegro5/allegro_audio.h | |
b1f05c36 JB |
478 | %{_pkgconfigdir}/allegro_audio-5.pc |
479 | ||
480 | %if %{with gtk} | |
481 | %files dialog | |
482 | %defattr(644,root,root,755) | |
483 | %attr(755,root,root) %{_libdir}/liballegro_dialog.so.*.*.* | |
54b7addb | 484 | %attr(755,root,root) %ghost %{_libdir}/liballegro_dialog.so.5.2 |
b1f05c36 JB |
485 | |
486 | %files dialog-devel | |
487 | %defattr(644,root,root,755) | |
488 | %attr(755,root,root) %{_libdir}/liballegro_dialog.so | |
489 | %{_includedir}/allegro5/allegro_native_dialog.h | |
b1f05c36 JB |
490 | %{_pkgconfigdir}/allegro_dialog-5.pc |
491 | %endif | |
492 | ||
493 | %files image | |
494 | %defattr(644,root,root,755) | |
495 | %attr(755,root,root) %{_libdir}/liballegro_image.so.*.*.* | |
54b7addb | 496 | %attr(755,root,root) %ghost %{_libdir}/liballegro_image.so.5.2 |
b1f05c36 JB |
497 | |
498 | %files image-devel | |
499 | %defattr(644,root,root,755) | |
500 | %attr(755,root,root) %{_libdir}/liballegro_image.so | |
501 | %{_includedir}/allegro5/allegro_image.h | |
b1f05c36 JB |
502 | %{_pkgconfigdir}/allegro_image-5.pc |
503 | ||
504 | %if %{with physfs} | |
505 | %files physfs | |
506 | %defattr(644,root,root,755) | |
507 | %attr(755,root,root) %{_libdir}/liballegro_physfs.so.*.*.* | |
54b7addb | 508 | %attr(755,root,root) %ghost %{_libdir}/liballegro_physfs.so.5.2 |
b1f05c36 JB |
509 | |
510 | %files physfs-devel | |
511 | %defattr(644,root,root,755) | |
512 | %attr(755,root,root) %{_libdir}/liballegro_physfs.so | |
513 | %{_includedir}/allegro5/allegro_physfs.h | |
b1f05c36 JB |
514 | %{_pkgconfigdir}/allegro_physfs-5.pc |
515 | %endif | |
516 | ||
517 | %files ttf | |
518 | %defattr(644,root,root,755) | |
b1f05c36 | 519 | %attr(755,root,root) %{_libdir}/liballegro_ttf.so.*.*.* |
7cbfeea0 | 520 | %attr(755,root,root) %ghost %{_libdir}/liballegro_ttf.so.5.2 |
b1f05c36 JB |
521 | |
522 | %files ttf-devel | |
523 | %defattr(644,root,root,755) | |
524 | %attr(755,root,root) %{_libdir}/liballegro_ttf.so | |
525 | %{_includedir}/allegro5/allegro_ttf.h | |
b1f05c36 JB |
526 | %{_pkgconfigdir}/allegro_ttf-5.pc |
527 | ||
7cbfeea0 JB |
528 | %files video |
529 | %defattr(644,root,root,755) | |
530 | %attr(755,root,root) %{_libdir}/liballegro_video.so.*.*.* | |
531 | %attr(755,root,root) %ghost %{_libdir}/liballegro_video.so.5.2 | |
532 | ||
533 | %files video-devel | |
534 | %defattr(644,root,root,755) | |
535 | %attr(755,root,root) %{_libdir}/liballegro_video.so | |
536 | %{_includedir}/allegro5/allegro_video.h | |
537 | %{_pkgconfigdir}/allegro_video-5.pc | |
538 | ||
328fc681 | 539 | %files examples |
540 | %defattr(644,root,root,755) | |
541 | %attr(755,root,root) %{_bindir}/ex_acodec | |
542 | %attr(755,root,root) %{_bindir}/ex_acodec_multi | |
c43bc50c | 543 | %attr(755,root,root) %{_bindir}/ex_android |
b1f05c36 | 544 | %attr(755,root,root) %{_bindir}/ex_audio_chain |
328fc681 | 545 | %attr(755,root,root) %{_bindir}/ex_audio_props |
546 | %attr(755,root,root) %{_bindir}/ex_audio_simple | |
89e03088 | 547 | %attr(755,root,root) %{_bindir}/ex_audio_timer |
328fc681 | 548 | %attr(755,root,root) %{_bindir}/ex_bitmap |
549 | %attr(755,root,root) %{_bindir}/ex_bitmap_flip | |
328fc681 | 550 | %attr(755,root,root) %{_bindir}/ex_blend |
551 | %attr(755,root,root) %{_bindir}/ex_blend2 | |
552 | %attr(755,root,root) %{_bindir}/ex_blend_bench | |
c43bc50c | 553 | %attr(755,root,root) %{_bindir}/ex_blend_target |
328fc681 | 554 | %attr(755,root,root) %{_bindir}/ex_blend_test |
555 | %attr(755,root,root) %{_bindir}/ex_blit | |
54b7addb | 556 | %attr(755,root,root) %{_bindir}/ex_camera |
328fc681 | 557 | %attr(755,root,root) %{_bindir}/ex_clip |
54b7addb | 558 | %attr(755,root,root) %{_bindir}/ex_clipboard |
bcc9721e | 559 | %attr(755,root,root) %{_bindir}/ex_color |
c43bc50c | 560 | %attr(755,root,root) %{_bindir}/ex_color2 |
54b7addb | 561 | %attr(755,root,root) %{_bindir}/ex_compressed |
328fc681 | 562 | %attr(755,root,root) %{_bindir}/ex_config |
563 | %attr(755,root,root) %{_bindir}/ex_convert | |
54b7addb | 564 | %attr(755,root,root) %{_bindir}/ex_cpu |
b1f05c36 | 565 | %{?with_curl:%attr(755,root,root) %{_bindir}/ex_curl} |
54b7addb | 566 | %attr(755,root,root) %{_bindir}/ex_depth_mask |
c43bc50c | 567 | %attr(755,root,root) %{_bindir}/ex_depth_target |
328fc681 | 568 | %attr(755,root,root) %{_bindir}/ex_dir |
569 | %attr(755,root,root) %{_bindir}/ex_disable_screensaver | |
b1f05c36 | 570 | %attr(755,root,root) %{_bindir}/ex_display_events |
328fc681 | 571 | %attr(755,root,root) %{_bindir}/ex_display_options |
572 | %attr(755,root,root) %{_bindir}/ex_draw | |
573 | %attr(755,root,root) %{_bindir}/ex_draw_bitmap | |
574 | %attr(755,root,root) %{_bindir}/ex_drawpixels | |
575 | %attr(755,root,root) %{_bindir}/ex_dualies | |
576 | %attr(755,root,root) %{_bindir}/ex_expose | |
54b7addb | 577 | %attr(755,root,root) %{_bindir}/ex_file |
b1f05c36 | 578 | %attr(755,root,root) %{_bindir}/ex_file_slice |
bcc9721e | 579 | %attr(755,root,root) %{_bindir}/ex_filter |
328fc681 | 580 | %attr(755,root,root) %{_bindir}/ex_font |
54b7addb JR |
581 | %attr(755,root,root) %{_bindir}/ex_font_justify |
582 | %attr(755,root,root) %{_bindir}/ex_font_multiline | |
328fc681 | 583 | %attr(755,root,root) %{_bindir}/ex_fs_resize |
584 | %attr(755,root,root) %{_bindir}/ex_fs_window | |
585 | %attr(755,root,root) %{_bindir}/ex_get_path | |
586 | %attr(755,root,root) %{_bindir}/ex_gldepth | |
587 | %attr(755,root,root) %{_bindir}/ex_glext | |
bcc9721e | 588 | %attr(755,root,root) %{_bindir}/ex_haiku |
54b7addb JR |
589 | %attr(755,root,root) %{_bindir}/ex_haptic |
590 | %attr(755,root,root) %{_bindir}/ex_haptic2 | |
328fc681 | 591 | %attr(755,root,root) %{_bindir}/ex_icon |
b1f05c36 | 592 | %attr(755,root,root) %{_bindir}/ex_icon2 |
54b7addb | 593 | %attr(755,root,root) %{_bindir}/ex_inject_events |
328fc681 | 594 | %attr(755,root,root) %{_bindir}/ex_joystick_events |
bcc9721e | 595 | %attr(755,root,root) %{_bindir}/ex_joystick_hotplugging |
328fc681 | 596 | %attr(755,root,root) %{_bindir}/ex_kcm_direct |
597 | %attr(755,root,root) %{_bindir}/ex_keyboard_events | |
598 | %attr(755,root,root) %{_bindir}/ex_keyboard_focus | |
599 | %attr(755,root,root) %{_bindir}/ex_lines | |
54b7addb | 600 | %attr(755,root,root) %{_bindir}/ex_loading_thread |
328fc681 | 601 | %attr(755,root,root) %{_bindir}/ex_lockbitmap |
bcc9721e | 602 | %attr(755,root,root) %{_bindir}/ex_logo |
328fc681 | 603 | %attr(755,root,root) %{_bindir}/ex_membmp |
604 | %attr(755,root,root) %{_bindir}/ex_memfile | |
54b7addb | 605 | %attr(755,root,root) %{_bindir}/ex_menu |
328fc681 | 606 | %attr(755,root,root) %{_bindir}/ex_mixer_chain |
607 | %attr(755,root,root) %{_bindir}/ex_mixer_pp | |
608 | %attr(755,root,root) %{_bindir}/ex_monitorinfo | |
609 | %attr(755,root,root) %{_bindir}/ex_mouse | |
610 | %attr(755,root,root) %{_bindir}/ex_mouse_cursor | |
611 | %attr(755,root,root) %{_bindir}/ex_mouse_events | |
612 | %attr(755,root,root) %{_bindir}/ex_mouse_focus | |
54b7addb | 613 | %attr(755,root,root) %{_bindir}/ex_mouse_warp |
328fc681 | 614 | %attr(755,root,root) %{_bindir}/ex_multisample |
c43bc50c | 615 | %attr(755,root,root) %{_bindir}/ex_multisample_target |
328fc681 | 616 | %attr(755,root,root) %{_bindir}/ex_multiwin |
bcc9721e | 617 | %attr(755,root,root) %{_bindir}/ex_native_filechooser |
389f5f31 | 618 | %attr(755,root,root) %{_bindir}/ex_nodisplay |
328fc681 | 619 | %attr(755,root,root) %{_bindir}/ex_noframe |
620 | %attr(755,root,root) %{_bindir}/ex_opengl | |
621 | %attr(755,root,root) %{_bindir}/ex_opengl_pixel_shader | |
54b7addb | 622 | %attr(755,root,root) %{_bindir}/ex_palette |
328fc681 | 623 | %attr(755,root,root) %{_bindir}/ex_path |
624 | %attr(755,root,root) %{_bindir}/ex_path_test | |
b1f05c36 | 625 | %{?with_physfs:%attr(755,root,root) %{_bindir}/ex_physfs} |
328fc681 | 626 | %attr(755,root,root) %{_bindir}/ex_pixelformat |
54b7addb | 627 | %attr(755,root,root) %{_bindir}/ex_polygon |
6155f607 | 628 | %attr(755,root,root) %{_bindir}/ex_premulalpha |
328fc681 | 629 | %attr(755,root,root) %{_bindir}/ex_prim |
54b7addb JR |
630 | %attr(755,root,root) %{_bindir}/ex_prim_shader |
631 | %attr(755,root,root) %{_bindir}/ex_projection | |
632 | %attr(755,root,root) %{_bindir}/ex_projection2 | |
633 | %attr(755,root,root) %{_bindir}/ex_record | |
634 | %attr(755,root,root) %{_bindir}/ex_record_name | |
635 | %attr(755,root,root) %{_bindir}/ex_reparent | |
b1f05c36 | 636 | %attr(755,root,root) %{_bindir}/ex_resample_test |
328fc681 | 637 | %attr(755,root,root) %{_bindir}/ex_resize |
638 | %attr(755,root,root) %{_bindir}/ex_resize2 | |
639 | %attr(755,root,root) %{_bindir}/ex_rotate | |
640 | %attr(755,root,root) %{_bindir}/ex_saw | |
641 | %attr(755,root,root) %{_bindir}/ex_scale | |
54b7addb JR |
642 | %attr(755,root,root) %{_bindir}/ex_shader |
643 | %attr(755,root,root) %{_bindir}/ex_shader_multitex | |
644 | %attr(755,root,root) %{_bindir}/ex_shader_target | |
328fc681 | 645 | %attr(755,root,root) %{_bindir}/ex_stream_file |
646 | %attr(755,root,root) %{_bindir}/ex_stream_seek | |
647 | %attr(755,root,root) %{_bindir}/ex_subbitmap | |
bcc9721e | 648 | %attr(755,root,root) %{_bindir}/ex_synth |
328fc681 | 649 | %attr(755,root,root) %{_bindir}/ex_threads |
650 | %attr(755,root,root) %{_bindir}/ex_threads2 | |
651 | %attr(755,root,root) %{_bindir}/ex_timedwait | |
652 | %attr(755,root,root) %{_bindir}/ex_timer | |
54b7addb JR |
653 | %attr(755,root,root) %{_bindir}/ex_timer_pause |
654 | %attr(755,root,root) %{_bindir}/ex_touch_input | |
328fc681 | 655 | %attr(755,root,root) %{_bindir}/ex_transform |
bcc9721e | 656 | %attr(755,root,root) %{_bindir}/ex_ttf |
328fc681 | 657 | %attr(755,root,root) %{_bindir}/ex_user_events |
658 | %attr(755,root,root) %{_bindir}/ex_utf8 | |
54b7addb JR |
659 | %attr(755,root,root) %{_bindir}/ex_vertex_buffer |
660 | %attr(755,root,root) %{_bindir}/ex_video | |
328fc681 | 661 | %attr(755,root,root) %{_bindir}/ex_vsync |
54b7addb | 662 | %attr(755,root,root) %{_bindir}/ex_window_constraints |
c43bc50c | 663 | %attr(755,root,root) %{_bindir}/ex_window_maximized |
328fc681 | 664 | %attr(755,root,root) %{_bindir}/ex_windows |
54b7addb | 665 | %attr(755,root,root) %{_bindir}/ex_window_title |
328fc681 | 666 | %attr(755,root,root) %{_bindir}/ex_winfull |
b1f05c36 JB |
667 | |
668 | %if %{with python} | |
669 | %files -n python-%{name} | |
670 | %defattr(644,root,root,755) | |
671 | %{py_sitescriptdir}/allegro.py[co] | |
672 | %endif |