]>
Commit | Line | Data |
---|---|---|
59445a65 | 1 | # |
0af1c5c7 | 2 | # TODO: Handle situations when there are no modules (most bconds turned off) |
3 | # | |
59445a65 | 4 | # Conditional build: |
965b0868 JB |
5 | %bcond_without alsa # without ALSA modules |
6 | %bcond_without arts # without aRts module | |
0af1c5c7 | 7 | %bcond_without dga2 # without DGA2 module |
965b0868 | 8 | %bcond_without dbglib # don't build debug versions of library |
0af1c5c7 | 9 | %bcond_without esd # without esound module |
10 | %bcond_without fbcon # without framebuffer module | |
11 | %bcond_without jack # without JACK module | |
965b0868 | 12 | %bcond_without proflib # don't debug profiling versions of library |
0af1c5c7 | 13 | %bcond_without sse # build without sse |
14 | %bcond_without static # don't build static versions of library | |
965b0868 | 15 | %bcond_without svga # without svgalib module |
0af1c5c7 | 16 | %bcond_without vga # without vga module |
59445a65 | 17 | # |
3b5a56fa | 18 | Summary: A game programming library |
e017ac77 ER |
19 | Summary(de.UTF-8): Eine Bibliothek zur Programmierung von Spielen |
20 | Summary(es.UTF-8): Una biblioteca de programación de juegos | |
21 | Summary(fr.UTF-8): Une librairie de programmation de jeux | |
22 | Summary(it.UTF-8): Una libreria per la programmazione di videogiochi | |
23 | Summary(pl.UTF-8): Biblioteka do programowania gier | |
3b5a56fa | 24 | Name: allegro |
e87f63f6 | 25 | Version: 4.2.1 |
63db40e6 | 26 | Release: 1 |
86b90f5b | 27 | License: Giftware |
3ac31a78 | 28 | Group: Libraries |
7d6ed33c | 29 | Source0: http://dl.sourceforge.net/alleg/%{name}-%{version}.tar.gz |
e87f63f6 | 30 | # Source0-md5: 0a09d0144ee8652fb8fa00f6cbb324fe |
94ac3d0f | 31 | Patch0: %{name}-info.patch |
621bfe6c | 32 | Patch1: %{name}-examples.patch |
965b0868 JB |
33 | Patch2: %{name}-opt.patch |
34 | Patch3: %{name}-ldflags.patch | |
35 | Patch4: %{name}-frame-pointer.patch | |
dc9f489f | 36 | Patch5: %{name}-config.patch |
7d6ed33c | 37 | URL: http://alleg.sourceforge.net/ |
a8fe766d | 38 | BuildRequires: XFree86-devel |
965b0868 | 39 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
0af1c5c7 | 40 | %{?with_arts:BuildRequires: artsc-devel} |
9f78bca8 | 41 | BuildRequires: autoconf >= 2.53 |
2ffa6296 | 42 | BuildRequires: automake |
0af1c5c7 | 43 | %{?with_esd:BuildRequires: esound-devel} |
44 | %if %{with jack} | |
45 | BuildRequires: jack-audio-connection-kit-devel | |
46 | BuildRequires: pkgconfig | |
47 | %endif | |
965b0868 | 48 | %{?with_svga:BuildRequires: svgalib-devel} |
926a6bcd | 49 | BuildRequires: texinfo |
3b5a56fa SZ |
50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
51 | ||
52 | %description | |
53 | Allegro is a cross-platform library intended for use in computer games | |
54 | and other types of multimedia programming. | |
55 | ||
0e8a725c JR |
56 | %description -l de.UTF-8 |
57 | Allegro ist eine plattformübergreifende Bibliothek zur Verwendung in | |
0588cbe6 | 58 | Computerspielen und anderen Formen von Multinediaprogrammierung. |
3b5a56fa | 59 | |
0e8a725c JR |
60 | %description -l es.UTF-8 |
61 | Allegro es una librería multi-plataforma creada para ser usada en la | |
62 | programación de juegos u otro tipo de programación multimedia. | |
fdd1551e | 63 | |
0e8a725c JR |
64 | %description -l fr.UTF-8 |
65 | Allegro est une librairie multi-plateforme destinée à être utilisée | |
66 | dans les jeux vidéo ou d'autres types de programmation multimédia. | |
fdd1551e | 67 | |
0e8a725c JR |
68 | %description -l it.UTF-8 |
69 | Allegro è una libreria multipiattaforma dedicata all'uso nei | |
0af1c5c7 | 70 | videogiochi ed in altri tipi di programmazione multimediale. |
fdd1551e | 71 | |
0e8a725c JR |
72 | %description -l pl.UTF-8 |
73 | Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w | |
0588cbe6 | 74 | grach komputerowych i innych rodzajach oprogramowania multimedialnego. |
fdd1551e | 75 | |
3b5a56fa SZ |
76 | %package devel |
77 | Summary: A game programming library - header files | |
e017ac77 ER |
78 | Summary(es.UTF-8): Archivos de inclusión |
79 | Summary(pl.UTF-8): Biblioteka do programowania gier - pliki nagłówkowe | |
3ac31a78 | 80 | Group: Development/Libraries |
63db40e6 | 81 | Requires: %{name} = %{version}-%{release} |
3b5a56fa SZ |
82 | |
83 | %description devel | |
84 | Allegro is a cross-platform library intended for use in computer games | |
85 | and other types of multimedia programming. | |
86 | ||
926a6bcd | 87 | This package contains header files neccessary for compiling |
88 | applications using allegro library. | |
3b5a56fa | 89 | |
0e8a725c JR |
90 | %description devel -l de.UTF-8 |
91 | Allegro ist eine plattformübergreifende Bibliothek zur Verwendung in | |
0588cbe6 | 92 | Computerspielen und anderen Formen von Multinediaprogrammierung. |
0e8a725c | 93 | Dieses Paket wird benötigt, um Programme zu bauen, die Allegro |
0588cbe6 | 94 | verwenden. |
3b5a56fa | 95 | |
0e8a725c JR |
96 | %description devel -l es.UTF-8 |
97 | Allegro es una librería multi-plataforma creada para ser usada en la | |
98 | programación de juegos u otro tipo de programación multimedia. Este | |
fdd1551e | 99 | paquete es necesario para compilar los programas que usen Allegro. |
100 | ||
0e8a725c JR |
101 | %description devel -l fr.UTF-8 |
102 | Allegro est une librairie multi-plateforme destinée à être utilisée | |
103 | dans les jeux vidéo ou d'autres types de programmation multimédia. Ce | |
104 | package est nécessaire pour compiler les programmes utilisant Allegro. | |
fdd1551e | 105 | |
0e8a725c JR |
106 | %description devel -l it.UTF-8 |
107 | Allegro è una libreria multipiattaforma dedicata all'uso nei | |
0af1c5c7 | 108 | videogiochi ed in altri tipi di programmazione multimediale. Questo |
0e8a725c | 109 | pacchetto è necessario per compilare programmi scritti con Allegro. |
fdd1551e | 110 | |
0e8a725c JR |
111 | %description devel -l pl.UTF-8 |
112 | Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w | |
0588cbe6 | 113 | grach komputerowych i innych rodzajach oprogramowania multimedialnego. |
fdd1551e | 114 | |
0e8a725c JR |
115 | Ten pakiet zawiera pliki nagłówkowe niezbędne do kompilowania |
116 | aplikacji wykorzystujących bibliotekę allegro. | |
fdd1551e | 117 | |
3b5a56fa SZ |
118 | %package static |
119 | Summary: A game programming library - static libraries | |
e017ac77 | 120 | Summary(pl.UTF-8): Biblioteka do programowania gier - biblioteki statyczne |
3ac31a78 | 121 | Group: Development/Libraries |
63db40e6 | 122 | Requires: %{name}-devel = %{version}-%{release} |
3b5a56fa SZ |
123 | |
124 | %description static | |
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 static libraries for linking with allegro | |
129 | applications. | |
130 | ||
0e8a725c JR |
131 | %description static -l pl.UTF-8 |
132 | Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w | |
926a6bcd | 133 | grach komputerowych i innych rodzajach oprogramowania multimedialnego. |
3b5a56fa | 134 | |
f07508fa | 135 | Ten pakiet zawiera biblioteki statyczne do konsolidacji z aplikacjami |
0e8a725c | 136 | wykorzystującymi allegro. |
3b5a56fa | 137 | |
7d6ed33c JB |
138 | %package debug |
139 | Summary: liballd - debug version of shared allegro library | |
e017ac77 | 140 | Summary(pl.UTF-8): liballd - wersja debug dzielonej biblioteki allegro |
7d6ed33c | 141 | Group: Development/Libraries |
63db40e6 | 142 | Requires: %{name}-devel = %{version}-%{release} |
7d6ed33c JB |
143 | |
144 | %description debug | |
145 | liballd - debug version of shared allegro library (contains debugging | |
146 | symbols and other information). | |
147 | ||
0e8a725c JR |
148 | %description debug -l pl.UTF-8 |
149 | liballd - wersja debug dzielonej biblioteki allegro (zawierająca | |
7d6ed33c JB |
150 | symbole i inne informacje potrzebne przy odpluskwianiu). |
151 | ||
152 | %package debug-static | |
153 | Summary: liballd - debug version of static allegro library | |
e017ac77 | 154 | Summary(pl.UTF-8): liballd - wersja debug statycznej biblioteki allegro |
7d6ed33c | 155 | Group: Development/Libraries |
63db40e6 | 156 | Requires: %{name}-devel = %{version}-%{release} |
7d6ed33c JB |
157 | |
158 | %description debug-static | |
159 | liballd - debug version of static allegro library (contains debugging | |
160 | symbols and other information). | |
161 | ||
0e8a725c JR |
162 | %description debug-static -l pl.UTF-8 |
163 | liballd - wersja debug statycznej biblioteki allegro (zawierająca | |
7d6ed33c JB |
164 | symbole i inne informacje potrzebne przy odpluskwianiu). |
165 | ||
166 | %package profile | |
167 | Summary: liballp - profiling version of shared allegro library | |
e017ac77 | 168 | Summary(pl.UTF-8): liballp - wersja dzielonej biblioteki allegro służąca do profilowania |
7d6ed33c | 169 | Group: Development/Libraries |
63db40e6 | 170 | Requires: %{name}-devel = %{version}-%{release} |
7d6ed33c JB |
171 | |
172 | %description profile | |
173 | liballp - profiling version of shared allegro library. | |
174 | ||
0e8a725c JR |
175 | %description profile -l pl.UTF-8 |
176 | liballp - wersja dzielonej biblioteki allegro służąca do profilowania. | |
7d6ed33c JB |
177 | |
178 | %package profile-static | |
179 | Summary: liballp - profiling version of static allegro library | |
e017ac77 | 180 | Summary(pl.UTF-8): liballp - wersja statycznej biblioteki allegro służąca do profilowania |
7d6ed33c | 181 | Group: Development/Libraries |
63db40e6 | 182 | Requires: %{name}-devel = %{version}-%{release} |
7d6ed33c JB |
183 | |
184 | %description profile-static | |
185 | liballp - profiling version of static allegro library. | |
186 | ||
0e8a725c JR |
187 | %description profile-static -l pl.UTF-8 |
188 | liballp - wersja statycznej biblioteki allegro służąca do | |
7d6ed33c JB |
189 | profilowania. |
190 | ||
3b5a56fa SZ |
191 | %package svgalib |
192 | Summary: A game programming library - svgalib module | |
e017ac77 | 193 | Summary(pl.UTF-8): Biblioteka do programowania gier - moduł dla svgalib |
3ac31a78 | 194 | Group: Libraries |
0af1c5c7 | 195 | Requires: %{name} = %{version}-%{release} |
3b5a56fa SZ |
196 | |
197 | %description svgalib | |
198 | Allegro is a cross-platform library intended for use in computer games | |
199 | and other types of multimedia programming. | |
200 | ||
201 | This package contains module for use with allegro and svgalib. | |
202 | ||
0e8a725c JR |
203 | %description svgalib -l pl.UTF-8 |
204 | Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w | |
926a6bcd | 205 | grach komputerowych i innych rodzajach oprogramowania multimedialnego. |
3b5a56fa | 206 | |
0e8a725c | 207 | Ten pakiet zawiera moduł do wykorzystania allegro z svgalibem. |
3b5a56fa SZ |
208 | |
209 | %package dga2 | |
210 | Summary: A game programming library - DGA2 module | |
e017ac77 | 211 | Summary(pl.UTF-8): Biblioteka do programowania gier - moduł dla DGA2 |
3ac31a78 | 212 | Group: Libraries |
0af1c5c7 | 213 | Requires: %{name} = %{version}-%{release} |
3b5a56fa SZ |
214 | |
215 | %description dga2 | |
216 | Allegro is a cross-platform library intended for use in computer games | |
217 | and other types of multimedia programming. | |
218 | ||
219 | This package contains module for use with DGA. | |
220 | ||
0e8a725c JR |
221 | %description dga2 -l pl.UTF-8 |
222 | Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w | |
926a6bcd | 223 | grach komputerowych i innych rodzajach oprogramowania multimedialnego. |
3b5a56fa | 224 | |
0e8a725c | 225 | Ten pakiet zawiera moduł do wykorzystania z DGA. |
3b5a56fa SZ |
226 | |
227 | %package esd | |
228 | Summary: A game programming library - esound module | |
e017ac77 | 229 | Summary(pl.UTF-8): Biblioteka do programowania gier - moduł dla esound |
3ac31a78 | 230 | Group: Libraries |
0af1c5c7 | 231 | Requires: %{name} = %{version}-%{release} |
3b5a56fa SZ |
232 | |
233 | %description esd | |
234 | Allegro is a cross-platform library intended for use in computer games | |
235 | and other types of multimedia programming. | |
236 | ||
237 | This package contains a esound module for use with ESound daemon. | |
238 | ||
0e8a725c JR |
239 | %description esd -l pl.UTF-8 |
240 | Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w | |
926a6bcd | 241 | grach komputerowych i innych rodzajach oprogramowania multimedialnego. |
3b5a56fa | 242 | |
0e8a725c | 243 | Ten pakiet zawiera moduł do wykorzystania z demonem ESound. |
3b5a56fa | 244 | |
c223ecdc | 245 | %package arts |
246 | Summary: A game programming library - aRts module | |
e017ac77 | 247 | Summary(pl.UTF-8): Biblioteka do programowania gier - moduł dla aRts |
c223ecdc | 248 | Group: Libraries |
0af1c5c7 | 249 | Requires: %{name} = %{version}-%{release} |
c223ecdc | 250 | |
251 | %description arts | |
252 | Allegro is a cross-platform library intended for use in computer games | |
253 | and other types of multimedia programming. | |
254 | ||
255 | This package contains a esound module for use with aRts. | |
256 | ||
0e8a725c JR |
257 | %description arts -l pl.UTF-8 |
258 | Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w | |
c223ecdc | 259 | grach komputerowych i innych rodzajach oprogramowania multimedialnego. |
260 | ||
0e8a725c | 261 | Ten pakiet zawiera moduł do wykorzystania z aRts. |
c223ecdc | 262 | |
263 | %package fbcon | |
264 | Summary: A game programming library - framebuffer module | |
e017ac77 | 265 | Summary(pl.UTF-8): Biblioteka do programowania gier - moduł dla framebuffera |
c223ecdc | 266 | Group: Libraries |
0af1c5c7 | 267 | Requires: %{name} = %{version}-%{release} |
c223ecdc | 268 | |
269 | %description fbcon | |
270 | Allegro is a cross-platform library intended for use in computer games | |
271 | and other types of multimedia programming. | |
272 | ||
273 | This package contains a esound module for use with framebuffer. | |
274 | ||
0e8a725c JR |
275 | %description fbcon -l pl.UTF-8 |
276 | Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w | |
c223ecdc | 277 | grach komputerowych i innych rodzajach oprogramowania multimedialnego. |
278 | ||
0e8a725c | 279 | Ten pakiet zawiera moduł do wykorzystania z framebufferem. |
c223ecdc | 280 | |
281 | %package vga | |
282 | Summary: A game programming library - vga module | |
e017ac77 | 283 | Summary(pl.UTF-8): Biblioteka do programowania gier - moduł dla vga |
c223ecdc | 284 | Group: Libraries |
0af1c5c7 | 285 | Requires: %{name} = %{version}-%{release} |
c223ecdc | 286 | |
287 | %description vga | |
288 | Allegro is a cross-platform library intended for use in computer games | |
289 | and other types of multimedia programming. | |
290 | ||
291 | This package contains a esound module for use with vga. | |
292 | ||
0e8a725c JR |
293 | %description vga -l pl.UTF-8 |
294 | Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w | |
c223ecdc | 295 | grach komputerowych i innych rodzajach oprogramowania multimedialnego. |
296 | ||
0e8a725c | 297 | Ten pakiet zawiera moduł do wykorzystania z vga. |
c223ecdc | 298 | |
3ac31a78 | 299 | %package alsa |
300 | Summary: A game programming library - ALSA modules | |
e017ac77 | 301 | Summary(pl.UTF-8): Biblioteka do programowania gier - moduły dla ALSA |
3ac31a78 | 302 | Group: Libraries |
0af1c5c7 | 303 | Requires: %{name} = %{version}-%{release} |
965b0868 | 304 | Obsoletes: allegro-alsa9 |
3b5a56fa | 305 | |
3ac31a78 | 306 | %description alsa |
307 | Allegro is a cross-platform library intended for use in computer games | |
308 | and other types of multimedia programming. | |
3b5a56fa | 309 | |
3ac31a78 | 310 | This package contains modules for use with ALSA sound library. |
3b5a56fa | 311 | |
0e8a725c JR |
312 | %description alsa -l pl.UTF-8 |
313 | Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w | |
3ac31a78 | 314 | grach komputerowych i innych rodzajach oprogramowania multimedialnego. |
3b5a56fa | 315 | |
0e8a725c | 316 | Ten pakiet zawiera moduły do wykorzystania z biblioteką dźwiękową |
3ac31a78 | 317 | ALSA. |
3b5a56fa | 318 | |
9f78bca8 | 319 | %package jack |
320 | Summary: A game programming library - JACK module | |
e017ac77 | 321 | Summary(pl.UTF-8): Biblioteka do programowania gier - moduł dla JACK-a |
9f78bca8 | 322 | Group: Libraries |
0af1c5c7 | 323 | Requires: %{name} = %{version}-%{release} |
9f78bca8 | 324 | |
325 | %description jack | |
326 | Allegro is a cross-platform library intended for use in computer games | |
327 | and other types of multimedia programming. | |
328 | ||
329 | This package contains module for use with JACK sound library. | |
330 | ||
0e8a725c JR |
331 | %description jack -l pl.UTF-8 |
332 | Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w | |
9f78bca8 | 333 | grach komputerowych i innych rodzajach oprogramowania multimedialnego. |
334 | ||
0e8a725c | 335 | Ten pakiet zawiera moduł do wykorzystania z biblioteką dźwiękową JACK. |
9f78bca8 | 336 | |
e2812a4f | 337 | %package tools |
338 | Summary: A game programming library - tools | |
e017ac77 ER |
339 | Summary(de.UTF-8): Zusätzliche Hilfprogramme für die Allegro Bibliothek |
340 | Summary(es.UTF-8): Herramientas adicionales para la librería de programación Allegro | |
341 | Summary(fr.UTF-8): Outils supplémentaires pour la librairie de programmation Allegro | |
342 | Summary(it.UTF-8): Programmi di utilità aggiuntivi per la libreria Allegro | |
343 | Summary(pl.UTF-8): Biblioteka do programowania gier - narzędzia | |
3ac31a78 | 344 | Group: Libraries |
0af1c5c7 | 345 | Requires: %{name} = %{version}-%{release} |
e2812a4f | 346 | |
347 | %description tools | |
348 | Allegro is a cross-platform library intended for use in computer games | |
349 | and other types of multimedia programming. | |
350 | ||
351 | This package contains tools. | |
352 | ||
0e8a725c JR |
353 | %description tools -l de.UTF-8 |
354 | Allegro ist eine plattformübergreifende Bibliothek zur Verwendung in | |
0588cbe6 | 355 | Computerspielen und anderen Formen von Multinediaprogrammierung. |
0e8a725c | 356 | Dieses Paket enthält Programme, die für die Entwicklung von Allegro |
0af1c5c7 | 357 | Programmen hilfreich sind. |
e2812a4f | 358 | |
0e8a725c JR |
359 | %description tools -l es.UTF-8 |
360 | Allegro es una librería multi-plataforma creada para ser usada en la | |
361 | programación de juegos u otro tipo de programación multimedia. Este | |
362 | paquete contiene herramientas adicionales que son útiles para | |
fdd1551e | 363 | desarrollar programas que usen Allegro. |
364 | ||
0e8a725c JR |
365 | %description tools -l fr.UTF-8 |
366 | Allegro est une librairie multi-plateforme destinée à être utilisée | |
367 | dans les jeux vidéo ou d'autres types de programmation multimédia. Ce | |
368 | package contient des outils supplémentaires qui sont utiles pour le | |
369 | développement de programmes avec Allegro. | |
fdd1551e | 370 | |
0e8a725c JR |
371 | %description tools -l it.UTF-8 |
372 | Allegro è una libreria multipiattaforma dedicata all'uso nei | |
0af1c5c7 | 373 | videogiochi ed in altri tipi di programmazione multimediale. Questo |
0e8a725c | 374 | pacchetto contiene programmi di utilità aggiuntivi utili allo sviluppo |
0af1c5c7 | 375 | di programmi con Allegro. |
fdd1551e | 376 | |
0e8a725c JR |
377 | %description tools -l pl.UTF-8 |
378 | Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w | |
0588cbe6 JB |
379 | grach komputerowych i innych rodzajach oprogramowania multimedialnego. |
380 | ||
0e8a725c | 381 | Ten pakiet zawiera narzędzia. |
fdd1551e | 382 | |
7d6ed33c JB |
383 | %package tests |
384 | Summary: A game programming library - test programs | |
e017ac77 | 385 | Summary(pl.UTF-8): Biblioteka do programowania gier - programy testujące |
7d6ed33c | 386 | Group: Development/Libraries |
63db40e6 | 387 | Requires: %{name} = %{version}-%{release} |
7d6ed33c JB |
388 | |
389 | %description tests | |
390 | This package contains programs for testing allegro library. | |
391 | ||
0e8a725c JR |
392 | %description tests -l pl.UTF-8 |
393 | Pakiet zawiera programy testujące bibliotekę allegro. | |
7d6ed33c JB |
394 | |
395 | %package examples | |
396 | Summary: A game programming library - examples | |
e017ac77 | 397 | Summary(pl.UTF-8): Biblioteka do programowania gier - programy przykładowe |
7d6ed33c | 398 | Group: Development/Libraries |
63db40e6 | 399 | Requires: %{name} = %{version}-%{release} |
7d6ed33c JB |
400 | |
401 | %description examples | |
59b3b08e JB |
402 | This package contains example programs which demonstrate allegro |
403 | features. | |
7d6ed33c | 404 | |
0e8a725c JR |
405 | %description examples -l pl.UTF-8 |
406 | Pakiet zawiera programy przykładowe demonstrujące możliwości | |
59b3b08e | 407 | biblioteki allegro. |
7d6ed33c | 408 | |
3b5a56fa | 409 | %prep |
6d9f0f04 | 410 | %setup -q |
94ac3d0f | 411 | %patch0 -p1 |
621bfe6c | 412 | %patch1 -p1 |
965b0868 | 413 | %patch2 -p1 |
7d6ed33c | 414 | %patch3 -p1 |
aa1a55e9 | 415 | %patch4 -p1 |
dc9f489f | 416 | %patch5 -p1 |
3b5a56fa SZ |
417 | |
418 | %build | |
2ffa6296 | 419 | %{__aclocal} |
aa1a55e9 | 420 | %{__autoheader} configure.in > include/allegro/platform/alunixac.hin |
180ac262 | 421 | %{__autoconf} |
02cc6659 | 422 | TARGET_ARCH="%{rpmcflags}" export TARGET_ARCH |
3ac31a78 | 423 | # dbglib & proflib are compiled besides normlib, so it's ok to have them here |
3b5a56fa | 424 | %configure \ |
0af1c5c7 | 425 | %{?with_static:--enable-static} \ |
965b0868 JB |
426 | %{?with_dbglib:--enable-dbglib} \ |
427 | %{?with_proflib:--enable-proflib} \ | |
b52e553d | 428 | %if !%{with alsa} |
0af1c5c7 | 429 | --disable-alsadigi \ |
430 | --disable-alsamidi \ | |
431 | %endif | |
965b0868 | 432 | %{!?with_arts:--disable-artsdigi} \ |
0af1c5c7 | 433 | %{!?with_dga2:--disable-xwin-dga2} \ |
434 | %{!?with_esd:--disable-esddigi} \ | |
435 | %{!?with_fbcon:--disable-fbcon} \ | |
436 | %{!?with_jack:--disable-jackdigi} \ | |
437 | %{!?with_svga:--disable-svgalib} \ | |
438 | %{!?with_vga:--disable-vga} \ | |
b52e553d | 439 | %if !%{with sse} |
0af1c5c7 | 440 | --disable-sse \ |
441 | --disable-asm \ | |
442 | %endif | |
24590f24 | 443 | %ifnarch %{ix86} |
aa1a55e9 | 444 | --disable-asm \ |
445 | --disable-mmx \ | |
446 | --disable-sse | |
dfcd622b | 447 | %endif |
24590f24 | 448 | |
3384e596 | 449 | %{__make} \ |
7d6ed33c | 450 | MAKEINFO=makeinfo |
3b5a56fa SZ |
451 | |
452 | %install | |
453 | rm -rf $RPM_BUILD_ROOT | |
454 | ||
e2812a4f | 455 | %{__make} install install-man install-info install-lib \ |
926a6bcd | 456 | DESTDIR=$RPM_BUILD_ROOT |
3b5a56fa | 457 | |
e87f63f6 | 458 | install modules.lst $RPM_BUILD_ROOT%{_libdir}/allegro/%{version} |
3b5a56fa | 459 | |
3384e596 | 460 | mv $RPM_BUILD_ROOT%{_bindir}/demo{,-allegro} |
461 | mv $RPM_BUILD_ROOT%{_bindir}/play{,-allegro} | |
462 | mv $RPM_BUILD_ROOT%{_bindir}/setup{,-allegro} | |
463 | mv $RPM_BUILD_ROOT%{_bindir}/test{,-allegro} | |
464 | ||
965b0868 JB |
465 | # help rpm to find reqs for ELF objects |
466 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/{*.so,allegro/*/*.so} | |
467 | ||
3b5a56fa SZ |
468 | %clean |
469 | rm -rf $RPM_BUILD_ROOT | |
470 | ||
7d6ed33c JB |
471 | %post -p /sbin/ldconfig |
472 | %postun -p /sbin/ldconfig | |
473 | ||
ac39605a JB |
474 | %post devel |
475 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
476 | ||
477 | %postun devel | |
478 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
479 | ||
3b5a56fa SZ |
480 | %files |
481 | %defattr(644,root,root,755) | |
0af1c5c7 | 482 | %doc AUTHORS CHANGES THANKS readme.txt |
af62b583 | 483 | %attr(755,root,root) %{_libdir}/liballeg-%{version}.so |
7d6ed33c | 484 | %dir %{_libdir}/allegro |
e87f63f6 | 485 | %dir %{_libdir}/allegro/%{version} |
486 | %{_libdir}/allegro/%{version}/modules.lst | |
af62b583 | 487 | |
488 | %files devel | |
489 | %defattr(644,root,root,755) | |
af62b583 | 490 | %attr(755,root,root) %{_bindir}/allegro-config |
7d6ed33c JB |
491 | %{_libdir}/liballeg_unsharable.a |
492 | %{_includedir}/* | |
5d2fadb2 | 493 | %{_aclocaldir}/allegro.m4 |
e2812a4f | 494 | %{_mandir}/man3/* |
7d6ed33c | 495 | %{_infodir}/*.info* |
e2812a4f | 496 | |
0af1c5c7 | 497 | %if %{with static} |
7d6ed33c | 498 | %files static |
e2812a4f | 499 | %defattr(644,root,root,755) |
7d6ed33c | 500 | %{_libdir}/liballeg.a |
0af1c5c7 | 501 | %endif |
3b5a56fa | 502 | |
965b0868 | 503 | %if %{with dbglib} |
7d6ed33c JB |
504 | %files debug |
505 | %defattr(644,root,root,755) | |
506 | %attr(755,root,root) %{_libdir}/liballd-%{version}.so | |
507 | %{_libdir}/liballd_unsharable.a | |
508 | ||
0af1c5c7 | 509 | %if %{with static} |
7d6ed33c | 510 | %files debug-static |
3b5a56fa | 511 | %defattr(644,root,root,755) |
e2812a4f | 512 | %{_libdir}/liballd.a |
7d6ed33c | 513 | %endif |
0af1c5c7 | 514 | %endif |
7d6ed33c | 515 | |
965b0868 | 516 | %if %{with proflib} |
7d6ed33c JB |
517 | %files profile |
518 | %defattr(644,root,root,755) | |
519 | %attr(755,root,root) %{_libdir}/liballp-%{version}.so | |
520 | %{_libdir}/liballp_unsharable.a | |
521 | ||
0af1c5c7 | 522 | %if %{with static} |
7d6ed33c JB |
523 | %files profile-static |
524 | %defattr(644,root,root,755) | |
e2812a4f | 525 | %{_libdir}/liballp.a |
7d6ed33c | 526 | %endif |
0af1c5c7 | 527 | %endif |
3b5a56fa | 528 | |
965b0868 | 529 | %if %{with svga} |
3b5a56fa SZ |
530 | %files svgalib |
531 | %defattr(644,root,root,755) | |
e87f63f6 | 532 | %attr(755,root,root) %{_libdir}/allegro/%{version}/alleg-svgalib.so |
dfcd622b | 533 | %endif |
3b5a56fa | 534 | |
0af1c5c7 | 535 | %if %{with dga2} |
3b5a56fa SZ |
536 | %files dga2 |
537 | %defattr(644,root,root,755) | |
e87f63f6 | 538 | %attr(755,root,root) %{_libdir}/allegro/%{version}/alleg-dga2.so |
0af1c5c7 | 539 | %endif |
3b5a56fa | 540 | |
0af1c5c7 | 541 | %if %{with esd} |
3b5a56fa SZ |
542 | %files esd |
543 | %defattr(644,root,root,755) | |
e87f63f6 | 544 | %attr(755,root,root) %{_libdir}/allegro/%{version}/alleg-esddigi.so |
0af1c5c7 | 545 | %endif |
3b5a56fa | 546 | |
965b0868 | 547 | %if %{with arts} |
c223ecdc | 548 | %files arts |
549 | %defattr(644,root,root,755) | |
e87f63f6 | 550 | %attr(755,root,root) %{_libdir}/allegro/%{version}/alleg-artsdigi.so |
7d6ed33c | 551 | %endif |
c223ecdc | 552 | |
0af1c5c7 | 553 | %if %{with fbcon} |
699e1c2e | 554 | %files fbcon |
555 | %defattr(644,root,root,755) | |
e87f63f6 | 556 | %attr(755,root,root) %{_libdir}/allegro/%{version}/alleg-fbcon.so |
0af1c5c7 | 557 | %endif |
c223ecdc | 558 | |
02cc6659 | 559 | %ifarch %{ix86} |
0af1c5c7 | 560 | %if %{with vga} |
c223ecdc | 561 | %files vga |
562 | %defattr(644,root,root,755) | |
e87f63f6 | 563 | %attr(755,root,root) %{_libdir}/allegro/%{version}/alleg-vga.so |
0af1c5c7 | 564 | %endif |
02cc6659 | 565 | %endif |
c223ecdc | 566 | |
965b0868 | 567 | %if %{with alsa} |
3ac31a78 | 568 | %files alsa |
569 | %defattr(644,root,root,755) | |
e87f63f6 | 570 | %attr(755,root,root) %{_libdir}/allegro/%{version}/alleg-alsadigi.so |
571 | %attr(755,root,root) %{_libdir}/allegro/%{version}/alleg-alsamidi.so | |
7d6ed33c JB |
572 | %endif |
573 | ||
9f78bca8 | 574 | %if %{with jack} |
575 | %files jack | |
576 | %defattr(644,root,root,755) | |
e87f63f6 | 577 | %attr(755,root,root) %{_libdir}/allegro/%{version}/alleg-jackdigi.so |
9f78bca8 | 578 | %endif |
579 | ||
7d6ed33c JB |
580 | %files tools |
581 | %defattr(644,root,root,755) | |
582 | %attr(755,root,root) %{_bindir}/colormap | |
583 | %attr(755,root,root) %{_bindir}/exedat | |
584 | %attr(755,root,root) %{_bindir}/pack | |
585 | %attr(755,root,root) %{_bindir}/rgbmap | |
586 | %attr(755,root,root) %{_bindir}/textconv | |
0af1c5c7 | 587 | %attr(755,root,root) %{_bindir}/xkeymap |
588 | %attr(755,root,root) %{_bindir}/xf2pcx | |
7d6ed33c JB |
589 | %attr(755,root,root) %{_bindir}/dat |
590 | %attr(755,root,root) %{_bindir}/dat2c | |
591 | %attr(755,root,root) %{_bindir}/dat2s | |
592 | %attr(755,root,root) %{_bindir}/grabber | |
593 | %attr(755,root,root) %{_bindir}/pat2dat | |
594 | %attr(755,root,root) %{_bindir}/setup-allegro | |
7d6ed33c | 595 | |
5082f193 | 596 | %files tests |
597 | %defattr(644,root,root,755) | |
598 | %attr(755,root,root) %{_bindir}/afinfo | |
599 | %attr(755,root,root) %{_bindir}/akaitest | |
0af1c5c7 | 600 | %attr(755,root,root) %{_bindir}/cpptest |
3384e596 | 601 | %attr(755,root,root) %{_bindir}/demo-allegro |
5082f193 | 602 | %attr(755,root,root) %{_bindir}/digitest |
603 | %attr(755,root,root) %{_bindir}/filetest | |
604 | %attr(755,root,root) %{_bindir}/gfxinfo | |
605 | %attr(755,root,root) %{_bindir}/mathtest | |
606 | %attr(755,root,root) %{_bindir}/miditest | |
3384e596 | 607 | %attr(755,root,root) %{_bindir}/play-allegro |
5082f193 | 608 | %attr(755,root,root) %{_bindir}/playfli |
3384e596 | 609 | %attr(755,root,root) %{_bindir}/test-allegro |
5082f193 | 610 | %attr(755,root,root) %{_bindir}/vesainfo |
611 | ||
612 | %files examples | |
613 | %defattr(644,root,root,755) | |
614 | %attr(755,root,root) %{_bindir}/ex12bit | |
615 | %attr(755,root,root) %{_bindir}/ex3buf | |
616 | %attr(755,root,root) %{_bindir}/ex3d | |
3384e596 | 617 | %attr(755,root,root) %{_bindir}/exaccel |
5082f193 | 618 | %attr(755,root,root) %{_bindir}/exalpha |
619 | %attr(755,root,root) %{_bindir}/exbitmap | |
620 | %attr(755,root,root) %{_bindir}/exblend | |
3384e596 | 621 | %attr(755,root,root) %{_bindir}/excamera |
622 | %attr(755,root,root) %{_bindir}/excolmap | |
59b3b08e | 623 | %attr(755,root,root) %{_bindir}/exconfig |
3384e596 | 624 | %attr(755,root,root) %{_bindir}/excustom |
5082f193 | 625 | %attr(755,root,root) %{_bindir}/exdata |
626 | %attr(755,root,root) %{_bindir}/exdbuf | |
5082f193 | 627 | %attr(755,root,root) %{_bindir}/exexedat |
628 | %attr(755,root,root) %{_bindir}/exfixed | |
629 | %attr(755,root,root) %{_bindir}/exflame | |
630 | %attr(755,root,root) %{_bindir}/exflip | |
0af1c5c7 | 631 | %attr(755,root,root) %{_bindir}/exfont |
5082f193 | 632 | %attr(755,root,root) %{_bindir}/exgui |
633 | %attr(755,root,root) %{_bindir}/exhello | |
634 | %attr(755,root,root) %{_bindir}/exjoy | |
635 | %attr(755,root,root) %{_bindir}/exkeys | |
636 | %attr(755,root,root) %{_bindir}/exlights | |
637 | %attr(755,root,root) %{_bindir}/exmem | |
638 | %attr(755,root,root) %{_bindir}/exmidi | |
639 | %attr(755,root,root) %{_bindir}/exmouse | |
0af1c5c7 | 640 | %attr(755,root,root) %{_bindir}/expackf |
5082f193 | 641 | %attr(755,root,root) %{_bindir}/expal |
642 | %attr(755,root,root) %{_bindir}/expat | |
643 | %attr(755,root,root) %{_bindir}/exquat | |
644 | %attr(755,root,root) %{_bindir}/exrgbhsv | |
645 | %attr(755,root,root) %{_bindir}/exsample | |
0af1c5c7 | 646 | %attr(755,root,root) %{_bindir}/exsyscur |
3384e596 | 647 | %attr(755,root,root) %{_bindir}/exscale |
648 | %attr(755,root,root) %{_bindir}/exscn3d | |
649 | %attr(755,root,root) %{_bindir}/exscroll | |
5082f193 | 650 | %attr(755,root,root) %{_bindir}/exshade |
651 | %attr(755,root,root) %{_bindir}/exspline | |
652 | %attr(755,root,root) %{_bindir}/exsprite | |
653 | %attr(755,root,root) %{_bindir}/exstars | |
654 | %attr(755,root,root) %{_bindir}/exstream | |
3384e596 | 655 | %attr(755,root,root) %{_bindir}/exswitch |
5082f193 | 656 | %attr(755,root,root) %{_bindir}/extimer |
657 | %attr(755,root,root) %{_bindir}/extrans | |
3384e596 | 658 | %attr(755,root,root) %{_bindir}/extruec |
659 | %attr(755,root,root) %{_bindir}/exunicod | |
5082f193 | 660 | %attr(755,root,root) %{_bindir}/exupdate |
661 | %attr(755,root,root) %{_bindir}/exxfade | |
662 | %attr(755,root,root) %{_bindir}/exzbuf |