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