3 %bcond_with multi # build Multi-application core (requires working /dev/fusion*)
4 %bcond_without static_libs # don't build static libraries
6 Summary: DirectFB - Hardware graphics acceleration
7 Summary(pl.UTF-8): DirectFB - Wspomaganie grafiki
14 Source0: http://www.directfb.org/downloads/Core/%{name}-%{version}.tar.gz
15 # Source0-md5: 000a047651f06b0e4a8747697cd1ad4d
16 Source1: http://www.directfb.org/downloads/Extras/DFBTutorials-0.5.0.tar.gz
17 # Source1-md5: 13e443a64bddd68835b574045d9025e9
18 Patch0: %{name}-am.patch
19 Patch1: %{name}-pmake.patch
20 Patch2: %{name}-fix.patch
21 Patch3: %{name}-gcc4.patch
22 Patch4: %{name}-llh-ppc.patch
23 Patch5: %{name}-link.patch
24 URL: http://www.directfb.org/
25 BuildRequires: SDL-devel
26 BuildRequires: autoconf >= 2.52
27 BuildRequires: automake
28 BuildRequires: freetype-devel >= 2.0.2
29 BuildRequires: libjpeg-devel >= 6b
30 BuildRequires: libpng-devel >= 1.0
31 BuildRequires: libtool
32 BuildRequires: libvncserver-devel
33 %{?with_multi:BuildRequires: linux-fusion-devel >= 8.0}
34 %{?with_multi:BuildRequires: linux-fusion-devel < 9}
35 BuildRequires: sed >= 4.0
36 BuildRequires: sysfsutils-devel >= 1.3.0-3
37 BuildRequires: tslib-devel >= 0.0.2
38 BuildRequires: xorg-lib-libXext-devel
39 BuildRequires: zlib-devel >= 1.1.3
40 %{?with_multi:Provides: DirectFB(multi)}
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 %define dfbdir %{_libdir}/directfb-1.3-0
45 %define specflags -fno-strict-aliasing
48 # gcc running out of registers with -O0 in generic_mmx.h
49 %define debugcflags -O1 -g
53 DirectFB hardware graphics acceleration - libraries.
55 %description -l pl.UTF-8
56 Wspomaganie grafiki DirectFB - biblioteki.
59 Summary: DirectFB - development package
60 Summary(pl.UTF-8): DirectFB - pliki nagłówkowe
61 Group: Development/Libraries
62 Requires: %{name} = %{epoch}:%{version}-%{release}
63 Requires: zlib-devel >= 1.1.3
66 DirectFB header files.
68 %description devel -l pl.UTF-8
69 Pliki nagłówkowe dla DirectFB.
72 Summary: DirectFB static libraries
73 Summary(pl.UTF-8): Statyczne biblioteki DirectFB
74 Group: Development/Libraries
75 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
78 DirectFB static libraries.
80 %description static -l pl.UTF-8
81 Statyczne biblioteki DirectFB.
84 Summary: DirectFB - documentation
85 Summary(pl.UTF-8): DirectFB - dokumentacja
89 DirectFB documentation and tutorials.
91 %description doc -l pl.UTF-8
92 Dokumentacja dla systemu DirectFB wraz z wprowadzeniem.
95 Summary: SDL core system for DirectFB
96 Summary(pl.UTF-8): System SDL dla DirectFB
98 Requires: %{name} = %{epoch}:%{version}-%{release}
100 %description core-sdl
101 This package contains SDL core system module for DirectFB.
103 %description core-sdl -l pl.UTF-8
104 Ten pakiet zawiera moduł systemu SDL dla DirectFB.
107 Summary: VNC core system for DirectFB
108 Summary(pl.UTF-8): System VNC dla DirectFB
110 Requires: %{name} = %{epoch}:%{version}-%{release}
112 %description core-vnc
113 This package contains VNC core system module for DirectFB.
115 %description core-vnc -l pl.UTF-8
116 Ten pakiet zawiera moduł systemu VNC dla DirectFB.
119 Summary: X11 core system for DirectFB
120 Summary(pl.UTF-8): System X11 dla DirectFB
122 Requires: %{name} = %{epoch}:%{version}-%{release}
124 %description core-x11
125 This package contains X11 core system module for DirectFB.
127 %description core-x11 -l pl.UTF-8
128 Ten pakiet zawiera moduł systemu X11 dla DirectFB.
131 Summary: FreeType2 font provider for DirectFB
132 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca fonty poprzez FreeType2
134 Requires: %{name} = %{epoch}:%{version}-%{release}
136 %description font-ft2
137 This package contains FreeType2 font provider for DirectFB.
139 %description font-ft2 -l pl.UTF-8
140 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą fonty poprzez
141 bibliotekę FreeType2.
144 Summary: JPEG image provider for DirectFB
145 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę JPEG
147 Requires: %{name} = %{epoch}:%{version}-%{release}
149 %description image-jpeg
150 This package contains JPEG image provider for DirectFB.
152 %description image-jpeg -l pl.UTF-8
153 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę JPEG.
156 Summary: PNG image provider for DirectFB
157 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę PNG
159 Requires: %{name} = %{epoch}:%{version}-%{release}
161 %description image-png
162 This package contains PNG image provider for DirectFB.
164 %description image-png -l pl.UTF-8
165 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę PNG.
167 %package input-dynapro
168 Summary: Dynapro touchscreen input driver for DirectFB
169 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów Dynapro dla DirectFB
171 Requires: %{name} = %{epoch}:%{version}-%{release}
173 %description input-dynapro
174 Dynapro touchscreen input driver for DirectFB.
176 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
177 unless you don't have Dynapro device connected to this port. It can
178 mess with other devices connected to this port (mouse, modem etc.).
180 %description input-dynapro -l pl.UTF-8
181 Sterownik wejściowy do touchscreenów Dynapro dla DirectFB.
183 UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc
184 nie należy go instalować, jeśli urządzenie Dynapro nie jest podłączone
185 do tego portu. Sterownik może utrudnić współpracę z innymi
186 urządzeniami podłączonymi do /dev/ttyS0 (jak mysz, modem itp.).
189 Summary: ELO touchscreen input driver for DirectFB
190 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów ELO dla DirectFB
192 Requires: %{name} = %{epoch}:%{version}-%{release}
194 %description input-elo
195 ELO touchscreen input driver for DirectFB.
197 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
198 unless you have ELO device connected to this port. It can mess with
199 other devices connected to this port (mouse, modem etc.).
201 %description input-elo -l pl.UTF-8
202 Sterownik wejściowy do touchscreenów ELO dla DirectFB.
204 UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc
205 nie należy go instalować, jeśli urządzenie ELO nie jest podłączone do
206 tego portu. Sterownik może utrudnić współpracę z innymi urządzeniami
207 podłączonymi do /dev/ttyS0 (jak mysz, modem itp.).
210 Summary: Gunze touchscreen input driver for DirectFB
211 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów Gunze dla DirectFB
213 Requires: %{name} = %{epoch}:%{version}-%{release}
215 %description input-gunze
216 Gunze touchscreen input driver for DirectFB.
218 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
219 unless you don't have Gunze device connected to this port. It can mess
220 with other devices connected to this port (mouse, modem etc.).
222 %description input-gunze -l pl.UTF-8
223 Sterownik wejściowy do touchscreenów Gunze dla DirectFB.
225 UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc
226 nie należy go instalować, jeśli urządzenie Gunze nie jest podłączone
227 do tego portu. Sterownik może utrudnić współpracę z innymi
228 urządzeniami podłączonymi do /dev/ttyS0 (jak mysz, modem itp.).
230 %package input-mutouch
231 Summary: MuTouch touchscreen input driver for DirectFB
232 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów MuTouch dla DirectFB
234 Requires: %{name} = %{epoch}:%{version}-%{release}
236 %description input-mutouch
237 MuTouch touchscreen input driver for DirectFB.
239 NOTE: it needs "mut-device" setting in directfbrc in order to work.
241 %description input-mutouch -l pl.UTF-8
242 Sterownik wejściowy do touchscreenów MuTouch dla DirectFB.
244 UWAGA: do działania potrzebuje ustawienia "mut-device" w directfbrc.
247 Summary: tslib-based touchscreen input driver for DirectFB
248 Summary(pl.UTF-8): Oparty na tslib sterownik wejściowy do touchscreenów dla DirectFB
250 Requires: %{name} = %{epoch}:%{version}-%{release}
252 %description input-tslib
253 tslib-based touchscreen input driver for DirectFB
255 %description input-tslib -l pl.UTF-8
256 Oparty na tslib sterownik wejściowy do touchscreenów dla DirectFB.
258 %package input-ucb1x00
259 Summary: UCB1x00 touchscreen input driver for DirectFB
260 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów UCB1x00 dla DirectFB
262 Requires: %{name} = %{epoch}:%{version}-%{release}
264 %description input-ucb1x00
265 UCB1x00 touchscreen input driver for DirectFB.
267 %description input-ucb1x00 -l pl.UTF-8
268 Sterownik wejściowy do touchscreenów UCB1x00 dla DirectFB.
270 %package input-wm97xx
271 Summary: WM97xx touchscreen input driver for DirectFB
272 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów WM97xx dla DirectFB
274 Requires: %{name} = %{epoch}:%{version}-%{release}
276 %description input-wm97xx
277 WM97xx touchscreen input driver for DirectFB.
279 %description input-wm97xx -l pl.UTF-8
280 Sterownik wejściowy do touchscreenów WM97xx dla DirectFB.
297 # MMX and SSE are detected at runtime, so it's safe to enable
299 %{!?debug:--disable-debug} \
300 --disable-maintainer-mode \
301 --enable-fast-install \
302 %{?with_multi:--enable-multi} \
307 --enable-video4linux2 \
311 %ifarch %{ix86} %{x8664}
315 %ifnarch i386 i486 i586
319 --with-inputdrivers=dbox2remote,dreamboxremote,dynapro,elo-input,gunze,joystick,keyboard,linuxinput,lirc,mutouch,penmount,ps2mouse,serialmouse,sonypijogdial,tslib,ucb1x00,wm97xx \
320 %{!?with_static_libs:--disable-static}
324 X11_LIBS="-lX11 -lXext"
327 rm -rf $RPM_BUILD_ROOT
328 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}}
331 DESTDIR=$RPM_BUILD_ROOT
333 cp -rf DFBTutorials* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
335 touch $RPM_BUILD_ROOT%{_sysconfdir}/directfbrc
338 rm -rf $RPM_BUILD_ROOT
340 %post -p /sbin/ldconfig
341 %postun -p /sbin/ldconfig
344 %defattr(644,root,root,755)
345 %doc AUTHORS ChangeLog NEWS README TODO
346 %attr(755,root,root) %{_bindir}/dfbdump
347 %attr(755,root,root) %{_bindir}/dfbfx
348 %attr(755,root,root) %{_bindir}/dfbg
349 %attr(755,root,root) %{_bindir}/dfbinfo
350 %attr(755,root,root) %{_bindir}/dfbinput
351 %attr(755,root,root) %{_bindir}/dfbinspector
352 %attr(755,root,root) %{_bindir}/dfblayer
353 %attr(755,root,root) %{_bindir}/dfbmaster
354 %attr(755,root,root) %{_bindir}/dfbpenmount
355 %attr(755,root,root) %{_bindir}/dfbproxy
356 %attr(755,root,root) %{_bindir}/dfbscreen
357 %attr(755,root,root) %{_bindir}/mkdfiff
358 %attr(755,root,root) %{_bindir}/mkdgiff
359 %attr(755,root,root) %{_bindir}/uwmdump
360 %attr(755,root,root) %{_libdir}/libdirect-1.3.so.*.*.*
361 %attr(755,root,root) %ghost %{_libdir}/libdirect-1.3.so.0
362 %attr(755,root,root) %{_libdir}/libdirectfb-1.3.so.*.*.*
363 %attr(755,root,root) %ghost %{_libdir}/libdirectfb-1.3.so.0
364 %attr(755,root,root) %{_libdir}/libfusion-1.3.so.*.*.*
365 %attr(755,root,root) %ghost %{_libdir}/libfusion-1.3.so.0
366 %attr(755,root,root) %{_libdir}/libuniquewm-1.3.so.*.*.*
367 %attr(755,root,root) %ghost %{_libdir}/libuniquewm-1.3.so.0
368 %attr(755,root,root) %{_libdir}/libvoodoo-1.3.so.*.*.*
369 %attr(755,root,root) %ghost %{_libdir}/libvoodoo-1.3.so.0
371 %dir %{dfbdir}/gfxdrivers
372 %attr(755,root,root) %{dfbdir}/gfxdrivers/*.so
373 %dir %{dfbdir}/inputdrivers
374 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_joystick.so
375 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_keyboard.so
376 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_linux_input.so
377 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_lirc.so
378 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_penmount.so
379 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ps2mouse.so
380 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_serialmouse.so
381 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sonypi.so
382 %dir %{dfbdir}/interfaces
383 %dir %{dfbdir}/interfaces/IDirectFB
384 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFB/lib*.so
385 %dir %{dfbdir}/interfaces/IDirectFBDataBuffer
386 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBDataBuffer/lib*.so
387 %dir %{dfbdir}/interfaces/IDirectFBDisplayLayer
388 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBDisplayLayer/lib*.so
389 %dir %{dfbdir}/interfaces/IDirectFBEventBuffer
390 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBEventBuffer/lib*.so
391 %dir %{dfbdir}/interfaces/IDirectFBFont
392 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_default.so
393 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_dgiff.so
394 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_dispatcher.so
395 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_requestor.so
396 %dir %{dfbdir}/interfaces/IDirectFBImageProvider
397 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_dfiff.so
398 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_dispatcher.so
399 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.so
400 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_requestor.so
401 %dir %{dfbdir}/interfaces/IDirectFBInputDevice
402 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBInputDevice/lib*.so
403 %dir %{dfbdir}/interfaces/IDirectFBPalette
404 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBPalette/lib*.so
405 %dir %{dfbdir}/interfaces/IDirectFBScreen
406 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBScreen/lib*.so
407 %dir %{dfbdir}/interfaces/IDirectFBSurface
408 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBSurface/lib*.so
409 %dir %{dfbdir}/interfaces/IDirectFBVideoProvider
410 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_gif.so
411 %dir %{dfbdir}/interfaces/IDirectFBWindow
412 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBWindow/lib*.so
413 %dir %{dfbdir}/systems
414 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_devmem.so
415 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_fbdev.so
417 %attr(755,root,root) %{dfbdir}/wm/*.so
418 %{_datadir}/directfb-%{version}
419 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/directfbrc
420 %{_mandir}/man1/dfbg.1*
421 %{_mandir}/man5/directfbrc.5*
424 %defattr(644,root,root,755)
425 %attr(755,root,root) %{_bindir}/directfb-config
426 %attr(755,root,root) %{_bindir}/directfb-csource
427 %attr(755,root,root) %{_libdir}/libdirect.so
428 %attr(755,root,root) %{_libdir}/libdirectfb.so
429 %attr(755,root,root) %{_libdir}/libfusion.so
430 %attr(755,root,root) %{_libdir}/libuniquewm.so
431 %attr(755,root,root) %{_libdir}/libvoodoo.so
432 %{_libdir}/libdirect.la
433 %{_libdir}/libdirectfb.la
434 %{_libdir}/libfusion.la
435 %{_libdir}/libuniquewm.la
436 %{_libdir}/libvoodoo.la
437 %{_includedir}/directfb
438 %{_includedir}/directfb-internal
439 %{_pkgconfigdir}/direct.pc
440 %{_pkgconfigdir}/directfb-internal.pc
441 %{_pkgconfigdir}/directfb.pc
442 %{_pkgconfigdir}/fusion.pc
443 %{_pkgconfigdir}/voodoo.pc
444 %{_mandir}/man1/directfb-csource.1*
446 %if %{with static_libs}
448 %defattr(644,root,root,755)
450 %{dfbdir}/gfxdrivers/*.[alo]*
451 %{dfbdir}/inputdrivers/*.[alo]*
452 %{dfbdir}/interfaces/*/*.[alo]*
453 %{dfbdir}/systems/*.[alo]*
454 %{dfbdir}/wm/*.[alo]*
458 %defattr(644,root,root,755)
459 %doc docs/html/*.{html,png}
460 %{_examplesdir}/%{name}-%{version}
463 %defattr(644,root,root,755)
464 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sdlinput.so
465 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_sdl.so
468 %defattr(644,root,root,755)
469 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_vncinput.so
470 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_vnc.so
473 %defattr(644,root,root,755)
474 %doc systems/x11/README
475 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_x11.so
478 %defattr(644,root,root,755)
479 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_ft2.so
482 %defattr(644,root,root,755)
483 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.so
486 %defattr(644,root,root,755)
487 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.so
490 %defattr(644,root,root,755)
491 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_dynapro.so
494 %defattr(644,root,root,755)
495 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_elo.so
498 %defattr(644,root,root,755)
499 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_gunze.so
502 %defattr(644,root,root,755)
503 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_mutouch.so
506 %defattr(644,root,root,755)
507 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_tslib.so
510 %defattr(644,root,root,755)
511 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ucb1x00_ts.so
514 %defattr(644,root,root,755)
515 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_wm97xx_ts.so