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