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/DirectFB-1.4/%{name}-%{version}.tar.gz
15 # Source0-md5: 94735ccec21120794adcce93a61445d2
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 URL: http://www.directfb.org/
24 BuildRequires: OpenGL-devel
25 BuildRequires: OpenGL-GLX-devel
26 BuildRequires: SDL-devel
27 BuildRequires: autoconf >= 2.52
28 BuildRequires: automake
29 BuildRequires: freetype-devel >= 2.0.2
30 BuildRequires: libjpeg-devel >= 6b
31 BuildRequires: libpng-devel >= 2:1.4.0
32 BuildRequires: libstdc++-devel
33 BuildRequires: libtool
34 BuildRequires: libvncserver-devel
35 %{?with_multi:BuildRequires: linux-fusion-devel >= 8.0}
36 %{?with_multi:BuildRequires: linux-fusion-devel < 9}
37 BuildRequires: pkgconfig
38 BuildRequires: sed >= 4.0
39 BuildRequires: sysfsutils-devel >= 1.3.0-3
40 BuildRequires: tslib-devel >= 0.0.2
41 BuildRequires: xorg-lib-libXext-devel
42 BuildRequires: zlib-devel >= 1.1.3
43 #BuildRequires: pkgconfig(linotype) -- font provider???
44 %{?with_multi:Provides: DirectFB(multi)}
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 %define dfbdir %{_libdir}/directfb-1.4-5
49 %define specflags -fno-strict-aliasing
52 # gcc running out of registers with -O0 in generic_mmx.h
53 %define debugcflags -O1 -g
57 DirectFB hardware graphics acceleration - libraries.
59 %description -l pl.UTF-8
60 Wspomaganie grafiki DirectFB - biblioteki.
63 Summary: DirectFB - development package
64 Summary(pl.UTF-8): DirectFB - pliki nagłówkowe
65 Group: Development/Libraries
66 Requires: %{name} = %{epoch}:%{version}-%{release}
67 Requires: zlib-devel >= 1.1.3
70 DirectFB header files.
72 %description devel -l pl.UTF-8
73 Pliki nagłówkowe dla DirectFB.
76 Summary: DirectFB static libraries
77 Summary(pl.UTF-8): Statyczne biblioteki DirectFB
78 Group: Development/Libraries
79 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
82 DirectFB static libraries.
84 %description static -l pl.UTF-8
85 Statyczne biblioteki DirectFB.
88 Summary: DirectFB - documentation
89 Summary(pl.UTF-8): DirectFB - dokumentacja
93 DirectFB documentation and tutorials.
95 %description doc -l pl.UTF-8
96 Dokumentacja dla systemu DirectFB wraz z wprowadzeniem.
99 Summary: SDL core system for DirectFB
100 Summary(pl.UTF-8): System SDL dla DirectFB
102 Requires: %{name} = %{epoch}:%{version}-%{release}
104 %description core-sdl
105 This package contains SDL core system module for DirectFB.
107 %description core-sdl -l pl.UTF-8
108 Ten pakiet zawiera moduł systemu SDL dla DirectFB.
111 Summary: VNC core system for DirectFB
112 Summary(pl.UTF-8): System VNC dla DirectFB
114 Requires: %{name} = %{epoch}:%{version}-%{release}
116 %description core-vnc
117 This package contains VNC core system module for DirectFB.
119 %description core-vnc -l pl.UTF-8
120 Ten pakiet zawiera moduł systemu VNC dla DirectFB.
123 Summary: X11 core system for DirectFB
124 Summary(pl.UTF-8): System X11 dla DirectFB
126 Requires: %{name} = %{epoch}:%{version}-%{release}
128 %description core-x11
129 This package contains X11 core system module for DirectFB.
131 %description core-x11 -l pl.UTF-8
132 Ten pakiet zawiera moduł systemu X11 dla DirectFB.
135 Summary: FreeType2 font provider for DirectFB
136 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca fonty poprzez FreeType2
138 Requires: %{name} = %{epoch}:%{version}-%{release}
140 %description font-ft2
141 This package contains FreeType2 font provider for DirectFB.
143 %description font-ft2 -l pl.UTF-8
144 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą fonty poprzez
145 bibliotekę FreeType2.
148 Summary: JPEG image provider for DirectFB
149 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę JPEG
151 Requires: %{name} = %{epoch}:%{version}-%{release}
153 %description image-jpeg
154 This package contains JPEG image provider for DirectFB.
156 %description image-jpeg -l pl.UTF-8
157 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę JPEG.
160 Summary: PNG image provider for DirectFB
161 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę PNG
163 Requires: %{name} = %{epoch}:%{version}-%{release}
165 %description image-png
166 This package contains PNG image provider for DirectFB.
168 %description image-png -l pl.UTF-8
169 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę PNG.
171 %package input-dynapro
172 Summary: Dynapro touchscreen input driver for DirectFB
173 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów Dynapro dla DirectFB
175 Requires: %{name} = %{epoch}:%{version}-%{release}
177 %description input-dynapro
178 Dynapro touchscreen input driver for DirectFB.
180 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
181 unless you don't have Dynapro device connected to this port. It can
182 mess with other devices connected to this port (mouse, modem etc.).
184 %description input-dynapro -l pl.UTF-8
185 Sterownik wejściowy do touchscreenów Dynapro dla DirectFB.
187 UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc
188 nie należy go instalować, jeśli urządzenie Dynapro nie jest podłączone
189 do tego portu. Sterownik może utrudnić współpracę z innymi
190 urządzeniami podłączonymi do /dev/ttyS0 (jak mysz, modem itp.).
193 Summary: ELO touchscreen input driver for DirectFB
194 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów ELO dla DirectFB
196 Requires: %{name} = %{epoch}:%{version}-%{release}
198 %description input-elo
199 ELO touchscreen input driver for DirectFB.
201 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
202 unless you have ELO device connected to this port. It can mess with
203 other devices connected to this port (mouse, modem etc.).
205 %description input-elo -l pl.UTF-8
206 Sterownik wejściowy do touchscreenów ELO dla DirectFB.
208 UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc
209 nie należy go instalować, jeśli urządzenie ELO nie jest podłączone do
210 tego portu. Sterownik może utrudnić współpracę z innymi urządzeniami
211 podłączonymi do /dev/ttyS0 (jak mysz, modem itp.).
214 Summary: Gunze touchscreen input driver for DirectFB
215 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów Gunze dla DirectFB
217 Requires: %{name} = %{epoch}:%{version}-%{release}
219 %description input-gunze
220 Gunze touchscreen input driver for DirectFB.
222 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
223 unless you don't have Gunze device connected to this port. It can mess
224 with other devices connected to this port (mouse, modem etc.).
226 %description input-gunze -l pl.UTF-8
227 Sterownik wejściowy do touchscreenów Gunze dla DirectFB.
229 UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc
230 nie należy go instalować, jeśli urządzenie Gunze nie jest podłączone
231 do tego portu. Sterownik może utrudnić współpracę z innymi
232 urządzeniami podłączonymi do /dev/ttyS0 (jak mysz, modem itp.).
234 %package input-mutouch
235 Summary: MuTouch touchscreen input driver for DirectFB
236 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów MuTouch dla DirectFB
238 Requires: %{name} = %{epoch}:%{version}-%{release}
240 %description input-mutouch
241 MuTouch touchscreen input driver for DirectFB.
243 NOTE: it needs "mut-device" setting in directfbrc in order to work.
245 %description input-mutouch -l pl.UTF-8
246 Sterownik wejściowy do touchscreenów MuTouch dla DirectFB.
248 UWAGA: do działania potrzebuje ustawienia "mut-device" w directfbrc.
251 Summary: tslib-based touchscreen input driver for DirectFB
252 Summary(pl.UTF-8): Oparty na tslib sterownik wejściowy do touchscreenów dla DirectFB
254 Requires: %{name} = %{epoch}:%{version}-%{release}
256 %description input-tslib
257 tslib-based touchscreen input driver for DirectFB
259 %description input-tslib -l pl.UTF-8
260 Oparty na tslib sterownik wejściowy do touchscreenów dla DirectFB.
262 %package input-ucb1x00
263 Summary: UCB1x00 touchscreen input driver for DirectFB
264 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów UCB1x00 dla DirectFB
266 Requires: %{name} = %{epoch}:%{version}-%{release}
268 %description input-ucb1x00
269 UCB1x00 touchscreen input driver for DirectFB.
271 %description input-ucb1x00 -l pl.UTF-8
272 Sterownik wejściowy do touchscreenów UCB1x00 dla DirectFB.
274 %package input-wm97xx
275 Summary: WM97xx touchscreen input driver for DirectFB
276 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów WM97xx dla DirectFB
278 Requires: %{name} = %{epoch}:%{version}-%{release}
280 %description input-wm97xx
281 WM97xx touchscreen input driver for DirectFB.
283 %description input-wm97xx -l pl.UTF-8
284 Sterownik wejściowy do touchscreenów WM97xx dla DirectFB.
300 # MMX and SSE are detected at runtime, so it's safe to enable
302 %{!?debug:--disable-debug} \
303 --disable-maintainer-mode \
304 --enable-fast-install \
305 %{?with_multi:--enable-multi} \
310 --enable-video4linux2 \
314 %ifarch %{ix86} %{x8664}
318 %ifnarch i386 i486 i586
322 --with-inputdrivers=dbox2remote,dreamboxremote,dynapro,elo-input,gunze,joystick,keyboard,linuxinput,lirc,mutouch,penmount,ps2mouse,serialmouse,sonypijogdial,tslib,ucb1x00,wm97xx,zytronic \
323 --with-smooth-scaling \
324 %{!?with_static_libs:--disable-static}
328 X11_LIBS="-lX11 -lXext"
331 rm -rf $RPM_BUILD_ROOT
332 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}}
334 %{__make} -j1 install \
335 DESTDIR=$RPM_BUILD_ROOT
337 cp -rf DFBTutorials* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
339 touch $RPM_BUILD_ROOT%{_sysconfdir}/directfbrc
342 rm -rf $RPM_BUILD_ROOT
344 %post -p /sbin/ldconfig
345 %postun -p /sbin/ldconfig
348 %defattr(644,root,root,755)
349 %doc AUTHORS ChangeLog NEWS README TODO
350 %attr(755,root,root) %{_bindir}/dfbdump
351 %attr(755,root,root) %{_bindir}/dfbfx
352 %attr(755,root,root) %{_bindir}/dfbg
353 %attr(755,root,root) %{_bindir}/dfbinfo
354 %attr(755,root,root) %{_bindir}/dfbinput
355 %attr(755,root,root) %{_bindir}/dfbinspector
356 %attr(755,root,root) %{_bindir}/dfblayer
357 %attr(755,root,root) %{_bindir}/dfbmaster
358 %attr(755,root,root) %{_bindir}/dfbpenmount
359 %attr(755,root,root) %{_bindir}/dfbproxy
360 %attr(755,root,root) %{_bindir}/dfbscreen
361 %attr(755,root,root) %{_bindir}/mkdfiff
362 %attr(755,root,root) %{_bindir}/mkdgiff
363 %attr(755,root,root) %{_bindir}/mkdgifft
364 %attr(755,root,root) %{_bindir}/pxa3xx_dump
365 %attr(755,root,root) %{_bindir}/uwmdump
366 %attr(755,root,root) %{_bindir}/voodooplay
367 %attr(755,root,root) %{_libdir}/libdirect-1.4.so.*.*.*
368 %attr(755,root,root) %ghost %{_libdir}/libdirect-1.4.so.5
369 %attr(755,root,root) %{_libdir}/libdirectfb-1.4.so.*.*.*
370 %attr(755,root,root) %ghost %{_libdir}/libdirectfb-1.4.so.5
371 %attr(755,root,root) %{_libdir}/libfusion-1.4.so.*.*.*
372 %attr(755,root,root) %ghost %{_libdir}/libfusion-1.4.so.5
373 %attr(755,root,root) %{_libdir}/libuniquewm-1.4.so.*.*.*
374 %attr(755,root,root) %ghost %{_libdir}/libuniquewm-1.4.so.5
375 %attr(755,root,root) %{_libdir}/libvoodoo-1.4.so.*.*.*
376 %attr(755,root,root) %ghost %{_libdir}/libvoodoo-1.4.so.5
378 %dir %{dfbdir}/gfxdrivers
379 %attr(755,root,root) %{dfbdir}/gfxdrivers/*.so
380 %dir %{dfbdir}/inputdrivers
381 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_joystick.so
382 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_keyboard.so
383 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_linux_input.so
384 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_lirc.so
385 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_penmount.so
386 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ps2mouse.so
387 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_serialmouse.so
388 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sonypi.so
389 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_zytronic.so
390 %dir %{dfbdir}/interfaces
391 %dir %{dfbdir}/interfaces/IDirectFB
392 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFB/lib*.so
393 %dir %{dfbdir}/interfaces/IDirectFBDataBuffer
394 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBDataBuffer/lib*.so
395 %dir %{dfbdir}/interfaces/IDirectFBDisplayLayer
396 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBDisplayLayer/lib*.so
397 %dir %{dfbdir}/interfaces/IDirectFBEventBuffer
398 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBEventBuffer/lib*.so
399 %dir %{dfbdir}/interfaces/IDirectFBFont
400 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_dgiff.so
401 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_dispatcher.so
402 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_requestor.so
403 %dir %{dfbdir}/interfaces/IDirectFBImageProvider
404 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_dfiff.so
405 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_dispatcher.so
406 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.so
407 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_requestor.so
408 %dir %{dfbdir}/interfaces/IDirectFBInputDevice
409 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBInputDevice/lib*.so
410 %dir %{dfbdir}/interfaces/IDirectFBPalette
411 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBPalette/lib*.so
412 %dir %{dfbdir}/interfaces/IDirectFBScreen
413 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBScreen/lib*.so
414 %dir %{dfbdir}/interfaces/IDirectFBSurface
415 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBSurface/lib*.so
416 %dir %{dfbdir}/interfaces/IDirectFBVideoProvider
417 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_gif.so
418 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_v4l.so
419 %dir %{dfbdir}/interfaces/IDirectFBWindow
420 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBWindow/lib*.so
421 %dir %{dfbdir}/systems
422 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_devmem.so
423 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_dummy.so
424 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_fbdev.so
426 %attr(755,root,root) %{dfbdir}/wm/lib*.so
427 %{_datadir}/directfb-%{version}
428 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/directfbrc
429 %{_mandir}/man1/dfbg.1*
430 %{_mandir}/man5/directfbrc.5*
433 %defattr(644,root,root,755)
434 %attr(755,root,root) %{_bindir}/directfb-config
435 %attr(755,root,root) %{_bindir}/directfb-csource
436 %attr(755,root,root) %{_libdir}/libdirect.so
437 %attr(755,root,root) %{_libdir}/libdirectfb.so
438 %attr(755,root,root) %{_libdir}/libfusion.so
439 %attr(755,root,root) %{_libdir}/libuniquewm.so
440 %attr(755,root,root) %{_libdir}/libvoodoo.so
441 %{_libdir}/libdirect.la
442 %{_libdir}/libdirectfb.la
443 %{_libdir}/libfusion.la
444 %{_libdir}/libuniquewm.la
445 %{_libdir}/libvoodoo.la
446 %{_includedir}/directfb
447 %{_includedir}/directfb-internal
448 %{_pkgconfigdir}/direct.pc
449 %{_pkgconfigdir}/directfb-internal.pc
450 %{_pkgconfigdir}/directfb.pc
451 %{_pkgconfigdir}/fusion.pc
452 %{_pkgconfigdir}/voodoo.pc
453 %{_mandir}/man1/directfb-csource.1*
455 %if %{with static_libs}
457 %defattr(644,root,root,755)
459 %{dfbdir}/gfxdrivers/*.[alo]*
460 %{dfbdir}/inputdrivers/*.[alo]*
461 %{dfbdir}/interfaces/*/*.[alo]*
462 %{dfbdir}/systems/*.[alo]*
463 %{dfbdir}/wm/*.[alo]*
467 %defattr(644,root,root,755)
468 %doc docs/html/*.{html,png}
469 %{_examplesdir}/%{name}-%{version}
472 %defattr(644,root,root,755)
473 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sdlinput.so
474 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_sdl.so
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_vncinput.so
479 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_vnc.so
482 %defattr(644,root,root,755)
483 %doc systems/x11/README
484 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_x11.so
487 %defattr(644,root,root,755)
488 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_ft2.so
491 %defattr(644,root,root,755)
492 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.so
495 %defattr(644,root,root,755)
496 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.so
499 %defattr(644,root,root,755)
500 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_dynapro.so
503 %defattr(644,root,root,755)
504 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_elo.so
507 %defattr(644,root,root,755)
508 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_gunze.so
511 %defattr(644,root,root,755)
512 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_mutouch.so
515 %defattr(644,root,root,755)
516 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_tslib.so
519 %defattr(644,root,root,755)
520 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ucb1x00_ts.so
523 %defattr(644,root,root,755)
524 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_wm97xx_ts.so