3 %bcond_without flash # don't build FLASH video provider
4 %bcond_without mpg # don't build support for MPG/MPEG3
6 Summary: Additional providers and drivers for DirectFB
7 Summary(pl.UTF-8): DirectFB - dodatkowe wtyczki i sterowniki do DirectFB
13 Source0: http://www.directfb.org/download/DirectFB-extra/%{name}-%{version}.tar.gz
14 # Source0-md5: 2d744ad06139640857b988d244275235
15 Patch0: %{name}-acfix.patch
16 Patch1: %{name}-mpeg3_open.patch
17 URL: http://www.directfb.org/
18 BuildRequires: DirectFB-devel >= 1:%{version}
19 BuildRequires: FusionSound-devel >= 0.9.25
20 BuildRequires: autoconf >= 2.52
21 BuildRequires: automake
22 BuildRequires: ffmpeg-devel
23 %{?with_flash:BuildRequires: gplflash-devel >= 0.4.10-5}
24 BuildRequires: imlib2-devel
25 %{?with_mpg:BuildRequires: libmpeg3-devel}
26 BuildRequires: libsvg-cairo-devel >= 0.1.6
27 BuildRequires: libtool
28 BuildRequires: openquicktime-devel
29 BuildRequires: pkgconfig >= 1:0.9
30 BuildRequires: swfdec-devel >= 0.3.0
31 BuildRequires: xine-lib-devel >= 2:1.0-0.rc3
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define dfbdir %(pkg-config --variable=moduledir directfb-internal)
37 This package contains additional image/video/font providers and
38 graphics/input drivers (currently Imlib2 image provider and
39 OpenQuicktime video provider).
41 %description -l pl.UTF-8
42 Ten pakiet zawiera dodatkowe wtyczki dostarczające grafikę, obraz i
43 fonty oraz sterowniki grafiki i wejściowe (aktualnie: wtyczkę
44 dostarczającą grafikę poprzez Imlib2 oraz wtyczkę dostarczającą obraz
47 %package -n DirectFB-image-bmp
48 Summary: BMP image provider for DirectFB
49 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę BMP
53 %description -n DirectFB-image-bmp
54 This package contains BMP mage provider for DirectFB.
56 %description -n DirectFB-image-bmp -l pl.UTF-8
57 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę BMP.
59 %package -n DirectFB-image-imlib2
60 Summary: Imlib2 image provider for DirectFB
61 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę poprzez Imlib2
65 %description -n DirectFB-image-imlib2
66 This package contains image provider based on Imlib2 for DirectFB.
68 %description -n DirectFB-image-imlib2 -l pl.UTF-8
69 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę poprzez
72 %package -n DirectFB-image-pnm
73 Summary: PNM image provider for DirectFB
74 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę PNM
78 %description -n DirectFB-image-pnm
79 This package contains PNM image provider. It supports PBM, PGM and PPM
80 formats (both ASCII and RAW).
82 %description -n DirectFB-image-pnm -l pl.UTF-8
83 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę PNM.
84 Obsługuje formaty PBM, PGM i PPM (zarówno ASCII, jak i binarne).
86 %package -n DirectFB-image-svg
87 Summary: SVG image provider for DirectFB
88 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę SVG
92 %description -n DirectFB-image-svg
93 This package contains SVG image provider using Cairo library.
95 %description -n DirectFB-image-svg -l pl.UTF-8
96 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę SVG przy
97 użyciu biblioteki Cairo.
99 %package -n DirectFB-video-ffmpeg
100 Summary: FFmpeg video provider for DirectFB
101 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz FFmpeg
103 %requires_eq DirectFB
104 %requires_eq FusionSound
106 %description -n DirectFB-video-ffmpeg
107 DirectFB video provider using FFmpeg codecs.
109 %description -n DirectFB-video-ffmpeg -l pl.UTF-8
110 Ten pakiet zawiera wtyczkę dla DirectFB dostarczajacą obraz przy
111 użyciu kodeków FFmpeg.
113 %package -n DirectFB-video-libmpeg3
114 Summary: MPEG video provider for DirectFB
115 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz MPEG
117 %requires_eq DirectFB
119 %description -n DirectFB-video-libmpeg3
120 This package contains MPEG (MPEG-1 and MPEG-2) video provider for
121 DirectFB. It uses libmpeg3 library.
123 %description -n DirectFB-video-libmpeg3 -l pl.UTF-8
124 Ten pakiet zawiera wtyczkę dla DirectFB dostarczajacą obraz MPEG
125 (MPEG-1 i MPEG-2) przy użyciu biblioteki libmpeg3.
127 %package -n DirectFB-video-openquicktime
128 Summary: OpenQuicktime video provider for DirectFB
129 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz OpenQuicktime
131 %requires_eq DirectFB
133 %description -n DirectFB-video-openquicktime
134 This package contains OpenQuicktime video provider for DirectFB. It
135 supports all RGB and YUV formats and does audio playback.
137 %description -n DirectFB-video-openquicktime -l pl.UTF-8
138 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz
139 OpenQuicktime. Obsługuje wszystkie formaty RGB i YUV oraz odtwarza
142 %package -n DirectFB-video-swf
143 Summary: ShockWave Flash video provider for DirectFB
144 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz ShockWave Flash
146 %requires_eq DirectFB
148 %description -n DirectFB-video-swf
149 This package contains SWF (ShockWave Flash) video provider for
150 DirectFB. It uses flash library.
152 %description -n DirectFB-video-swf -l pl.UTF-8
153 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz SWF
154 (ShockWave Flash) przy użyciu biblioteki flash.
156 %package -n DirectFB-video-swfdec
157 Summary: ShockWave Flash video provider for DirectFB
158 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz ShockWave Flash
160 %requires_eq DirectFB
162 %description -n DirectFB-video-swfdec
163 This package contains SWF (ShockWave Flash) video provider for
164 DirectFB. It uses swfdec library.
166 %description -n DirectFB-video-swfdec -l pl.UTF-8
167 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz SWF
168 (ShockWave Flash) przy użyciu biblioteki swfdec.
170 %package -n DirectFB-video-xine
171 Summary: XINE video provider for DirectFB
172 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz XINE
174 %requires_eq DirectFB
175 %requires_eq xine-lib
177 %description -n DirectFB-video-xine
178 This package contains video provider for DirectFB which uses XINE
179 library and plugins. It handles a wide range of video formats.
181 %description -n DirectFB-video-xine -l pl.UTF-8
182 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz przy
183 użyciu biblioteki i wtyczek XINE. Obsługuje szeroki zakres formatów
186 %package -n xine-ui-dfb
187 Summary: DirectFB-based XINE UI
188 Summary(pl.UTF-8): Interfejs użytkownika XINE oparty na DirectFB
189 Group: Applications/Multimedia
190 %requires_eq DirectFB
191 Requires: xine-lib >= 2:1.0-0.rc3
193 %description -n xine-ui-dfb
194 DirectFB-based XINE UI. This package contains also DirectFB video
195 output plugin for XINE.
197 %description -n xine-ui-dfb -l pl.UTF-8
198 Interfejs użytkownika XINE oparty na DirectFB. Zawiera także wtyczkę
199 wyjścia obrazu DirectFB dla XINE.
212 CPPFLAGS="-I/usr/include/libmpeg3"
215 %{?with_flash:--enable-flash} \
216 %{?with_mpg:--enable-libmpeg3} \
217 --enable-openquicktime \
225 rm -rf $RPM_BUILD_ROOT
228 DESTDIR=$RPM_BUILD_ROOT \
231 rm -f $RPM_BUILD_ROOT%{dfbdir}/interfaces/*/*.la \
232 $RPM_BUILD_ROOT%{_libdir}/xine/plugins/*/*.la
235 rm -rf $RPM_BUILD_ROOT
237 %files -n DirectFB-image-bmp
238 %defattr(644,root,root,755)
239 %doc ChangeLog README
240 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_bmp.so
242 %files -n DirectFB-image-imlib2
243 %defattr(644,root,root,755)
244 %doc ChangeLog README
245 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_imlib2.so
247 %files -n DirectFB-image-pnm
248 %defattr(644,root,root,755)
249 %doc ChangeLog README
250 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_pnm.so
252 %files -n DirectFB-image-svg
253 %defattr(644,root,root,755)
254 %doc ChangeLog README
255 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_svg.so
257 %files -n DirectFB-video-ffmpeg
258 %defattr(644,root,root,755)
259 %doc ChangeLog README
260 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_ffmpeg.so
263 %files -n DirectFB-video-libmpeg3
264 %defattr(644,root,root,755)
265 %doc ChangeLog README
266 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_libmpeg3.so
269 %files -n DirectFB-video-openquicktime
270 %defattr(644,root,root,755)
271 %doc ChangeLog README
272 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_openquicktime.so
275 %files -n DirectFB-video-swf
276 %defattr(644,root,root,755)
277 %doc ChangeLog README
278 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_swf.so
281 %files -n DirectFB-video-swfdec
282 %defattr(644,root,root,755)
283 %doc ChangeLog README
284 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_swfdec.so
286 %files -n DirectFB-video-xine
287 %defattr(644,root,root,755)
288 %doc ChangeLog README
289 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_xine.so
291 %files -n xine-ui-dfb
292 %defattr(644,root,root,755)
293 %attr(755,root,root) %{_bindir}/df_xine
294 %attr(755,root,root) %{_libdir}/xine/plugins/*/xineplug_vo_out_dfb.so