3 %bcond_without mpg # don't build support for MPG/MPEG3
5 Summary: DirectFB - Hardware graphics acceleration
6 Summary(pl): DirectFB - Wspomaganie grafiki
13 Source0: http://www.directfb.org/download/%{name}/%{name}-%{version}.tar.gz
14 # Source0-md5: e42e8ae43f0ad873643f73cc0a9ae7d0
15 Source1: http://www.directfb.org/download/DirectFB/DFBTutorials-0.5.0.tar.gz
16 # Source1-md5: 13e443a64bddd68835b574045d9025e9
17 Patch0: %{name}-am.patch
18 Patch1: %{name}-pmake.patch
19 URL: http://www.directfb.org/
20 BuildRequires: SDL-devel
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: freetype-devel >= 2.0.2
24 BuildRequires: libjpeg-devel >= 6b
25 %{?with_mpg:BuildRequires: libmpeg3-devel}
26 BuildRequires: libpng-devel >= 1.0
27 BuildRequires: libtool
28 BuildRequires: zlib-devel >= 1.1.3
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define dfbdir %{_libdir}/directfb-%{version}
34 DirectFB hardware graphics acceleration - libraries.
37 Wspomaganie grafiki DirectFB - biblioteki.
40 Summary: DirectFB - development package
41 Summary(pl): DirectFB - pliki nag³ówkowe
42 Group: Development/Libraries
43 Requires: %{name} = %{epoch}:%{version}
46 DirectFB header files.
48 %description devel -l pl
49 Pliki nag³ówkowe dla DirectFB.
52 Summary: DirectFB static libraries
53 Summary(pl): Statyczne biblioteki DirectFB
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{epoch}:%{version}
58 DirectFB static libraries.
60 %description static -l pl
61 Statyczne biblioteki DirectFB.
64 Summary: DirectFB - documentation
65 Summary(pl): DirectFB - dokumentacja
66 Group: Development/Libraries
69 DirectFB documentation and tutorials.
71 %description doc -l pl
72 Dokumentacja dla systemu DirectFB wraz z wprowadzeniem.
75 Summary: SDL core system for DirectFB
76 Summary(pl): System SDL dla DirectFB
78 Requires: %{name} = %{epoch}:%{version}
81 This package contains SDL core system module for DirectFB.
83 %description core-sdl -l pl
84 Ten pakiet zawiera modu³ systemu SDL dla DirectFB.
87 Summary: FreeType2 font provider for DirectFB
88 Summary(pl): DirectFB - wtyczka dostarczaj±ca fonty poprzez FreeType2
90 Requires: %{name} = %{epoch}:%{version}
93 This package contains FreeType2 font provider for DirectFB.
95 %description font-ft2 -l pl
96 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± fonty poprzez
100 Summary: JPEG image provider for DirectFB
101 Summary(pl): DirectFB - wtyczka dostarczaj±ca grafikê JPEG
103 Requires: %{name} = %{epoch}:%{version}
105 %description image-jpeg
106 This package contains JPEG image provider for DirectFB.
108 %description image-jpeg -l pl
109 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± grafikê JPEG.
112 Summary: PNG image provider for DirectFB
113 Summary(pl): DirectFB - wtyczka dostarczaj±ca grafikê PNG
115 Requires: %{name} = %{epoch}:%{version}
117 %description image-png
118 This package contains PNG image provider for DirectFB.
120 %description image-png -l pl
121 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± grafikê PNG.
123 %package video-libmpeg3
124 Summary: MPEG video provider for DirectFB
125 Summary(pl): DirectFB - wtyczka dostarczaj±ca obraz MPEG
127 Requires: %{name} = %{epoch}:%{version}
129 %description video-libmpeg3
130 This package contains MPEG (MPEG-1 and MPEG-2) video provider for
131 DirectFB. It uses libmpeg3 library.
133 %description video-libmpeg3 -l pl
134 Ten pakiet zawiera wtyczkê dla DirectFB dostarczajac± obraz MPEG
135 (MPEG-1 i MPEG-2) przy u¿yciu biblioteki libmpeg3.
147 CPPFLAGS="-I/usr/include/libmpeg3"
148 # MMX and SSE are detected at runtime, so it's safe to enable
150 --disable-maintainer-mode \
153 --enable-fast-install \
155 %{!?with_mpg:--disable-libmpeg3} \
161 %ifnarch i386 i486 i586
169 rm -rf $RPM_BUILD_ROOT
170 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
173 DESTDIR=$RPM_BUILD_ROOT
175 cp -rf DFBTutorials* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
178 rm -rf $RPM_BUILD_ROOT
180 %post -p /sbin/ldconfig
181 %postun -p /sbin/ldconfig
184 %defattr(644,root,root,755)
185 # dbfdump and dfbg require multi-application core - useless now
186 %attr(755,root,root) %{_bindir}/dfbinfo
187 %attr(755,root,root) %{_libdir}/lib*.so.*.*
189 %dir %{dfbdir}/gfxdrivers
190 %attr(755,root,root) %{dfbdir}/gfxdrivers/*.so
191 %dir %{dfbdir}/inputdrivers
192 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_joystick.so
193 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_keyboard.so
194 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_lirc.so
195 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ps2mouse.so
196 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_serialmouse.so
197 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sonypi.so
198 %dir %{dfbdir}/interfaces
199 %dir %{dfbdir}/interfaces/IDirectFBFont
200 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_default.so
201 %dir %{dfbdir}/interfaces/IDirectFBImageProvider
202 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.so
203 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_mpeg2.so
204 %dir %{dfbdir}/interfaces/IDirectFBVideoProvider
205 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_v4l.so
206 %dir %{dfbdir}/systems
207 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_fbdev.so
208 %{_datadir}/directfb-%{version}
212 %defattr(644,root,root,755)
213 %attr(755,root,root) %{_bindir}/directfb-config
214 %attr(755,root,root) %{_bindir}/directfb-csource
215 %attr(755,root,root) %{_libdir}/*.so
217 %{_includedir}/directfb
218 %{_includedir}/directfb-internal
220 %{_mandir}/man1/directfb-csource.1*
223 %defattr(644,root,root,755)
225 %{dfbdir}/gfxdrivers/*.*a
226 %{dfbdir}/inputdrivers/*.*a
227 %{dfbdir}/interfaces/*/*.*a
228 %{dfbdir}/systems/*.*a
231 %defattr(644,root,root,755)
233 %{_examplesdir}/%{name}-%{version}
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sdlinput.so
238 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_sdl.so
241 %defattr(644,root,root,755)
242 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_ft2.so
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.so
249 %defattr(644,root,root,755)
250 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.so
253 %files video-libmpeg3
254 %defattr(644,root,root,755)
255 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_libmpeg3.so