3 # - fix x86-64 int32<->ptr64 casts.
5 # tree.c:88: warning: cast from pointer to integer of different size
6 # tree.c:102: warning: cast from pointer to integer of different size
7 # fonts.c:144: warning: cast to pointer from integer of different size
8 # fonts.c:211: warning: cast to pointer from integer of different size
9 # gfxcard.c:1451: warning: cast to pointer from integer of different size
10 # fbdev.c:459: warning: cast from pointer to integer of different size
11 # fbdev.c:578: warning: cast from pointer to integer of different size
12 # fbdev.c:708: warning: cast from pointer to integer of different size
13 # idirectfbfont_ft2.c:130: warning: cast from pointer to integer of different size
14 # idirectfbfont_ft2.c:292: warning: cast from pointer to integer of different size
15 # idirectfbfont_ft2.c:653: warning: cast to pointer from integer of different size
18 %bcond_with multi # build Multi-application core (requires working /dev/fusion*)
20 Summary: DirectFB - Hardware graphics acceleration
21 Summary(pl): DirectFB - Wspomaganie grafiki
28 Source0: http://www.directfb.org/downloads/Core/%{name}-%{version}.tar.gz
29 # Source0-md5: ad746c49dc89ba6f99df71b17bbb1dc8
30 Source1: http://www.directfb.org/downloads/Extras/DFBTutorials-0.5.0.tar.gz
31 # Source1-md5: 13e443a64bddd68835b574045d9025e9
32 Patch0: %{name}-am.patch
33 Patch1: %{name}-pmake.patch
34 Patch2: %{name}-fix.patch
35 Patch3: %{name}-gcc4.patch
36 Patch4: %{name}-llh-ppc.patch
37 URL: http://www.directfb.org/
38 BuildRequires: SDL-devel
39 BuildRequires: XFree86-devel
40 BuildRequires: autoconf >= 2.52
41 BuildRequires: automake
42 BuildRequires: freetype-devel >= 2.0.2
43 BuildRequires: libjpeg-devel >= 6b
44 BuildRequires: libpng-devel >= 1.0
45 BuildRequires: libtool
46 BuildRequires: libvncserver-devel
47 %{?with_multi:BuildRequires: linux-fusion-devel}
48 BuildRequires: sed >= 4.0
49 BuildRequires: sysfsutils-devel >= 1.3.0-3
50 BuildRequires: zlib-devel >= 1.1.3
51 %{?with_multi:Provides: DirectFB(multi)}
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 %define dfbdir %{_libdir}/directfb-1.0-0
56 %define specflags -fno-strict-aliasing
59 # gcc running out of registers with -O0 in generic_mmx.h
60 %define debugcflags -O1 -g
64 DirectFB hardware graphics acceleration - libraries.
67 Wspomaganie grafiki DirectFB - biblioteki.
70 Summary: DirectFB - development package
71 Summary(pl): DirectFB - pliki nag³ówkowe
72 Group: Development/Libraries
73 Requires: %{name} = %{epoch}:%{version}-%{release}
74 Requires: zlib-devel >= 1.1.3
77 DirectFB header files.
79 %description devel -l pl
80 Pliki nag³ówkowe dla DirectFB.
83 Summary: DirectFB static libraries
84 Summary(pl): Statyczne biblioteki DirectFB
85 Group: Development/Libraries
86 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
89 DirectFB static libraries.
91 %description static -l pl
92 Statyczne biblioteki DirectFB.
95 Summary: DirectFB - documentation
96 Summary(pl): DirectFB - dokumentacja
97 Group: Development/Libraries
100 DirectFB documentation and tutorials.
102 %description doc -l pl
103 Dokumentacja dla systemu DirectFB wraz z wprowadzeniem.
106 Summary: SDL core system for DirectFB
107 Summary(pl): System SDL dla DirectFB
109 Requires: %{name} = %{epoch}:%{version}-%{release}
111 %description core-sdl
112 This package contains SDL core system module for DirectFB.
114 %description core-sdl -l pl
115 Ten pakiet zawiera modu³ systemu SDL dla DirectFB.
118 Summary: VNC core system for DirectFB
119 Summary(pl): System VNC dla DirectFB
121 Requires: %{name} = %{epoch}:%{version}-%{release}
123 %description core-vnc
124 This package contains VNC core system module for DirectFB.
126 %description core-vnc -l pl
127 Ten pakiet zawiera modu³ systemu VNC dla DirectFB.
130 Summary: X11 core system for DirectFB
131 Summary(pl): System X11 dla DirectFB
133 Requires: %{name} = %{epoch}:%{version}-%{release}
135 %description core-x11
136 This package contains X11 core system module for DirectFB.
138 %description core-x11 -l pl
139 Ten pakiet zawiera modu³ systemu X11 dla DirectFB.
142 Summary: FreeType2 font provider for DirectFB
143 Summary(pl): DirectFB - wtyczka dostarczaj±ca fonty poprzez FreeType2
145 Requires: %{name} = %{epoch}:%{version}-%{release}
147 %description font-ft2
148 This package contains FreeType2 font provider for DirectFB.
150 %description font-ft2 -l pl
151 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± fonty poprzez
152 bibliotekê FreeType2.
155 Summary: JPEG image provider for DirectFB
156 Summary(pl): DirectFB - wtyczka dostarczaj±ca grafikê JPEG
158 Requires: %{name} = %{epoch}:%{version}-%{release}
160 %description image-jpeg
161 This package contains JPEG image provider for DirectFB.
163 %description image-jpeg -l pl
164 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± grafikê JPEG.
167 Summary: PNG image provider for DirectFB
168 Summary(pl): DirectFB - wtyczka dostarczaj±ca grafikê PNG
170 Requires: %{name} = %{epoch}:%{version}-%{release}
172 %description image-png
173 This package contains PNG image provider for DirectFB.
175 %description image-png -l pl
176 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± grafikê PNG.
179 Summary: ELO touchscreen input driver for DirectFB
180 Summary(pl): Sterownik wej¶ciowy do touchscreenów ELO dla DirectFB
182 Requires: %{name} = %{epoch}:%{version}-%{release}
184 %description input-elo
185 ELO touchscreen input driver for DirectFB.
187 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
188 unless you don't have ELO device connected to this port. It can mess
189 with other devices connected to this port (mouse, modem etc.).
191 %description input-elo -l pl
192 Sterownik wej¶ciowy do touchscreenów ELO dla DirectFB.
194 UWAGA: aktualnie u¿ywa zakodowanego na sta³e portu /dev/ttyS0, wiêc
195 nie nale¿y go instalowaæ, je¶li urz±dzenie ELO nie jest pod³±czone do
196 tego portu. Sterownik mo¿e utrudniæ wspó³pracê z innymi urz±dzeniami
197 pod³±czonymi do /dev/ttyS0 (jak mysz, modem itp.).
199 %package input-dynapro
200 Summary: Dynapro touchscreen input driver for DirectFB
201 Summary(pl): Sterownik wej¶ciowy do touchscreenów Dynapro dla DirectFB
203 Requires: %{name} = %{epoch}:%{version}-%{release}
205 %description input-dynapro
206 Dynapro touchscreen input driver for DirectFB.
208 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
209 unless you don't have Dynapro device connected to this port. It can
210 mess with other devices connected to this port (mouse, modem etc.).
212 %description input-dynapro -l pl
213 Sterownik wej¶ciowy do touchscreenów Dynapro dla DirectFB.
215 UWAGA: aktualnie u¿ywa zakodowanego na sta³e portu /dev/ttyS0, wiêc
216 nie nale¿y go instalowaæ, je¶li urz±dzenie Dynapro nie jest pod³±czone
217 do tego portu. Sterownik mo¿e utrudniæ wspó³pracê z innymi
218 urz±dzeniami pod³±czonymi do /dev/ttyS0 (jak mysz, modem itp.).
221 Summary: Gunze touchscreen input driver for DirectFB
222 Summary(pl): Sterownik wej¶ciowy do touchscreenów Gunze dla DirectFB
224 Requires: %{name} = %{epoch}:%{version}-%{release}
226 %description input-gunze
227 Gunze touchscreen input driver for DirectFB.
229 NOTE: currently it uses hardcoded /dev/ttyS0 port, so don't install it
230 unless you don't have Gunze device connected to this port. It can mess
231 with other devices connected to this port (mouse, modem etc.).
233 %description input-gunze -l pl
234 Sterownik wej¶ciowy do touchscreenów Gunze dla DirectFB.
236 UWAGA: aktualnie u¿ywa zakodowanego na sta³e portu /dev/ttyS0, wiêc
237 nie nale¿y go instalowaæ, je¶li urz±dzenie Gunze nie jest pod³±czone
238 do tego portu. Sterownik mo¿e utrudniæ wspó³pracê z innymi
239 urz±dzeniami pod³±czonymi do /dev/ttyS0 (jak mysz, modem itp.).
241 %package input-mutouch
242 Summary: MuTouch touchscreen input driver for DirectFB
243 Summary(pl): Sterownik wej¶ciowy do touchscreenów MuTouch dla DirectFB
245 Requires: %{name} = %{epoch}:%{version}-%{release}
247 %description input-mutouch
248 MuTouch touchscreen input driver for DirectFB.
250 NOTE: it needs "mut-device" setting in directfbrc in order to work.
252 %description input-mutouch -l pl
253 Sterownik wej¶ciowy do touchscreenów MuTouch dla DirectFB.
255 UWAGA: do dzia³ania potrzebuje ustawienia "mut-device" w directfbrc.
257 %package input-ucb1x00
258 Summary: UCB1x00 touchscreen input driver for DirectFB
259 Summary(pl): Sterownik wej¶ciowy do touchscreenów UCB1x00 dla DirectFB
261 Requires: %{name} = %{epoch}:%{version}-%{release}
263 %description input-ucb1x00
264 UCB1x00 touchscreen input driver for DirectFB.
266 %description input-ucb1x00 -l pl
267 Sterownik wej¶ciowy do touchscreenów UCB1x00 dla DirectFB.
269 %package input-wm97xx
270 Summary: WM97xx touchscreen input driver for DirectFB
271 Summary(pl): Sterownik wej¶ciowy do touchscreenów WM97xx dla DirectFB
273 Requires: %{name} = %{epoch}:%{version}-%{release}
275 %description input-wm97xx
276 WM97xx touchscreen input driver for DirectFB.
278 %description input-wm97xx -l pl
279 Sterownik wej¶ciowy do touchscreenów WM97xx dla DirectFB.
294 # MMX and SSE are detected at runtime, so it's safe to enable
296 --with-inputdrivers=dynapro,elo-input,gunze,joystick,keyboard,linuxinput,lirc,mutouch,penmount,ps2mouse,serialmouse,sonypijogdial,ucb1x00,wm97xx \
297 %{!?debug:--disable-debug} \
298 --disable-maintainer-mode \
299 --enable-fast-install \
300 --enable-linux-input \
301 %{?with_multi:--enable-multi} \
307 --enable-video4linux2 \
311 %ifarch %{ix86} %{x8664}
315 %ifnarch i386 i486 i586
321 X11_LIBS=%{_prefix}/X11R6/%{_lib}
324 rm -rf $RPM_BUILD_ROOT
325 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}}
328 DESTDIR=$RPM_BUILD_ROOT
330 cp -rf DFBTutorials* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
332 touch $RPM_BUILD_ROOT%{_sysconfdir}/directfbrc
335 rm -rf $RPM_BUILD_ROOT
337 %post -p /sbin/ldconfig
338 %postun -p /sbin/ldconfig
341 %defattr(644,root,root,755)
342 %doc AUTHORS ChangeLog NEWS README TODO
343 %attr(755,root,root) %{_bindir}/dfbdump
344 %attr(755,root,root) %{_bindir}/dfbg
345 %attr(755,root,root) %{_bindir}/dfbinfo
346 %attr(755,root,root) %{_bindir}/dfbinput
347 %attr(755,root,root) %{_bindir}/dfblayer
348 %attr(755,root,root) %{_bindir}/dfbpenmount
349 %attr(755,root,root) %{_bindir}/dfbproxy
350 %attr(755,root,root) %{_bindir}/dfbscreen
351 %attr(755,root,root) %{_bindir}/dfbsummon
352 %attr(755,root,root) %{_bindir}/mkdfiff
353 %attr(755,root,root) %{_bindir}/mkdgiff
354 %attr(755,root,root) %{_bindir}/uwmdump
355 %attr(755,root,root) %{_libdir}/libdirect-*.so.*.*.*
356 %attr(755,root,root) %{_libdir}/libdirectfb-*.so.*.*.*
357 %attr(755,root,root) %{_libdir}/libfusion-*.so.*.*.*
358 %attr(755,root,root) %{_libdir}/libuniquewm-*.so.*.*.*
359 %attr(755,root,root) %{_libdir}/libvoodoo-*.so.*.*.*
361 %dir %{dfbdir}/gfxdrivers
362 %attr(755,root,root) %{dfbdir}/gfxdrivers/*.so
363 %dir %{dfbdir}/inputdrivers
364 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_joystick.so
365 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_keyboard.so
366 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_linux_input.so
367 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_lirc.so
368 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_penmount.so
369 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ps2mouse.so
370 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_serialmouse.so
371 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sonypi.so
372 %dir %{dfbdir}/interfaces
373 %dir %{dfbdir}/interfaces/IDirectFB
374 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFB/lib*.so
375 %dir %{dfbdir}/interfaces/IDirectFBDataBuffer
376 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBDataBuffer/lib*.so
377 %dir %{dfbdir}/interfaces/IDirectFBDisplayLayer
378 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBDisplayLayer/lib*.so
379 %dir %{dfbdir}/interfaces/IDirectFBEventBuffer
380 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBEventBuffer/lib*.so
381 %dir %{dfbdir}/interfaces/IDirectFBFont
382 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_default.so
383 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_dgiff.so
384 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_dispatcher.so
385 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_requestor.so
386 %dir %{dfbdir}/interfaces/IDirectFBImageProvider
387 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_dfiff.so
388 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_dispatcher.so
389 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.so
390 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_mpeg2.so
391 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_requestor.so
392 %dir %{dfbdir}/interfaces/IDirectFBInputDevice
393 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBInputDevice/lib*.so
394 %dir %{dfbdir}/interfaces/IDirectFBPalette
395 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBPalette/lib*.so
396 %dir %{dfbdir}/interfaces/IDirectFBScreen
397 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBScreen/lib*.so
398 %dir %{dfbdir}/interfaces/IDirectFBSurface
399 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBSurface/lib*.so
400 %dir %{dfbdir}/interfaces/IDirectFBVideoProvider
401 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_gif.so
402 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_v4l.so
403 %dir %{dfbdir}/interfaces/IDirectFBWindow
404 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBWindow/lib*.so
405 %dir %{dfbdir}/systems
406 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_fbdev.so
408 %attr(755,root,root) %{dfbdir}/wm/*.so
409 %{_datadir}/directfb-%{version}
410 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/directfbrc
411 %{_mandir}/man1/dfbg.1*
415 %defattr(644,root,root,755)
416 %attr(755,root,root) %{_bindir}/directfb-config
417 %attr(755,root,root) %{_bindir}/directfb-csource
418 %attr(755,root,root) %{_libdir}/libdirect.so
419 %attr(755,root,root) %{_libdir}/libdirectfb.so
420 %attr(755,root,root) %{_libdir}/libfusion.so
421 %attr(755,root,root) %{_libdir}/libuniquewm.so
422 %attr(755,root,root) %{_libdir}/libvoodoo.so
423 %{_libdir}/libdirect.la
424 %{_libdir}/libdirectfb.la
425 %{_libdir}/libfusion.la
426 %{_libdir}/libuniquewm.la
427 %{_libdir}/libvoodoo.la
428 %{_includedir}/directfb
429 %{_includedir}/directfb-internal
430 %{_pkgconfigdir}/*.pc
431 %{_mandir}/man1/directfb-csource.1*
434 %defattr(644,root,root,755)
436 %{dfbdir}/gfxdrivers/*.[alo]*
437 %{dfbdir}/inputdrivers/*.[alo]*
438 %{dfbdir}/interfaces/*/*.[alo]*
439 %{dfbdir}/systems/*.[alo]*
440 %{dfbdir}/wm/*.[alo]*
443 %defattr(644,root,root,755)
444 %doc docs/html/*.{html,png}
445 %{_examplesdir}/%{name}-%{version}
448 %defattr(644,root,root,755)
449 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sdlinput.so
450 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_sdl.so
453 %defattr(644,root,root,755)
454 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_vncinput.so
455 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_vnc.so
458 %defattr(644,root,root,755)
459 %doc systems/x11/README
460 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_x11input.so
461 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_x11.so
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_ft2.so
468 %defattr(644,root,root,755)
469 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.so
472 %defattr(644,root,root,755)
473 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.so
476 %defattr(644,root,root,755)
477 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_elo.so
480 %defattr(644,root,root,755)
481 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_dynapro.so
484 %defattr(644,root,root,755)
485 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_gunze.so
488 %defattr(644,root,root,755)
489 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_mutouch.so
492 %defattr(644,root,root,755)
493 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ucb1x00_ts.so
496 %defattr(644,root,root,755)
497 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_wm97xx_ts.so