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: 539e4b304d08bb0a2080c7b3f321d96f
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 >= 3.0}
34 BuildRequires: sed >= 4.0
35 BuildRequires: sysfsutils-devel >= 1.3.0-3
36 BuildRequires: xorg-lib-libXext-devel
37 BuildRequires: zlib-devel >= 1.1.3
38 %{?with_multi:Provides: DirectFB(multi)}
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define dfbdir %{_libdir}/directfb-1.0-0
43 %define specflags -fno-strict-aliasing
46 # gcc running out of registers with -O0 in generic_mmx.h
47 %define debugcflags -O1 -g
51 DirectFB hardware graphics acceleration - libraries.
53 %description -l pl.UTF-8
54 Wspomaganie grafiki DirectFB - biblioteki.
57 Summary: DirectFB - development package
58 Summary(pl.UTF-8): DirectFB - pliki nagłówkowe
59 Group: Development/Libraries
60 Requires: %{name} = %{epoch}:%{version}-%{release}
61 Requires: zlib-devel >= 1.1.3
64 DirectFB header files.
66 %description devel -l pl.UTF-8
67 Pliki nagłówkowe dla DirectFB.
70 Summary: DirectFB static libraries
71 Summary(pl.UTF-8): Statyczne biblioteki DirectFB
72 Group: Development/Libraries
73 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
76 DirectFB static libraries.
78 %description static -l pl.UTF-8
79 Statyczne biblioteki DirectFB.
82 Summary: DirectFB - documentation
83 Summary(pl.UTF-8): DirectFB - dokumentacja
87 DirectFB documentation and tutorials.
89 %description doc -l pl.UTF-8
90 Dokumentacja dla systemu DirectFB wraz z wprowadzeniem.
93 Summary: SDL core system for DirectFB
94 Summary(pl.UTF-8): System SDL dla DirectFB
96 Requires: %{name} = %{epoch}:%{version}-%{release}
99 This package contains SDL core system module for DirectFB.
101 %description core-sdl -l pl.UTF-8
102 Ten pakiet zawiera moduł systemu SDL dla DirectFB.
105 Summary: VNC core system for DirectFB
106 Summary(pl.UTF-8): System VNC dla DirectFB
108 Requires: %{name} = %{epoch}:%{version}-%{release}
110 %description core-vnc
111 This package contains VNC core system module for DirectFB.
113 %description core-vnc -l pl.UTF-8
114 Ten pakiet zawiera moduł systemu VNC dla DirectFB.
117 Summary: X11 core system for DirectFB
118 Summary(pl.UTF-8): System X11 dla DirectFB
120 Requires: %{name} = %{epoch}:%{version}-%{release}
122 %description core-x11
123 This package contains X11 core system module for DirectFB.
125 %description core-x11 -l pl.UTF-8
126 Ten pakiet zawiera moduł systemu X11 dla DirectFB.
129 Summary: FreeType2 font provider for DirectFB
130 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca fonty poprzez FreeType2
132 Requires: %{name} = %{epoch}:%{version}-%{release}
134 %description font-ft2
135 This package contains FreeType2 font provider for DirectFB.
137 %description font-ft2 -l pl.UTF-8
138 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą fonty poprzez
139 bibliotekę FreeType2.
142 Summary: JPEG image provider for DirectFB
143 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę JPEG
145 Requires: %{name} = %{epoch}:%{version}-%{release}
147 %description image-jpeg
148 This package contains JPEG image provider for DirectFB.
150 %description image-jpeg -l pl.UTF-8
151 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę JPEG.
154 Summary: PNG image provider for DirectFB
155 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę PNG
157 Requires: %{name} = %{epoch}:%{version}-%{release}
159 %description image-png
160 This package contains PNG image provider for DirectFB.
162 %description image-png -l pl.UTF-8
163 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę PNG.
165 %package input-dynapro
166 Summary: Dynapro touchscreen input driver for DirectFB
167 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów Dynapro dla DirectFB
169 Requires: %{name} = %{epoch}:%{version}-%{release}
171 %description input-dynapro
172 Dynapro touchscreen input driver for DirectFB.
174 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
175 unless you don't have Dynapro device connected to this port. It can
176 mess with other devices connected to this port (mouse, modem etc.).
178 %description input-dynapro -l pl.UTF-8
179 Sterownik wejściowy do touchscreenów Dynapro dla DirectFB.
181 UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc
182 nie należy go instalować, jeśli urządzenie Dynapro nie jest podłączone
183 do tego portu. Sterownik może utrudnić współpracę z innymi
184 urządzeniami podłączonymi do /dev/ttyS0 (jak mysz, modem itp.).
187 Summary: ELO touchscreen input driver for DirectFB
188 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów ELO dla DirectFB
190 Requires: %{name} = %{epoch}:%{version}-%{release}
192 %description input-elo
193 ELO touchscreen input driver for DirectFB.
195 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
196 unless you have ELO device connected to this port. It can mess with
197 other devices connected to this port (mouse, modem etc.).
199 %description input-elo -l pl.UTF-8
200 Sterownik wejściowy do touchscreenów ELO dla DirectFB.
202 UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc
203 nie należy go instalować, jeśli urządzenie ELO nie jest podłączone do
204 tego portu. Sterownik może utrudnić współpracę z innymi urządzeniami
205 podłączonymi do /dev/ttyS0 (jak mysz, modem itp.).
208 Summary: Gunze touchscreen input driver for DirectFB
209 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów Gunze dla DirectFB
211 Requires: %{name} = %{epoch}:%{version}-%{release}
213 %description input-gunze
214 Gunze touchscreen input driver for DirectFB.
216 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
217 unless you don't have Gunze device connected to this port. It can mess
218 with other devices connected to this port (mouse, modem etc.).
220 %description input-gunze -l pl.UTF-8
221 Sterownik wejściowy do touchscreenów Gunze dla DirectFB.
223 UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc
224 nie należy go instalować, jeśli urządzenie Gunze nie jest podłączone
225 do tego portu. Sterownik może utrudnić współpracę z innymi
226 urządzeniami podłączonymi do /dev/ttyS0 (jak mysz, modem itp.).
228 %package input-mutouch
229 Summary: MuTouch touchscreen input driver for DirectFB
230 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów MuTouch dla DirectFB
232 Requires: %{name} = %{epoch}:%{version}-%{release}
234 %description input-mutouch
235 MuTouch touchscreen input driver for DirectFB.
237 NOTE: it needs "mut-device" setting in directfbrc in order to work.
239 %description input-mutouch -l pl.UTF-8
240 Sterownik wejściowy do touchscreenów MuTouch dla DirectFB.
242 UWAGA: do działania potrzebuje ustawienia "mut-device" w directfbrc.
244 %package input-ucb1x00
245 Summary: UCB1x00 touchscreen input driver for DirectFB
246 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów UCB1x00 dla DirectFB
248 Requires: %{name} = %{epoch}:%{version}-%{release}
250 %description input-ucb1x00
251 UCB1x00 touchscreen input driver for DirectFB.
253 %description input-ucb1x00 -l pl.UTF-8
254 Sterownik wejściowy do touchscreenów UCB1x00 dla DirectFB.
256 %package input-wm97xx
257 Summary: WM97xx touchscreen input driver for DirectFB
258 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów WM97xx dla DirectFB
260 Requires: %{name} = %{epoch}:%{version}-%{release}
262 %description input-wm97xx
263 WM97xx touchscreen input driver for DirectFB.
265 %description input-wm97xx -l pl.UTF-8
266 Sterownik wejściowy do touchscreenów WM97xx dla DirectFB.
282 # MMX and SSE are detected at runtime, so it's safe to enable
284 %{!?debug:--disable-debug} \
285 --disable-maintainer-mode \
286 --enable-fast-install \
287 %{?with_multi:--enable-multi} \
292 --enable-video4linux2 \
296 %ifarch %{ix86} %{x8664}
300 %ifnarch i386 i486 i586
304 --with-inputdrivers=dynapro,elo-input,gunze,joystick,keyboard,linuxinput,lirc,mutouch,penmount,ps2mouse,serialmouse,sonypijogdial,ucb1x00,wm97xx \
305 %{!?with_static_libs:--disable-static}
309 X11_LIBS="-lX11 -lXext"
312 rm -rf $RPM_BUILD_ROOT
313 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}}
316 DESTDIR=$RPM_BUILD_ROOT
318 cp -rf DFBTutorials* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
320 touch $RPM_BUILD_ROOT%{_sysconfdir}/directfbrc
323 rm -rf $RPM_BUILD_ROOT
325 %post -p /sbin/ldconfig
326 %postun -p /sbin/ldconfig
329 %defattr(644,root,root,755)
330 %doc AUTHORS ChangeLog NEWS README TODO
331 %attr(755,root,root) %{_bindir}/dfbdump
332 %attr(755,root,root) %{_bindir}/dfbg
333 %attr(755,root,root) %{_bindir}/dfbinfo
334 %attr(755,root,root) %{_bindir}/dfbinput
335 %attr(755,root,root) %{_bindir}/dfblayer
336 %attr(755,root,root) %{_bindir}/dfbpenmount
337 %attr(755,root,root) %{_bindir}/dfbproxy
338 %attr(755,root,root) %{_bindir}/dfbscreen
339 %attr(755,root,root) %{_bindir}/dfbsummon
340 %attr(755,root,root) %{_bindir}/mkdfiff
341 %attr(755,root,root) %{_bindir}/mkdgiff
342 %attr(755,root,root) %{_bindir}/uwmdump
343 %attr(755,root,root) %{_libdir}/libdirect-*.so.*.*.*
344 %attr(755,root,root) %{_libdir}/libdirectfb-*.so.*.*.*
345 %attr(755,root,root) %{_libdir}/libfusion-*.so.*.*.*
346 %attr(755,root,root) %{_libdir}/libuniquewm-*.so.*.*.*
347 %attr(755,root,root) %{_libdir}/libvoodoo-*.so.*.*.*
349 %dir %{dfbdir}/gfxdrivers
350 %attr(755,root,root) %{dfbdir}/gfxdrivers/*.so
351 %dir %{dfbdir}/inputdrivers
352 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_joystick.so
353 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_keyboard.so
354 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_linux_input.so
355 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_lirc.so
356 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_penmount.so
357 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ps2mouse.so
358 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_serialmouse.so
359 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sonypi.so
360 %dir %{dfbdir}/interfaces
361 %dir %{dfbdir}/interfaces/IDirectFB
362 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFB/lib*.so
363 %dir %{dfbdir}/interfaces/IDirectFBDataBuffer
364 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBDataBuffer/lib*.so
365 %dir %{dfbdir}/interfaces/IDirectFBDisplayLayer
366 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBDisplayLayer/lib*.so
367 %dir %{dfbdir}/interfaces/IDirectFBEventBuffer
368 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBEventBuffer/lib*.so
369 %dir %{dfbdir}/interfaces/IDirectFBFont
370 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_default.so
371 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_dgiff.so
372 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_dispatcher.so
373 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_requestor.so
374 %dir %{dfbdir}/interfaces/IDirectFBImageProvider
375 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_dfiff.so
376 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_dispatcher.so
377 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.so
378 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_mpeg2.so
379 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_requestor.so
380 %dir %{dfbdir}/interfaces/IDirectFBInputDevice
381 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBInputDevice/lib*.so
382 %dir %{dfbdir}/interfaces/IDirectFBPalette
383 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBPalette/lib*.so
384 %dir %{dfbdir}/interfaces/IDirectFBScreen
385 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBScreen/lib*.so
386 %dir %{dfbdir}/interfaces/IDirectFBSurface
387 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBSurface/lib*.so
388 %dir %{dfbdir}/interfaces/IDirectFBVideoProvider
389 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_gif.so
390 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_v4l.so
391 %dir %{dfbdir}/interfaces/IDirectFBWindow
392 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBWindow/lib*.so
393 %dir %{dfbdir}/systems
394 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_fbdev.so
396 %attr(755,root,root) %{dfbdir}/wm/*.so
397 %{_datadir}/directfb-%{version}
398 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/directfbrc
399 %{_mandir}/man1/dfbg.1*
403 %defattr(644,root,root,755)
404 %attr(755,root,root) %{_bindir}/directfb-config
405 %attr(755,root,root) %{_bindir}/directfb-csource
406 %attr(755,root,root) %{_libdir}/libdirect.so
407 %attr(755,root,root) %{_libdir}/libdirectfb.so
408 %attr(755,root,root) %{_libdir}/libfusion.so
409 %attr(755,root,root) %{_libdir}/libuniquewm.so
410 %attr(755,root,root) %{_libdir}/libvoodoo.so
411 %{_libdir}/libdirect.la
412 %{_libdir}/libdirectfb.la
413 %{_libdir}/libfusion.la
414 %{_libdir}/libuniquewm.la
415 %{_libdir}/libvoodoo.la
416 %{_includedir}/directfb
417 %{_includedir}/directfb-internal
418 %{_pkgconfigdir}/*.pc
419 %{_mandir}/man1/directfb-csource.1*
421 %if %{with static_libs}
423 %defattr(644,root,root,755)
425 %{dfbdir}/gfxdrivers/*.[alo]*
426 %{dfbdir}/inputdrivers/*.[alo]*
427 %{dfbdir}/interfaces/*/*.[alo]*
428 %{dfbdir}/systems/*.[alo]*
429 %{dfbdir}/wm/*.[alo]*
433 %defattr(644,root,root,755)
434 %doc docs/html/*.{html,png}
435 %{_examplesdir}/%{name}-%{version}
438 %defattr(644,root,root,755)
439 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sdlinput.so
440 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_sdl.so
443 %defattr(644,root,root,755)
444 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_vncinput.so
445 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_vnc.so
448 %defattr(644,root,root,755)
449 %doc systems/x11/README
450 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_x11input.so
451 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_x11.so
454 %defattr(644,root,root,755)
455 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_ft2.so
458 %defattr(644,root,root,755)
459 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.so
462 %defattr(644,root,root,755)
463 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.so
466 %defattr(644,root,root,755)
467 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_dynapro.so
470 %defattr(644,root,root,755)
471 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_elo.so
474 %defattr(644,root,root,755)
475 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_gunze.so
478 %defattr(644,root,root,755)
479 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_mutouch.so
482 %defattr(644,root,root,755)
483 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ucb1x00_ts.so
486 %defattr(644,root,root,755)
487 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_wm97xx_ts.so