3 # _without_flash - don't build FLASH support
4 # _without_mpg - don't build support for MPG/MPEG3
6 Summary: DirectFB - Hardware graphics acceleration
7 Summary(pl): DirectFB - Wspomaganie grafiki
13 Source0: http://www.directfb.org/download/%{name}/%{name}-%{version}.tar.gz
14 Source1: http://www.directfb.org/download/DirectFB/DFBTutorials-0.5.0.tar.gz
15 Patch0: %{name}-am.patch
16 URL: http://www.directfb.org/
17 #BuildRequires: SDL-devel
18 BuildRequires: autoconf
19 BuildRequires: automake
20 %{!?_without_flash:BuildRequires: flash-devel >= 0.4.10-5}
21 BuildRequires: freetype-devel >= 2.0.2
22 BuildRequires: libjpeg-devel >= 6b
23 %{!?_without_mpg:BuildRequires: libmpeg3-devel}
24 BuildRequires: libpng-devel >= 1.0
25 BuildRequires: libtool
26 BuildRequires: zlib-devel >= 1.1.3
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define dfbdir %{_libdir}/directfb-%{version}
32 DirectFB hardware graphics acceleration - libraries.
35 Wspomaganie grafiki DirectFB - biblioteki.
38 Summary: DirectFB - development package
39 Summary(pl): DirectFB - pliki nag³ówkowe
40 Group: Development/Libraries
41 Requires: %{name} = %{version}
44 DirectFB header files.
46 %description devel -l pl
47 Pliki nag³ówkowe dla DirectFB.
50 Summary: DirectFB static libraries
51 Summary(pl): Statyczne biblioteki DirectFB
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}
56 DirectFB static libraries.
58 %description static -l pl
59 Statyczne biblioteki DirectFB.
62 Summary: DirectFB - documentation
63 Summary(pl): DirectFB - dokumentacja
64 Group: Development/Libraries
67 DirectFB documentation and tutorials.
69 %description doc -l pl
70 Dokumentacja dla systemu DirectFB wraz z wprowadzeniem.
73 Summary: FreeType2 font provider for DirectFB
74 Summary(pl): DirectFB - wtyczka dostarczaj±ca fonty poprzez FreeType2
76 Requires: %{name} = %{version}
79 This package contains FreeType2 font provider for DirectFB.
81 %description font-ft2 -l pl
82 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± fonty poprzez
86 Summary: JPEG image provider for DirectFB
87 Summary(pl): DirectFB - wtyczka dostarczaj±ca grafikê JPEG
89 Requires: %{name} = %{version}
91 %description image-jpeg
92 This package contains JPEG image provider for DirectFB.
94 %description image-jpeg -l pl
95 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± grafikê JPEG.
98 Summary: PNG image provider for DirectFB
99 Summary(pl): DirectFB - wtyczka dostarczaj±ca grafikê PNG
101 Requires: %{name} = %{version}
103 %description image-png
104 This package contains PNG image provider for DirectFB.
106 %description image-png -l pl
107 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± grafikê PNG.
109 %package video-libmpeg3
110 Summary: MPEG video provider for DirectFB
111 Summary(pl): DirectFB - wtyczka dostarczaj±ca obraz MPEG
113 Requires: %{name} = %{version}
115 %description video-libmpeg3
116 This package contains MPEG (MPEG-1 and MPEG-2) video provider for
117 DirectFB. It uses libmpeg3 library.
119 %description video-libmpeg3 -l pl
120 Ten pakiet zawiera wtyczkê dla DirectFB dostarczajac± obraz MPEG
121 (MPEG-1 i MPEG-2) przy u¿yciu biblioteki libmpeg3.
124 Summary: ShockWave Flash video provider for DirectFB
125 Summary(pl): DirectFB - wtyczka dostarczaj±ca obraz ShockWave Flash
127 Requires: %{name} = %{version}
129 %description video-swf
130 This package contains SWF (ShockWave Flash) video provider for
131 DirectFB. It uses flash library.
133 %description video-swf -l pl
134 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± obraz SWF
135 (ShockWave Flash) przy u¿yciu biblioteki flash.
147 # paths for libmpeg3 and libflash
148 CPPFLAGS="-I/usr/include/libmpeg3 -I/usr/X11R6/include"
149 LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
150 # SDL core disabled (used directly, not through plugin - too many deps)
151 # MMX and SSE are detected at runtime, so it's safe to enable
153 --disable-maintainer-mode \
156 --disable-fast-install \
158 %{?_without_flash:--disable-flash} \
159 %{?_without_mpg:--disable-libmpeg3} \
162 %ifarch i586 i686 athlon
172 rm -rf $RPM_BUILD_ROOT
173 %{__make} DESTDIR=$RPM_BUILD_ROOT install
175 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
176 cp -rf DFBTutorials* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
179 rm -rf $RPM_BUILD_ROOT
181 %post -p /sbin/ldconfig
182 %postun -p /sbin/ldconfig
185 %defattr(644,root,root,755)
186 %attr(755,root,root) %{_libdir}/lib*.so.*.*
188 %dir %{dfbdir}/gfxdrivers
189 %attr(755,root,root) %{dfbdir}/gfxdrivers/*.??
190 %dir %{dfbdir}/inputdrivers
191 %attr(755,root,root) %{dfbdir}/inputdrivers/*.??
192 %dir %{dfbdir}/interfaces
193 %dir %{dfbdir}/interfaces/IDirectFBFont
194 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_default.??
195 %dir %{dfbdir}/interfaces/IDirectFBImageProvider
196 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.??
197 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_mpeg2.??
198 %dir %{dfbdir}/interfaces/IDirectFBVideoProvider
199 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_v4l.??
200 %{_datadir}/directfb-%{version}
204 %defattr(644,root,root,755)
205 %attr(755,root,root) %{_bindir}/directfb-config
206 %attr(755,root,root) %{_bindir}/directfb-csource
207 %{_includedir}/directfb
208 %{_includedir}/directfb-internal
212 %{_mandir}/man1/directfb-csource.1*
215 %defattr(644,root,root,755)
217 %{dfbdir}/gfxdrivers/*.a
218 %{dfbdir}/inputdrivers/*.a
219 %{dfbdir}/interfaces/*/*.a
222 %defattr(644,root,root,755)
224 %{_examplesdir}/%{name}-%{version}
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_ft2.??
231 %defattr(644,root,root,755)
232 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.??
235 %defattr(644,root,root,755)
236 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.??
238 %if %{!?_without_mpg:1}%{?_without_mpg:0}
239 %files video-libmpeg3
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_libmpeg3.??
244 %if %{!?_without_flash:1}%{?_without_flash:0}
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_swf.??