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