3 %bcond_with multi # build Multi-application core (requires working /dev/fusion*)
5 Summary: DirectFB - Hardware graphics acceleration
6 Summary(pl.UTF-8): DirectFB - Wspomaganie grafiki
13 Source0: http://www.directfb.org/downloads/Core/%{name}-%{version}.tar.gz
14 # Source0-md5: 539e4b304d08bb0a2080c7b3f321d96f
15 Source1: http://www.directfb.org/downloads/Extras/DFBTutorials-0.5.0.tar.gz
16 # Source1-md5: 13e443a64bddd68835b574045d9025e9
17 Patch0: %{name}-am.patch
18 Patch1: %{name}-pmake.patch
19 Patch2: %{name}-fix.patch
20 Patch3: %{name}-gcc4.patch
21 Patch4: %{name}-llh-ppc.patch
22 Patch5: %{name}-link.patch
23 URL: http://www.directfb.org/
24 BuildRequires: SDL-devel
25 BuildRequires: autoconf >= 2.52
26 BuildRequires: automake
27 BuildRequires: freetype-devel >= 2.0.2
28 BuildRequires: libjpeg-devel >= 6b
29 BuildRequires: libpng-devel >= 1.0
30 BuildRequires: libtool
31 BuildRequires: libvncserver-devel
32 %{?with_multi:BuildRequires: linux-fusion-devel >= 3.0}
33 BuildRequires: sed >= 4.0
34 BuildRequires: sysfsutils-devel >= 1.3.0-3
35 BuildRequires: xorg-lib-libXext-devel
36 BuildRequires: zlib-devel >= 1.1.3
37 %{?with_multi:Provides: DirectFB(multi)}
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 %define dfbdir %{_libdir}/directfb-1.0-0
42 %define specflags -fno-strict-aliasing
45 # gcc running out of registers with -O0 in generic_mmx.h
46 %define debugcflags -O1 -g
50 DirectFB hardware graphics acceleration - libraries.
52 %description -l pl.UTF-8
53 Wspomaganie grafiki DirectFB - biblioteki.
56 Summary: DirectFB - development package
57 Summary(pl.UTF-8): DirectFB - pliki nagłówkowe
58 Group: Development/Libraries
59 Requires: %{name} = %{epoch}:%{version}-%{release}
60 Requires: zlib-devel >= 1.1.3
63 DirectFB header files.
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe dla DirectFB.
69 Summary: DirectFB static libraries
70 Summary(pl.UTF-8): Statyczne biblioteki DirectFB
71 Group: Development/Libraries
72 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
75 DirectFB static libraries.
77 %description static -l pl.UTF-8
78 Statyczne biblioteki DirectFB.
81 Summary: DirectFB - documentation
82 Summary(pl.UTF-8): DirectFB - dokumentacja
86 DirectFB documentation and tutorials.
88 %description doc -l pl.UTF-8
89 Dokumentacja dla systemu DirectFB wraz z wprowadzeniem.
92 Summary: SDL core system for DirectFB
93 Summary(pl.UTF-8): System SDL dla DirectFB
95 Requires: %{name} = %{epoch}:%{version}-%{release}
98 This package contains SDL core system module for DirectFB.
100 %description core-sdl -l pl.UTF-8
101 Ten pakiet zawiera moduł systemu SDL dla DirectFB.
104 Summary: VNC core system for DirectFB
105 Summary(pl.UTF-8): System VNC dla DirectFB
107 Requires: %{name} = %{epoch}:%{version}-%{release}
109 %description core-vnc
110 This package contains VNC core system module for DirectFB.
112 %description core-vnc -l pl.UTF-8
113 Ten pakiet zawiera moduł systemu VNC dla DirectFB.
116 Summary: X11 core system for DirectFB
117 Summary(pl.UTF-8): System X11 dla DirectFB
119 Requires: %{name} = %{epoch}:%{version}-%{release}
121 %description core-x11
122 This package contains X11 core system module for DirectFB.
124 %description core-x11 -l pl.UTF-8
125 Ten pakiet zawiera moduł systemu X11 dla DirectFB.
128 Summary: FreeType2 font provider for DirectFB
129 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca fonty poprzez FreeType2
131 Requires: %{name} = %{epoch}:%{version}-%{release}
133 %description font-ft2
134 This package contains FreeType2 font provider for DirectFB.
136 %description font-ft2 -l pl.UTF-8
137 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą fonty poprzez
138 bibliotekę FreeType2.
141 Summary: JPEG image provider for DirectFB
142 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę JPEG
144 Requires: %{name} = %{epoch}:%{version}-%{release}
146 %description image-jpeg
147 This package contains JPEG image provider for DirectFB.
149 %description image-jpeg -l pl.UTF-8
150 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę JPEG.
153 Summary: PNG image provider for DirectFB
154 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę PNG
156 Requires: %{name} = %{epoch}:%{version}-%{release}
158 %description image-png
159 This package contains PNG image provider for DirectFB.
161 %description image-png -l pl.UTF-8
162 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę PNG.
164 %package input-dynapro
165 Summary: Dynapro touchscreen input driver for DirectFB
166 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów Dynapro dla DirectFB
168 Requires: %{name} = %{epoch}:%{version}-%{release}
170 %description input-dynapro
171 Dynapro touchscreen input driver for DirectFB.
173 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
174 unless you don't have Dynapro device connected to this port. It can
175 mess with other devices connected to this port (mouse, modem etc.).
177 %description input-dynapro -l pl.UTF-8
178 Sterownik wejściowy do touchscreenów Dynapro dla DirectFB.
180 UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc
181 nie należy go instalować, jeśli urządzenie Dynapro nie jest podłączone
182 do tego portu. Sterownik może utrudnić współpracę z innymi
183 urządzeniami podłączonymi do /dev/ttyS0 (jak mysz, modem itp.).
186 Summary: ELO touchscreen input driver for DirectFB
187 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów ELO dla DirectFB
189 Requires: %{name} = %{epoch}:%{version}-%{release}
191 %description input-elo
192 ELO touchscreen input driver for DirectFB.
194 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
195 unless you have ELO device connected to this port. It can mess with
196 other devices connected to this port (mouse, modem etc.).
198 %description input-elo -l pl.UTF-8
199 Sterownik wejściowy do touchscreenów ELO dla DirectFB.
201 UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc
202 nie należy go instalować, jeśli urządzenie ELO nie jest podłączone do
203 tego portu. Sterownik może utrudnić współpracę z innymi urządzeniami
204 podłączonymi do /dev/ttyS0 (jak mysz, modem itp.).
207 Summary: Gunze touchscreen input driver for DirectFB
208 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów Gunze dla DirectFB
210 Requires: %{name} = %{epoch}:%{version}-%{release}
212 %description input-gunze
213 Gunze touchscreen input driver for DirectFB.
215 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
216 unless you don't have Gunze device connected to this port. It can mess
217 with other devices connected to this port (mouse, modem etc.).
219 %description input-gunze -l pl.UTF-8
220 Sterownik wejściowy do touchscreenów Gunze dla DirectFB.
222 UWAGA: aktualnie używa zakodowanego na stałe portu /dev/ttyS0, więc
223 nie należy go instalować, jeśli urządzenie Gunze nie jest podłączone
224 do tego portu. Sterownik może utrudnić współpracę z innymi
225 urządzeniami podłączonymi do /dev/ttyS0 (jak mysz, modem itp.).
227 %package input-mutouch
228 Summary: MuTouch touchscreen input driver for DirectFB
229 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów MuTouch dla DirectFB
231 Requires: %{name} = %{epoch}:%{version}-%{release}
233 %description input-mutouch
234 MuTouch touchscreen input driver for DirectFB.
236 NOTE: it needs "mut-device" setting in directfbrc in order to work.
238 %description input-mutouch -l pl.UTF-8
239 Sterownik wejściowy do touchscreenów MuTouch dla DirectFB.
241 UWAGA: do działania potrzebuje ustawienia "mut-device" w directfbrc.
243 %package input-ucb1x00
244 Summary: UCB1x00 touchscreen input driver for DirectFB
245 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów UCB1x00 dla DirectFB
247 Requires: %{name} = %{epoch}:%{version}-%{release}
249 %description input-ucb1x00
250 UCB1x00 touchscreen input driver for DirectFB.
252 %description input-ucb1x00 -l pl.UTF-8
253 Sterownik wejściowy do touchscreenów UCB1x00 dla DirectFB.
255 %package input-wm97xx
256 Summary: WM97xx touchscreen input driver for DirectFB
257 Summary(pl.UTF-8): Sterownik wejściowy do touchscreenów WM97xx dla DirectFB
259 Requires: %{name} = %{epoch}:%{version}-%{release}
261 %description input-wm97xx
262 WM97xx touchscreen input driver for DirectFB.
264 %description input-wm97xx -l pl.UTF-8
265 Sterownik wejściowy do touchscreenów WM97xx dla DirectFB.
281 # MMX and SSE are detected at runtime, so it's safe to enable
283 %{!?debug:--disable-debug} \
284 --disable-maintainer-mode \
285 --enable-fast-install \
286 %{?with_multi:--enable-multi} \
291 --enable-video4linux2 \
295 %ifarch %{ix86} %{x8664}
299 %ifnarch i386 i486 i586
303 --with-inputdrivers=dynapro,elo-input,gunze,joystick,keyboard,linuxinput,lirc,mutouch,penmount,ps2mouse,serialmouse,sonypijogdial,ucb1x00,wm97xx
307 X11_LIBS="-lX11 -lXext"
310 rm -rf $RPM_BUILD_ROOT
311 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}}
314 DESTDIR=$RPM_BUILD_ROOT
316 cp -rf DFBTutorials* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
318 touch $RPM_BUILD_ROOT%{_sysconfdir}/directfbrc
321 rm -rf $RPM_BUILD_ROOT
323 %post -p /sbin/ldconfig
324 %postun -p /sbin/ldconfig
327 %defattr(644,root,root,755)
328 %doc AUTHORS ChangeLog NEWS README TODO
329 %attr(755,root,root) %{_bindir}/dfbdump
330 %attr(755,root,root) %{_bindir}/dfbg
331 %attr(755,root,root) %{_bindir}/dfbinfo
332 %attr(755,root,root) %{_bindir}/dfbinput
333 %attr(755,root,root) %{_bindir}/dfblayer
334 %attr(755,root,root) %{_bindir}/dfbpenmount
335 %attr(755,root,root) %{_bindir}/dfbproxy
336 %attr(755,root,root) %{_bindir}/dfbscreen
337 %attr(755,root,root) %{_bindir}/dfbsummon
338 %attr(755,root,root) %{_bindir}/mkdfiff
339 %attr(755,root,root) %{_bindir}/mkdgiff
340 %attr(755,root,root) %{_bindir}/uwmdump
341 %attr(755,root,root) %{_libdir}/libdirect-*.so.*.*.*
342 %attr(755,root,root) %{_libdir}/libdirectfb-*.so.*.*.*
343 %attr(755,root,root) %{_libdir}/libfusion-*.so.*.*.*
344 %attr(755,root,root) %{_libdir}/libuniquewm-*.so.*.*.*
345 %attr(755,root,root) %{_libdir}/libvoodoo-*.so.*.*.*
347 %dir %{dfbdir}/gfxdrivers
348 %attr(755,root,root) %{dfbdir}/gfxdrivers/*.so
349 %dir %{dfbdir}/inputdrivers
350 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_joystick.so
351 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_keyboard.so
352 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_linux_input.so
353 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_lirc.so
354 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_penmount.so
355 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ps2mouse.so
356 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_serialmouse.so
357 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sonypi.so
358 %dir %{dfbdir}/interfaces
359 %dir %{dfbdir}/interfaces/IDirectFB
360 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFB/lib*.so
361 %dir %{dfbdir}/interfaces/IDirectFBDataBuffer
362 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBDataBuffer/lib*.so
363 %dir %{dfbdir}/interfaces/IDirectFBDisplayLayer
364 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBDisplayLayer/lib*.so
365 %dir %{dfbdir}/interfaces/IDirectFBEventBuffer
366 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBEventBuffer/lib*.so
367 %dir %{dfbdir}/interfaces/IDirectFBFont
368 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_default.so
369 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_dgiff.so
370 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_dispatcher.so
371 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_requestor.so
372 %dir %{dfbdir}/interfaces/IDirectFBImageProvider
373 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_dfiff.so
374 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_dispatcher.so
375 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.so
376 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_mpeg2.so
377 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_requestor.so
378 %dir %{dfbdir}/interfaces/IDirectFBInputDevice
379 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBInputDevice/lib*.so
380 %dir %{dfbdir}/interfaces/IDirectFBPalette
381 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBPalette/lib*.so
382 %dir %{dfbdir}/interfaces/IDirectFBScreen
383 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBScreen/lib*.so
384 %dir %{dfbdir}/interfaces/IDirectFBSurface
385 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBSurface/lib*.so
386 %dir %{dfbdir}/interfaces/IDirectFBVideoProvider
387 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_gif.so
388 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_v4l.so
389 %dir %{dfbdir}/interfaces/IDirectFBWindow
390 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBWindow/lib*.so
391 %dir %{dfbdir}/systems
392 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_fbdev.so
394 %attr(755,root,root) %{dfbdir}/wm/*.so
395 %{_datadir}/directfb-%{version}
396 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/directfbrc
397 %{_mandir}/man1/dfbg.1*
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_bindir}/directfb-config
403 %attr(755,root,root) %{_bindir}/directfb-csource
404 %attr(755,root,root) %{_libdir}/libdirect.so
405 %attr(755,root,root) %{_libdir}/libdirectfb.so
406 %attr(755,root,root) %{_libdir}/libfusion.so
407 %attr(755,root,root) %{_libdir}/libuniquewm.so
408 %attr(755,root,root) %{_libdir}/libvoodoo.so
409 %{_libdir}/libdirect.la
410 %{_libdir}/libdirectfb.la
411 %{_libdir}/libfusion.la
412 %{_libdir}/libuniquewm.la
413 %{_libdir}/libvoodoo.la
414 %{_includedir}/directfb
415 %{_includedir}/directfb-internal
416 %{_pkgconfigdir}/*.pc
417 %{_mandir}/man1/directfb-csource.1*
420 %defattr(644,root,root,755)
422 %{dfbdir}/gfxdrivers/*.[alo]*
423 %{dfbdir}/inputdrivers/*.[alo]*
424 %{dfbdir}/interfaces/*/*.[alo]*
425 %{dfbdir}/systems/*.[alo]*
426 %{dfbdir}/wm/*.[alo]*
429 %defattr(644,root,root,755)
430 %doc docs/html/*.{html,png}
431 %{_examplesdir}/%{name}-%{version}
434 %defattr(644,root,root,755)
435 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sdlinput.so
436 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_sdl.so
439 %defattr(644,root,root,755)
440 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_vncinput.so
441 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_vnc.so
444 %defattr(644,root,root,755)
445 %doc systems/x11/README
446 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_x11input.so
447 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_x11.so
450 %defattr(644,root,root,755)
451 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_ft2.so
454 %defattr(644,root,root,755)
455 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.so
458 %defattr(644,root,root,755)
459 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.so
462 %defattr(644,root,root,755)
463 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_dynapro.so
466 %defattr(644,root,root,755)
467 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_elo.so
470 %defattr(644,root,root,755)
471 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_gunze.so
474 %defattr(644,root,root,755)
475 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_mutouch.so
478 %defattr(644,root,root,755)
479 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ucb1x00_ts.so
482 %defattr(644,root,root,755)
483 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_wm97xx_ts.so