3 # _without_mpg - don't build support for MPG/MPEG3
5 Summary: DirectFB - Hardware graphics acceleration
6 Summary(pl): DirectFB - Wspomaganie grafiki
12 Source0: http://www.directfb.org/download/%{name}/%{name}-%{version}.tar.gz
13 # Source0-md5: e42e8ae43f0ad873643f73cc0a9ae7d0
14 Source1: http://www.directfb.org/download/DirectFB/DFBTutorials-0.5.0.tar.gz
15 # Source1-md5: 13e443a64bddd68835b574045d9025e9
16 Patch0: %{name}-am.patch
17 Patch1: %{name}-pmake.patch
18 URL: http://www.directfb.org/
19 BuildRequires: SDL-devel
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: freetype-devel >= 2.0.2
23 BuildRequires: libjpeg-devel >= 6b
24 %{!?_without_mpg:BuildRequires: libmpeg3-devel}
25 BuildRequires: libpng-devel >= 1.0
26 BuildRequires: libtool
27 BuildRequires: zlib-devel >= 1.1.3
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define dfbdir %{_libdir}/directfb-%{version}
33 DirectFB hardware graphics acceleration - libraries.
36 Wspomaganie grafiki DirectFB - biblioteki.
39 Summary: DirectFB - development package
40 Summary(pl): DirectFB - pliki nag³ówkowe
41 Group: Development/Libraries
42 Requires: %{name} = %{version}
45 DirectFB header files.
47 %description devel -l pl
48 Pliki nag³ówkowe dla DirectFB.
51 Summary: DirectFB static libraries
52 Summary(pl): Statyczne biblioteki DirectFB
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}
57 DirectFB static libraries.
59 %description static -l pl
60 Statyczne biblioteki DirectFB.
63 Summary: DirectFB - documentation
64 Summary(pl): DirectFB - dokumentacja
65 Group: Development/Libraries
68 DirectFB documentation and tutorials.
70 %description doc -l pl
71 Dokumentacja dla systemu DirectFB wraz z wprowadzeniem.
74 Summary: SDL core system for DirectFB
75 Summary(pl): System SDL dla DirectFB
77 Requires: %{name} = %{version}
80 This package contains SDL core system module for DirectFB.
82 %description core-sdl -l pl
83 Ten pakiet zawiera modu³ systemu SDL dla DirectFB.
86 Summary: FreeType2 font provider for DirectFB
87 Summary(pl): DirectFB - wtyczka dostarczaj±ca fonty poprzez FreeType2
89 Requires: %{name} = %{version}
92 This package contains FreeType2 font provider for DirectFB.
94 %description font-ft2 -l pl
95 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± fonty poprzez
99 Summary: JPEG image provider for DirectFB
100 Summary(pl): DirectFB - wtyczka dostarczaj±ca grafikê JPEG
102 Requires: %{name} = %{version}
104 %description image-jpeg
105 This package contains JPEG image provider for DirectFB.
107 %description image-jpeg -l pl
108 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± grafikê JPEG.
111 Summary: PNG image provider for DirectFB
112 Summary(pl): DirectFB - wtyczka dostarczaj±ca grafikê PNG
114 Requires: %{name} = %{version}
116 %description image-png
117 This package contains PNG image provider for DirectFB.
119 %description image-png -l pl
120 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± grafikê PNG.
122 %package video-libmpeg3
123 Summary: MPEG video provider for DirectFB
124 Summary(pl): DirectFB - wtyczka dostarczaj±ca obraz MPEG
126 Requires: %{name} = %{version}
128 %description video-libmpeg3
129 This package contains MPEG (MPEG-1 and MPEG-2) video provider for
130 DirectFB. It uses libmpeg3 library.
132 %description video-libmpeg3 -l pl
133 Ten pakiet zawiera wtyczkê dla DirectFB dostarczajac± obraz MPEG
134 (MPEG-1 i MPEG-2) przy u¿yciu biblioteki libmpeg3.
146 CPPFLAGS="-I/usr/include/libmpeg3"
147 # MMX and SSE are detected at runtime, so it's safe to enable
149 --disable-maintainer-mode \
152 --enable-fast-install \
154 %{?_without_mpg:--disable-libmpeg3} \
156 %ifarch i586 i686 athlon
166 rm -rf $RPM_BUILD_ROOT
167 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
170 DESTDIR=$RPM_BUILD_ROOT
172 cp -rf DFBTutorials* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
175 rm -rf $RPM_BUILD_ROOT
177 %post -p /sbin/ldconfig
178 %postun -p /sbin/ldconfig
181 %defattr(644,root,root,755)
182 # dbfdump and dfbg require multi-application core - useless now
183 %attr(755,root,root) %{_bindir}/dfbinfo
184 %attr(755,root,root) %{_libdir}/lib*.so.*.*
186 %dir %{dfbdir}/gfxdrivers
187 %attr(755,root,root) %{dfbdir}/gfxdrivers/*.so
188 %dir %{dfbdir}/inputdrivers
189 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_joystick.so
190 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_keyboard.so
191 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_lirc.so
192 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_ps2mouse.so
193 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_serialmouse.so
194 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sonypi.so
195 %dir %{dfbdir}/interfaces
196 %dir %{dfbdir}/interfaces/IDirectFBFont
197 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_default.so
198 %dir %{dfbdir}/interfaces/IDirectFBImageProvider
199 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.so
200 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_mpeg2.so
201 %dir %{dfbdir}/interfaces/IDirectFBVideoProvider
202 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_v4l.so
203 %dir %{dfbdir}/systems
204 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_fbdev.so
205 %{_datadir}/directfb-%{version}
209 %defattr(644,root,root,755)
210 %attr(755,root,root) %{_bindir}/directfb-config
211 %attr(755,root,root) %{_bindir}/directfb-csource
212 %attr(755,root,root) %{_libdir}/*.so
214 %{_includedir}/directfb
215 %{_includedir}/directfb-internal
217 %{_mandir}/man1/directfb-csource.1*
220 %defattr(644,root,root,755)
222 %{dfbdir}/gfxdrivers/*.*a
223 %{dfbdir}/inputdrivers/*.*a
224 %{dfbdir}/interfaces/*/*.*a
225 %{dfbdir}/systems/*.*a
228 %defattr(644,root,root,755)
230 %{_examplesdir}/%{name}-%{version}
233 %defattr(644,root,root,755)
234 %attr(755,root,root) %{dfbdir}/inputdrivers/libdirectfb_sdlinput.so
235 %attr(755,root,root) %{dfbdir}/systems/libdirectfb_sdl.so
238 %defattr(644,root,root,755)
239 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_ft2.so
242 %defattr(644,root,root,755)
243 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.so
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.so
249 %if 0%{!?_without_mpg:1}
250 %files video-libmpeg3
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_libmpeg3.so