]>
Commit | Line | Data |
---|---|---|
805046f4 | 1 | # TODO: --enable-pvr2d when ready [requires PowerVR SDK?] |
a86e3925 JB |
2 | # |
3 | # Conditional build: | |
8f1e72d3 | 4 | %bcond_with multi # build Multi-application core (requires working /dev/fusion*) |
bb7da712 | 5 | %bcond_with sh772x # SH7722/SH7723 (SH-Mobile) graphics driver |
27d0b85e | 6 | %bcond_without static_libs # don't build static libraries |
805046f4 | 7 | %bcond_without one # Linux One IPC library |
a86e3925 | 8 | # |
bb7da712 JB |
9 | %ifarch sh4 |
10 | %define with_sh772x 1 | |
11 | %endif | |
7209bb84 | 12 | Summary: DirectFB - Hardware graphics acceleration |
29dd91d0 | 13 | Summary(pl.UTF-8): DirectFB - Wspomaganie grafiki |
b97730cd | 14 | Name: DirectFB |
ae7c8571 | 15 | Version: 1.6.2 |
26df2d18 | 16 | Release: 1 |
75e7fed3 | 17 | Epoch: 1 |
dd531635 | 18 | License: LGPL v2+ |
c34d73d3 | 19 | Group: Libraries |
84ec87b6 | 20 | Source0: http://www.directfb.org/downloads/Core/DirectFB-1.6/%{name}-%{version}.tar.gz |
ae7c8571 | 21 | # Source0-md5: 6bebdbf26f03f7114ae17ab86d4d1d27 |
3d874b33 | 22 | Source1: http://www.directfb.org/downloads/Extras/DFBTutorials-0.5.0.tar.gz |
4474b793 | 23 | # Source1-md5: 13e443a64bddd68835b574045d9025e9 |
caa11f9b | 24 | Patch0: %{name}-am.patch |
c9a5c412 | 25 | Patch1: %{name}-pmake.patch |
d9652db7 | 26 | Patch2: %{name}-fix.patch |
b775b9bd JB |
27 | Patch3: %{name}-gcc4.patch |
28 | Patch4: %{name}-llh-ppc.patch | |
84ec87b6 JB |
29 | Patch5: %{name}-zlib.patch |
30 | Patch6: %{name}-update.patch | |
805046f4 | 31 | Patch7: %{name}-external-one.patch |
7209bb84 | 32 | URL: http://www.directfb.org/ |
84ec87b6 JB |
33 | BuildRequires: Mesa-libEGL-devel |
34 | BuildRequires: Mesa-libGLES-devel | |
35 | BuildRequires: Mesa-libgbm-devel | |
cd8353f7 JB |
36 | BuildRequires: OpenGL-devel |
37 | BuildRequires: OpenGL-GLX-devel | |
c61914f8 | 38 | BuildRequires: SDL-devel |
134bb292 | 39 | BuildRequires: autoconf >= 2.52 |
7209bb84 | 40 | BuildRequires: automake |
bb829f4a | 41 | BuildRequires: freetype-devel >= 2.0.2 |
84ec87b6 JB |
42 | BuildRequires: imlib2-devel |
43 | BuildRequires: jasper-devel | |
44 | BuildRequires: libdrm-devel | |
bb829f4a | 45 | BuildRequires: libjpeg-devel >= 6b |
84ec87b6 | 46 | BuildRequires: libmng-devel |
baa068d2 | 47 | BuildRequires: libpng-devel >= 2:1.4.0 |
a87f855f | 48 | BuildRequires: libstdc++-devel |
84ec87b6 | 49 | BuildRequires: libsvg-cairo-devel >= 0.1.6 |
bb829f4a | 50 | BuildRequires: libtool |
84ec87b6 | 51 | BuildRequires: libvdpau-devel |
1d67db3f | 52 | BuildRequires: libvncserver-devel |
1d0b2e33 | 53 | %{?with_multi:BuildRequires: linux-fusion-devel >= 8.7} |
b3a13aad | 54 | %{?with_multi:BuildRequires: linux-fusion-devel < 9} |
3053c6ed | 55 | %{?with_one:BuildRequires: linux-one-devel >= 1.6.0} |
16320889 | 56 | BuildRequires: pkgconfig |
d9652db7 | 57 | BuildRequires: sed >= 4.0 |
b737ab1d | 58 | BuildRequires: sysfsutils-devel >= 1.3.0-3 |
84ec87b6 JB |
59 | BuildRequires: tslib-devel >= 1.0 |
60 | BuildRequires: xorg-lib-libX11-devel | |
b80e2d72 | 61 | BuildRequires: xorg-lib-libXext-devel |
84ec87b6 | 62 | BuildRequires: xorg-proto-xproto-devel |
bb829f4a | 63 | BuildRequires: zlib-devel >= 1.1.3 |
cd8353f7 | 64 | #BuildRequires: pkgconfig(linotype) -- font provider??? |
bb7da712 JB |
65 | %if %{with sh772x} |
66 | BuildRequires: libshbeu-devel >= 1.0.2 | |
67 | BuildRequires: libshjpeg-devel >= 1.3.3 | |
68 | BuildRequires: libuiomux-devel >= 1.5.0 | |
69 | %endif | |
8e6b4a16 | 70 | %{?with_multi:Provides: DirectFB(multi)} |
84ec87b6 JB |
71 | %ifnarch arm |
72 | # ARM-specific | |
73 | Obsoletes: DirectFB-input-ucb1x00 | |
74 | %endif | |
fa14e7e8 | 75 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
b97730cd | 76 | |
84ec87b6 | 77 | %define dfbdir %{_libdir}/directfb-1.6-0 |
b621b93e | 78 | |
e92bfe87 PS |
79 | %define specflags -fno-strict-aliasing |
80 | ||
1fc2240a JB |
81 | %ifarch %{ix86} |
82 | # gcc running out of registers with -O0 in generic_mmx.h | |
83 | %define debugcflags -O1 -g | |
84 | %endif | |
85 | ||
b97730cd | 86 | %description |
7209bb84 | 87 | DirectFB hardware graphics acceleration - libraries. |
b97730cd | 88 | |
50c27dbd | 89 | %description -l pl.UTF-8 |
7209bb84 | 90 | Wspomaganie grafiki DirectFB - biblioteki. |
b97730cd | 91 | |
340488a1 | 92 | %package devel |
7209bb84 | 93 | Summary: DirectFB - development package |
29dd91d0 | 94 | Summary(pl.UTF-8): DirectFB - pliki nagłówkowe |
c34d73d3 | 95 | Group: Development/Libraries |
d9652db7 | 96 | Requires: %{name} = %{epoch}:%{version}-%{release} |
3053c6ed | 97 | %{?with_one:Requires: linux-one-devel >= 1.6.0} |
d9652db7 | 98 | Requires: zlib-devel >= 1.1.3 |
055ea81c | 99 | |
340488a1 | 100 | %description devel |
055ea81c | 101 | DirectFB header files. |
102 | ||
50c27dbd JR |
103 | %description devel -l pl.UTF-8 |
104 | Pliki nagłówkowe dla DirectFB. | |
340488a1 | 105 | |
bb829f4a JB |
106 | %package static |
107 | Summary: DirectFB static libraries | |
29dd91d0 | 108 | Summary(pl.UTF-8): Statyczne biblioteki DirectFB |
bb829f4a | 109 | Group: Development/Libraries |
d9652db7 | 110 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
bb829f4a JB |
111 | |
112 | %description static | |
113 | DirectFB static libraries. | |
114 | ||
50c27dbd | 115 | %description static -l pl.UTF-8 |
bb829f4a JB |
116 | Statyczne biblioteki DirectFB. |
117 | ||
340488a1 | 118 | %package doc |
7209bb84 | 119 | Summary: DirectFB - documentation |
29dd91d0 | 120 | Summary(pl.UTF-8): DirectFB - dokumentacja |
f4c66141 | 121 | Group: Documentation |
055ea81c | 122 | |
340488a1 | 123 | %description doc |
bb829f4a JB |
124 | DirectFB documentation and tutorials. |
125 | ||
50c27dbd | 126 | %description doc -l pl.UTF-8 |
bb829f4a JB |
127 | Dokumentacja dla systemu DirectFB wraz z wprowadzeniem. |
128 | ||
84ec87b6 JB |
129 | %package core-mesa |
130 | Summary: Mesa/GLESv2 core system for DirectFB | |
131 | Summary(pl.UTF-8): System Mesa/GLESv2 dla DirectFB | |
132 | Group: Libraries | |
133 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
134 | ||
135 | %description core-mesa | |
136 | This package contains Mesa/GLESv2 core system module for DirectFB. | |
137 | ||
138 | %description core-mesa -l pl.UTF-8 | |
139 | Ten pakiet zawiera moduł systemu Mesa/GLESv2 dla DirectFB. | |
140 | ||
c61914f8 JB |
141 | %package core-sdl |
142 | Summary: SDL core system for DirectFB | |
29dd91d0 | 143 | Summary(pl.UTF-8): System SDL dla DirectFB |
c61914f8 | 144 | Group: Libraries |
d9652db7 | 145 | Requires: %{name} = %{epoch}:%{version}-%{release} |
c61914f8 JB |
146 | |
147 | %description core-sdl | |
148 | This package contains SDL core system module for DirectFB. | |
149 | ||
50c27dbd JR |
150 | %description core-sdl -l pl.UTF-8 |
151 | Ten pakiet zawiera moduł systemu SDL dla DirectFB. | |
c61914f8 | 152 | |
84ec87b6 JB |
153 | %package core-vdpau |
154 | Summary: X11/VDPAU core system for DirectFB | |
155 | Summary(pl.UTF-8): System X11/VDPAU dla DirectFB | |
156 | Group: Libraries | |
157 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
158 | ||
159 | %description core-vdpau | |
160 | This package contains X11/VDPAU core system module for DirectFB. | |
161 | ||
162 | %description core-vdpau -l pl.UTF-8 | |
163 | Ten pakiet zawiera moduł systemu X11/VDPAU dla DirectFB. | |
164 | ||
b737ab1d JB |
165 | %package core-vnc |
166 | Summary: VNC core system for DirectFB | |
29dd91d0 | 167 | Summary(pl.UTF-8): System VNC dla DirectFB |
b737ab1d JB |
168 | Group: Libraries |
169 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
170 | ||
171 | %description core-vnc | |
172 | This package contains VNC core system module for DirectFB. | |
173 | ||
50c27dbd JR |
174 | %description core-vnc -l pl.UTF-8 |
175 | Ten pakiet zawiera moduł systemu VNC dla DirectFB. | |
b737ab1d JB |
176 | |
177 | %package core-x11 | |
178 | Summary: X11 core system for DirectFB | |
29dd91d0 | 179 | Summary(pl.UTF-8): System X11 dla DirectFB |
b737ab1d JB |
180 | Group: Libraries |
181 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
182 | ||
183 | %description core-x11 | |
184 | This package contains X11 core system module for DirectFB. | |
185 | ||
50c27dbd JR |
186 | %description core-x11 -l pl.UTF-8 |
187 | Ten pakiet zawiera moduł systemu X11 dla DirectFB. | |
b737ab1d | 188 | |
b621b93e JB |
189 | %package font-ft2 |
190 | Summary: FreeType2 font provider for DirectFB | |
29dd91d0 | 191 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca fonty poprzez FreeType2 |
b621b93e | 192 | Group: Libraries |
d9652db7 | 193 | Requires: %{name} = %{epoch}:%{version}-%{release} |
b621b93e JB |
194 | |
195 | %description font-ft2 | |
196 | This package contains FreeType2 font provider for DirectFB. | |
197 | ||
50c27dbd JR |
198 | %description font-ft2 -l pl.UTF-8 |
199 | Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą fonty poprzez | |
200 | bibliotekę FreeType2. | |
b621b93e | 201 | |
bb7da712 JB |
202 | %package gfx-sh772x |
203 | Summary: SH7722/SH7723 graphics driver for DirectFB | |
204 | Summary(pl.UTF-8): Sterownik graficzny SH7722/7723 dla DirectFB | |
205 | Group: Libraries | |
206 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
207 | Requires: libshbeu >= 1.0.2 | |
208 | Requires: libshjpeg >= 1.3.3 | |
209 | Requires: libuiomux >= 1.5.0 | |
210 | ||
211 | %description gfx-sh772x | |
212 | SH7722/SH7723 graphics (SH-Mobile devices) driver for DirectFB. | |
213 | ||
214 | %description gfx-sh772x -l pl.UTF-8 | |
215 | Sterownik graficzny SH7722/7723 (SH-Mobile) dla DirectFB. | |
216 | ||
b775b9bd | 217 | %package input-dynapro |
84b3c8f4 | 218 | Summary: Dynapro touchscreen input driver for DirectFB |
219 | Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów Dynapro dla DirectFB | |
220 | Group: Libraries | |
221 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
b775b9bd JB |
222 | |
223 | %description input-dynapro | |
224 | Dynapro touchscreen input driver for DirectFB. | |
225 | ||
226 | NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it | |
227 | unless you don't have Dynapro device connected to this port. It can | |
228 | mess with other devices connected to this port (mouse, modem etc.). | |
229 | ||
44b72f5f | 230 | %description input-dynapro -l pl.UTF-8 |
b775b9bd JB |
231 | Sterownik wejściowy do touchscreenów Dynapro dla DirectFB. |
232 | ||
233 | UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc | |
234 | nie należy go instalować, jeśli urządzenie Dynapro nie jest podłączone | |
235 | do tego portu. Sterownik może utrudnić współpracę z innymi | |
236 | urządzeniami podłączonymi do /dev/ttyS0 (jak mysz, modem itp.). | |
237 | ||
639e9568 JB |
238 | %package input-elo |
239 | Summary: ELO touchscreen input driver for DirectFB | |
29dd91d0 | 240 | Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów ELO dla DirectFB |
639e9568 JB |
241 | Group: Libraries |
242 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
243 | ||
244 | %description input-elo | |
245 | ELO touchscreen input driver for DirectFB. | |
246 | ||
247 | NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it | |
b80e2d72 JB |
248 | unless you have ELO device connected to this port. It can mess with |
249 | other devices connected to this port (mouse, modem etc.). | |
639e9568 | 250 | |
50c27dbd JR |
251 | %description input-elo -l pl.UTF-8 |
252 | Sterownik wejściowy do touchscreenów ELO dla DirectFB. | |
639e9568 | 253 | |
50c27dbd JR |
254 | UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc |
255 | nie należy go instalować, jeśli urządzenie ELO nie jest podłączone do | |
256 | tego portu. Sterownik może utrudnić współpracę z innymi urządzeniami | |
257 | podłączonymi do /dev/ttyS0 (jak mysz, modem itp.). | |
639e9568 | 258 | |
b775b9bd | 259 | %package input-gunze |
84b3c8f4 | 260 | Summary: Gunze touchscreen input driver for DirectFB |
261 | Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów Gunze dla DirectFB | |
262 | Group: Libraries | |
263 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
b775b9bd JB |
264 | |
265 | %description input-gunze | |
266 | Gunze touchscreen input driver for DirectFB. | |
267 | ||
268 | NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it | |
269 | unless you don't have Gunze device connected to this port. It can mess | |
270 | with other devices connected to this port (mouse, modem etc.). | |
271 | ||
44b72f5f | 272 | %description input-gunze -l pl.UTF-8 |
b775b9bd JB |
273 | Sterownik wejściowy do touchscreenów Gunze dla DirectFB. |
274 | ||
275 | UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc | |
276 | nie należy go instalować, jeśli urządzenie Gunze nie jest podłączone | |
277 | do tego portu. Sterownik może utrudnić współpracę z innymi | |
278 | urządzeniami podłączonymi do /dev/ttyS0 (jak mysz, modem itp.). | |
279 | ||
639e9568 JB |
280 | %package input-mutouch |
281 | Summary: MuTouch touchscreen input driver for DirectFB | |
29dd91d0 | 282 | Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów MuTouch dla DirectFB |
639e9568 JB |
283 | Group: Libraries |
284 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
285 | ||
286 | %description input-mutouch | |
287 | MuTouch touchscreen input driver for DirectFB. | |
288 | ||
b737ab1d | 289 | NOTE: it needs "mut-device" setting in directfbrc in order to work. |
639e9568 | 290 | |
50c27dbd JR |
291 | %description input-mutouch -l pl.UTF-8 |
292 | Sterownik wejściowy do touchscreenów MuTouch dla DirectFB. | |
639e9568 | 293 | |
50c27dbd | 294 | UWAGA: do działania potrzebuje ustawienia "mut-device" w directfbrc. |
639e9568 | 295 | |
b3a13aad JB |
296 | %package input-tslib |
297 | Summary: tslib-based touchscreen input driver for DirectFB | |
298 | Summary(pl.UTF-8): Oparty na tslib sterownik wejściowy do touchscreenów dla DirectFB | |
299 | Group: Libraries | |
300 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
84ec87b6 | 301 | Requires: tslib >= 1.0 |
b3a13aad JB |
302 | |
303 | %description input-tslib | |
304 | tslib-based touchscreen input driver for DirectFB | |
305 | ||
306 | %description input-tslib -l pl.UTF-8 | |
307 | Oparty na tslib sterownik wejściowy do touchscreenów dla DirectFB. | |
308 | ||
b775b9bd | 309 | %package input-ucb1x00 |
84b3c8f4 | 310 | Summary: UCB1x00 touchscreen input driver for DirectFB |
311 | Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów UCB1x00 dla DirectFB | |
312 | Group: Libraries | |
313 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
b775b9bd JB |
314 | |
315 | %description input-ucb1x00 | |
316 | UCB1x00 touchscreen input driver for DirectFB. | |
317 | ||
44b72f5f | 318 | %description input-ucb1x00 -l pl.UTF-8 |
b775b9bd JB |
319 | Sterownik wejściowy do touchscreenów UCB1x00 dla DirectFB. |
320 | ||
321 | %package input-wm97xx | |
84b3c8f4 | 322 | Summary: WM97xx touchscreen input driver for DirectFB |
323 | Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów WM97xx dla DirectFB | |
324 | Group: Libraries | |
325 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
b775b9bd JB |
326 | |
327 | %description input-wm97xx | |
328 | WM97xx touchscreen input driver for DirectFB. | |
329 | ||
44b72f5f | 330 | %description input-wm97xx -l pl.UTF-8 |
b775b9bd JB |
331 | Sterownik wejściowy do touchscreenów WM97xx dla DirectFB. |
332 | ||
84ec87b6 JB |
333 | %package image-imlib2 |
334 | Summary: Imlib2 image provider for DirectFB | |
335 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę Imlib2 | |
336 | Group: Libraries | |
337 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
338 | ||
339 | %description image-imlib2 | |
340 | This package contains Imlib2 image provider for DirectFB. | |
341 | ||
342 | %description image-imlib2 -l pl.UTF-8 | |
343 | Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę Imlib2. | |
344 | ||
345 | %package image-jpeg | |
346 | Summary: JPEG image provider for DirectFB | |
347 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę JPEG | |
348 | Group: Libraries | |
349 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
350 | ||
351 | %description image-jpeg | |
352 | This package contains JPEG image provider for DirectFB. | |
353 | ||
354 | %description image-jpeg -l pl.UTF-8 | |
355 | Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę JPEG. | |
356 | ||
357 | %package image-jpeg2000 | |
358 | Summary: JPEG2000 image provider for DirectFB | |
359 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę JPEG2000 | |
360 | Group: Libraries | |
361 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
362 | ||
363 | %description image-jpeg2000 | |
364 | This package contains JPEG2000 image provider for DirectFB (based on | |
365 | jasper library). | |
366 | ||
367 | %description image-jpeg2000 -l pl.UTF-8 | |
368 | Ten pakiet zawiera wtyczkę dla DirectFB, opartą na bibliotece jasper, | |
369 | dostarczającą grafikę JPEG2000. | |
370 | ||
371 | %package image-png | |
372 | Summary: PNG image provider for DirectFB | |
373 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę PNG | |
374 | Group: Libraries | |
375 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
376 | Requires: libpng >= 2:1.4.0 | |
377 | ||
378 | %description image-png | |
379 | This package contains PNG image provider for DirectFB. | |
380 | ||
381 | %description image-png -l pl.UTF-8 | |
382 | Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę PNG. | |
383 | ||
384 | %package image-svg | |
385 | Summary: SVG image provider for DirectFB | |
386 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę SVG | |
387 | Group: Libraries | |
388 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
389 | Requires: libsvg-cairo >= 0.1.6 | |
390 | ||
391 | %description image-svg | |
392 | This package contains SVG image provider for DirectFB, based on Cairo | |
393 | library. | |
394 | ||
395 | %description image-svg -l pl.UTF-8 | |
396 | Ten pakiet zawiera wtyczkę dla DirectFB, opartą na bibliotece Cairo, | |
397 | dostarczającą grafikę SVG. | |
398 | ||
399 | %package video-mng | |
400 | Summary: MNG video provider for DirectFB | |
401 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca animacje MNG | |
402 | Group: Libraries | |
403 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
404 | ||
405 | %description video-mng | |
406 | This package contains MNG video provider for DirectFB. | |
407 | ||
408 | %description video-mng -l pl.UTF-8 | |
409 | Ten pakiet zawiera wtyczkę dla DirectFB, dostarczającą animacje MNG. | |
410 | ||
b97730cd | 411 | %prep |
bb829f4a | 412 | %setup -q -a1 |
caa11f9b | 413 | %patch0 -p1 |
6937d70e | 414 | %patch1 -p1 |
d9652db7 JB |
415 | %patch2 -p1 |
416 | %patch3 -p1 | |
e92bfe87 | 417 | %patch4 -p1 |
84ec87b6 JB |
418 | %patch5 -p1 |
419 | %patch6 -p1 | |
805046f4 | 420 | %patch7 -p1 |
b97730cd | 421 | |
84ec87b6 JB |
422 | # video drivers |
423 | %{__sed} -i -e 's/checkfor_\(cle266\|cyber5k\|radeon\|savage\|unichrome\|vmware\)=no/checkfor_\1=yes/' configure.in | |
424 | # input drivers | |
425 | %{__sed} -i -e 's/checkfor_\(dynapro\|elo\|gunze\)=no/checkfor_\1=yes/' configure.in | |
bb7da712 | 426 | |
b97730cd | 427 | %build |
841e5017 | 428 | %{__libtoolize} |
b3a13aad | 429 | %{__aclocal} -I m4 |
4a64870b | 430 | %{__autoconf} |
b3a13aad | 431 | %{__autoheader} |
bb829f4a | 432 | %{__automake} |
32d034f8 | 433 | # MMX and SSE are detected at runtime, so it's safe to enable |
bb829f4a | 434 | %configure \ |
d9652db7 | 435 | %{!?debug:--disable-debug} \ |
055ea81c | 436 | --disable-maintainer-mode \ |
84ec87b6 | 437 | --disable-silent-rules \ |
c61914f8 | 438 | --enable-fast-install \ |
a86e3925 | 439 | %{?with_multi:--enable-multi} \ |
805046f4 | 440 | %{?with_one:--enable-one} \ |
c61914f8 | 441 | --enable-sdl \ |
d9652db7 JB |
442 | --enable-shared \ |
443 | --enable-static \ | |
444 | --enable-unique \ | |
445 | --enable-video4linux2 \ | |
446 | --enable-voodoo \ | |
b737ab1d | 447 | --enable-x11 \ |
d9652db7 | 448 | --enable-zlib \ |
e92bfe87 | 449 | %ifarch %{ix86} %{x8664} |
98afd923 | 450 | %ifnarch i386 i486 |
32d034f8 JB |
451 | --enable-mmx \ |
452 | %endif | |
98afd923 | 453 | %ifnarch i386 i486 i586 |
b80e2d72 | 454 | --enable-sse \ |
bb829f4a | 455 | %endif |
98afd923 | 456 | %endif |
cd8353f7 | 457 | --with-smooth-scaling \ |
27d0b85e | 458 | %{!?with_static_libs:--disable-static} |
303025bb | 459 | |
6a063a1f | 460 | %{__make} -j1 \ |
b80e2d72 JB |
461 | X11_CFLAGS= \ |
462 | X11_LIBS="-lX11 -lXext" | |
b97730cd | 463 | |
464 | %install | |
465 | rm -rf $RPM_BUILD_ROOT | |
b737ab1d | 466 | install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}} |
c4ab922f | 467 | |
6a063a1f | 468 | %{__make} -j1 install \ |
c4ab922f PG |
469 | DESTDIR=$RPM_BUILD_ROOT |
470 | ||
bb829f4a JB |
471 | cp -rf DFBTutorials* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
472 | ||
cc3bbc38 | 473 | touch $RPM_BUILD_ROOT%{_sysconfdir}/directfbrc |
b737ab1d | 474 | |
7209bb84 JB |
475 | %clean |
476 | rm -rf $RPM_BUILD_ROOT | |
477 | ||
bb829f4a JB |
478 | %post -p /sbin/ldconfig |
479 | %postun -p /sbin/ldconfig | |
b97730cd | 480 | |
b97730cd | 481 | %files |
303025bb | 482 | %defattr(644,root,root,755) |
0a93b064 | 483 | %doc AUTHORS ChangeLog NEWS README TODO |
a86e3925 | 484 | %attr(755,root,root) %{_bindir}/dfbdump |
b3a13aad | 485 | %attr(755,root,root) %{_bindir}/dfbfx |
a86e3925 | 486 | %attr(755,root,root) %{_bindir}/dfbg |
ac9e29cd | 487 | %attr(755,root,root) %{_bindir}/dfbinfo |
b80e2d72 | 488 | %attr(755,root,root) %{_bindir}/dfbinput |
b3a13aad | 489 | %attr(755,root,root) %{_bindir}/dfbinspector |
d9652db7 | 490 | %attr(755,root,root) %{_bindir}/dfblayer |
b3a13aad | 491 | %attr(755,root,root) %{_bindir}/dfbmaster |
b80e2d72 | 492 | %attr(755,root,root) %{_bindir}/dfbpenmount |
d9652db7 JB |
493 | %attr(755,root,root) %{_bindir}/dfbproxy |
494 | %attr(755,root,root) %{_bindir}/dfbscreen | |
b775b9bd JB |
495 | %attr(755,root,root) %{_bindir}/mkdfiff |
496 | %attr(755,root,root) %{_bindir}/mkdgiff | |
cd8353f7 JB |
497 | %attr(755,root,root) %{_bindir}/mkdgifft |
498 | %attr(755,root,root) %{_bindir}/pxa3xx_dump | |
d9652db7 | 499 | %attr(755,root,root) %{_bindir}/uwmdump |
cd8353f7 | 500 | %attr(755,root,root) %{_bindir}/voodooplay |
84ec87b6 JB |
501 | %attr(755,root,root) %{_bindir}/voodooplay_client |
502 | %attr(755,root,root) %{_bindir}/voodooplay_server | |
503 | %attr(755,root,root) %{_libdir}/libdirect-1.6.so.*.*.* | |
504 | %attr(755,root,root) %ghost %{_libdir}/libdirect-1.6.so.0 | |
505 | %attr(755,root,root) %{_libdir}/libdirectfb-1.6.so.*.*.* | |
506 | %attr(755,root,root) %ghost %{_libdir}/libdirectfb-1.6.so.0 | |
507 | %attr(755,root,root) %{_libdir}/libfusion-1.6.so.*.*.* | |
508 | %attr(755,root,root) %ghost %{_libdir}/libfusion-1.6.so.0 | |
805046f4 JB |
509 | %if %{with one} |
510 | %attr(755,root,root) %{_libdir}/libone-1.6.so.*.*.* | |
511 | %attr(755,root,root) %ghost %{_libdir}/libone-1.6.so.0 | |
512 | %endif | |
84ec87b6 JB |
513 | %attr(755,root,root) %{_libdir}/libuniquewm-1.6.so.*.*.* |
514 | %attr(755,root,root) %ghost %{_libdir}/libuniquewm-1.6.so.0 | |
515 | %attr(755,root,root) %{_libdir}/libvoodoo-1.6.so.*.*.* | |
516 | %attr(755,root,root) %ghost %{_libdir}/libvoodoo-1.6.so.0 | |
b621b93e JB |
517 | %dir %{dfbdir} |
518 | %dir %{dfbdir}/gfxdrivers | |
bb7da712 JB |
519 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_ati128.so |
520 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_cle266.so | |
521 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_cyber5k.so | |
522 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_ep9x.so | |
523 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_gl.so | |
524 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_i810.so | |
525 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_i830.so | |
526 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_mach64.so | |
527 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_matrox.so | |
528 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_neomagic.so | |
529 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_nsc.so | |
530 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_nvidia.so | |
531 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_pxa3xx.so | |
532 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_radeon.so | |
533 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_savage.so | |
534 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_sdlgraphics.so | |
535 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_sis315.so | |
536 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_tdfx.so | |
537 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_unichrome.so | |
538 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_vmware.so | |
84ec87b6 JB |
539 | %ifarch arm |
540 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_davinci.so | |
541 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_omap.so | |
542 | %endif | |
b621b93e | 543 | %dir %{dfbdir}/inputdrivers |
84ec87b6 | 544 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_input_hub.so |
c61914f8 JB |
545 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_joystick.so |
546 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_keyboard.so | |
d9652db7 | 547 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_linux_input.so |
c61914f8 | 548 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_lirc.so |
b775b9bd | 549 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_penmount.so |
c61914f8 JB |
550 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ps2mouse.so |
551 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_serialmouse.so | |
552 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sonypi.so | |
cd8353f7 | 553 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_zytronic.so |
b621b93e | 554 | %dir %{dfbdir}/interfaces |
792eb3b9 JB |
555 | %dir %{dfbdir}/interfaces/ICoreResourceManager |
556 | %attr(755,root,root) %{dfbdir}/interfaces/ICoreResourceManager/libicoreresourcemanager_test.so | |
d9652db7 JB |
557 | %dir %{dfbdir}/interfaces/IDirectFB |
558 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFB/lib*.so | |
559 | %dir %{dfbdir}/interfaces/IDirectFBDataBuffer | |
560 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBDataBuffer/lib*.so | |
561 | %dir %{dfbdir}/interfaces/IDirectFBDisplayLayer | |
562 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBDisplayLayer/lib*.so | |
563 | %dir %{dfbdir}/interfaces/IDirectFBEventBuffer | |
564 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBEventBuffer/lib*.so | |
b621b93e | 565 | %dir %{dfbdir}/interfaces/IDirectFBFont |
b775b9bd | 566 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_dgiff.so |
d9652db7 JB |
567 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_dispatcher.so |
568 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_requestor.so | |
b621b93e | 569 | %dir %{dfbdir}/interfaces/IDirectFBImageProvider |
84ec87b6 | 570 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_bmp.so |
b775b9bd | 571 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_dfiff.so |
d9652db7 | 572 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_dispatcher.so |
41033e4b | 573 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.so |
84ec87b6 JB |
574 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_mpeg2.so |
575 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_pnm.so | |
d9652db7 JB |
576 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_requestor.so |
577 | %dir %{dfbdir}/interfaces/IDirectFBInputDevice | |
578 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBInputDevice/lib*.so | |
579 | %dir %{dfbdir}/interfaces/IDirectFBPalette | |
580 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBPalette/lib*.so | |
581 | %dir %{dfbdir}/interfaces/IDirectFBScreen | |
582 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBScreen/lib*.so | |
583 | %dir %{dfbdir}/interfaces/IDirectFBSurface | |
584 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBSurface/lib*.so | |
b621b93e | 585 | %dir %{dfbdir}/interfaces/IDirectFBVideoProvider |
b775b9bd | 586 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_gif.so |
bf0cc7cf | 587 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_v4l.so |
d9652db7 JB |
588 | %dir %{dfbdir}/interfaces/IDirectFBWindow |
589 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBWindow/lib*.so | |
84ec87b6 JB |
590 | %dir %{dfbdir}/interfaces/IDirectFBWindows |
591 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBWindows/lib*.so | |
592 | %dir %{dfbdir}/interfaces/IWater | |
593 | %attr(755,root,root) %{dfbdir}/interfaces/IWater/lib*.so | |
8457d9fb | 594 | %dir %{dfbdir}/systems |
b3a13aad | 595 | %attr(755,root,root) %{dfbdir}/systems/libdirectfb_devmem.so |
cd8353f7 | 596 | %attr(755,root,root) %{dfbdir}/systems/libdirectfb_dummy.so |
8457d9fb | 597 | %attr(755,root,root) %{dfbdir}/systems/libdirectfb_fbdev.so |
d9652db7 | 598 | %dir %{dfbdir}/wm |
cd8353f7 | 599 | %attr(755,root,root) %{dfbdir}/wm/lib*.so |
b775b9bd | 600 | %{_datadir}/directfb-%{version} |
b737ab1d | 601 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/directfbrc |
a86e3925 | 602 | %{_mandir}/man1/dfbg.1* |
b3a13aad | 603 | %{_mandir}/man5/directfbrc.5* |
340488a1 | 604 | |
605 | %files devel | |
303025bb | 606 | %defattr(644,root,root,755) |
4996377e | 607 | %attr(755,root,root) %{_bindir}/directfb-config |
e9f43c92 | 608 | %attr(755,root,root) %{_bindir}/directfb-csource |
d9652db7 JB |
609 | %attr(755,root,root) %{_libdir}/libdirect.so |
610 | %attr(755,root,root) %{_libdir}/libdirectfb.so | |
611 | %attr(755,root,root) %{_libdir}/libfusion.so | |
805046f4 | 612 | %{?with_one:%attr(755,root,root) %{_libdir}/libone.so} |
d9652db7 JB |
613 | %attr(755,root,root) %{_libdir}/libuniquewm.so |
614 | %attr(755,root,root) %{_libdir}/libvoodoo.so | |
615 | %{_libdir}/libdirect.la | |
616 | %{_libdir}/libdirectfb.la | |
617 | %{_libdir}/libfusion.la | |
805046f4 | 618 | %{?with_one:%{_libdir}/libone.la} |
d9652db7 JB |
619 | %{_libdir}/libuniquewm.la |
620 | %{_libdir}/libvoodoo.la | |
bb829f4a | 621 | %{_includedir}/directfb |
7b3020ed | 622 | %{_includedir}/directfb-internal |
b3a13aad JB |
623 | %{_pkgconfigdir}/direct.pc |
624 | %{_pkgconfigdir}/directfb-internal.pc | |
625 | %{_pkgconfigdir}/directfb.pc | |
626 | %{_pkgconfigdir}/fusion.pc | |
805046f4 | 627 | %{?with_one:%{_pkgconfigdir}/one.pc} |
b3a13aad | 628 | %{_pkgconfigdir}/voodoo.pc |
e9f43c92 | 629 | %{_mandir}/man1/directfb-csource.1* |
055ea81c | 630 | |
27d0b85e | 631 | %if %{with static_libs} |
bb829f4a JB |
632 | %files static |
633 | %defattr(644,root,root,755) | |
bb7da712 JB |
634 | %{_libdir}/libdirect.a |
635 | %{_libdir}/libdirectfb.a | |
636 | %{_libdir}/libfusion.a | |
805046f4 | 637 | %{?with_one:%{_libdir}/libone.a} |
bb7da712 JB |
638 | %{_libdir}/libuniquewm.a |
639 | %{_libdir}/libvoodoo.a | |
e9c71960 JB |
640 | %{dfbdir}/gfxdrivers/*.[alo]* |
641 | %{dfbdir}/inputdrivers/*.[alo]* | |
642 | %{dfbdir}/interfaces/*/*.[alo]* | |
643 | %{dfbdir}/systems/*.[alo]* | |
644 | %{dfbdir}/wm/*.[alo]* | |
27d0b85e | 645 | %endif |
bb829f4a | 646 | |
340488a1 | 647 | %files doc |
303025bb | 648 | %defattr(644,root,root,755) |
201f3399 | 649 | %doc docs/html/*.{html,png} |
bb829f4a JB |
650 | %{_examplesdir}/%{name}-%{version} |
651 | ||
84ec87b6 JB |
652 | %files core-mesa |
653 | %defattr(644,root,root,755) | |
654 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_gles2.so | |
655 | %attr(755,root,root) %{dfbdir}/systems/libdirectfb_mesa_system.so | |
656 | ||
c61914f8 JB |
657 | %files core-sdl |
658 | %defattr(644,root,root,755) | |
659 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sdlinput.so | |
660 | %attr(755,root,root) %{dfbdir}/systems/libdirectfb_sdl.so | |
661 | ||
84ec87b6 JB |
662 | %files core-vdpau |
663 | %defattr(644,root,root,755) | |
664 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_vdpau.so | |
665 | %attr(755,root,root) %{dfbdir}/systems/libdirectfb_x11vdpau.so | |
666 | ||
b737ab1d JB |
667 | %files core-vnc |
668 | %defattr(644,root,root,755) | |
b737ab1d JB |
669 | %attr(755,root,root) %{dfbdir}/systems/libdirectfb_vnc.so |
670 | ||
671 | %files core-x11 | |
672 | %defattr(644,root,root,755) | |
673 | %doc systems/x11/README | |
b737ab1d JB |
674 | %attr(755,root,root) %{dfbdir}/systems/libdirectfb_x11.so |
675 | ||
b621b93e JB |
676 | %files font-ft2 |
677 | %defattr(644,root,root,755) | |
41033e4b | 678 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_ft2.so |
b621b93e | 679 | |
bb7da712 JB |
680 | %if %{with sh772x} |
681 | %files gfx-sh772x | |
682 | %defattr(644,root,root,755) | |
683 | %attr(755,root,root) %{dfbdir}/gfxdrivers/libdirectfb_sh772x.so | |
684 | %endif | |
685 | ||
b775b9bd JB |
686 | %files input-dynapro |
687 | %defattr(644,root,root,755) | |
688 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_dynapro.so | |
689 | ||
639e9568 JB |
690 | %files input-elo |
691 | %defattr(644,root,root,755) | |
692 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_elo.so | |
693 | ||
b775b9bd JB |
694 | %files input-gunze |
695 | %defattr(644,root,root,755) | |
696 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_gunze.so | |
697 | ||
639e9568 JB |
698 | %files input-mutouch |
699 | %defattr(644,root,root,755) | |
700 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_mutouch.so | |
b775b9bd | 701 | |
b3a13aad JB |
702 | %files input-tslib |
703 | %defattr(644,root,root,755) | |
704 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_tslib.so | |
705 | ||
84ec87b6 | 706 | %ifarch arm |
b775b9bd JB |
707 | %files input-ucb1x00 |
708 | %defattr(644,root,root,755) | |
709 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ucb1x00_ts.so | |
84ec87b6 | 710 | %endif |
b775b9bd JB |
711 | |
712 | %files input-wm97xx | |
713 | %defattr(644,root,root,755) | |
714 | %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_wm97xx_ts.so | |
84ec87b6 JB |
715 | |
716 | %files image-imlib2 | |
717 | %defattr(644,root,root,755) | |
718 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_imlib2.so | |
719 | ||
720 | %files image-jpeg | |
721 | %defattr(644,root,root,755) | |
722 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.so | |
723 | ||
724 | %files image-jpeg2000 | |
725 | %defattr(644,root,root,755) | |
726 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg2000.so | |
727 | ||
728 | %files image-png | |
729 | %defattr(644,root,root,755) | |
730 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.so | |
731 | ||
732 | %files image-svg | |
733 | %defattr(644,root,root,755) | |
734 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_svg.so | |
735 | ||
736 | %files video-mng | |
737 | %defattr(644,root,root,755) | |
738 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_mng.so |