1 # NOTE: versions >= 1.7.0 have been integrated into DirectFB.spec
4 %bcond_without flash # don't build FLASH video provider
5 %bcond_without mpg # don't build support for MPG/MPEG3
6 %bcond_without swfdec # don't build swfdec video provider
8 # broken currently (needs update for DirectFB 1.2.x)
10 # needs update for swfdec 0.6.x
12 Summary: Additional providers and drivers for DirectFB
13 Summary(pl.UTF-8): DirectFB - dodatkowe wtyczki i sterowniki do DirectFB
17 Release: 0.%{subver}.0.1
20 Source0: http://www.directfb.org/downloads/Extras/%{name}-%{version}-%{subver}.tar.gz
21 # Source0-md5: c3c160c167c20f320b0c0562168d0579
22 Patch0: %{name}-acfix.patch
23 Patch1: %{name}-mpeg3_open.patch
24 URL: http://www.directfb.org/
25 BuildRequires: DirectFB-devel >= 1:%{version}
26 BuildRequires: FusionSound-devel >= 1.1.0
27 BuildRequires: autoconf >= 2.52
28 BuildRequires: automake
29 BuildRequires: ffmpeg-devel
30 %{?with_flash:BuildRequires: gplflash-devel >= 0.4.10-5}
31 BuildRequires: imlib2-devel
32 BuildRequires: jasper-devel
33 %{?with_mpg:BuildRequires: libmpeg3-devel}
34 BuildRequires: libsvg-cairo-devel >= 0.1.6
35 BuildRequires: libtool
36 BuildRequires: openquicktime-devel
37 BuildRequires: pkgconfig >= 1:0.9
38 %{?with_swfdec:BuildRequires: swfdec-devel >= 0.5.0}
39 BuildRequires: xine-lib-devel >= 2:1.0.0
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 %define dfbdir %(pkg-config --variable=moduledir directfb-internal)
45 This package contains additional image/video/font providers and
46 graphics/input drivers (currently Imlib2 image provider and
47 OpenQuicktime video provider).
49 %description -l pl.UTF-8
50 Ten pakiet zawiera dodatkowe wtyczki dostarczające grafikę, obraz i
51 fonty oraz sterowniki grafiki i wejściowe (aktualnie: wtyczkę
52 dostarczającą grafikę poprzez Imlib2 oraz wtyczkę dostarczającą obraz
55 %package -n DirectFB-image-bmp
56 Summary: BMP image provider for DirectFB
57 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę BMP
61 %description -n DirectFB-image-bmp
62 This package contains BMP mage provider for DirectFB.
64 %description -n DirectFB-image-bmp -l pl.UTF-8
65 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę BMP.
67 %package -n DirectFB-image-imlib2
68 Summary: Imlib2 image provider for DirectFB
69 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę poprzez Imlib2
73 %description -n DirectFB-image-imlib2
74 This package contains image provider based on Imlib2 for DirectFB.
76 %description -n DirectFB-image-imlib2 -l pl.UTF-8
77 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę poprzez
80 %package -n DirectFB-image-jpeg2000
81 Summary: JPEG-2000 image provider for DirectFB
82 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę JPEG-2000
86 %description -n DirectFB-image-jpeg2000
87 This package contains JPEG-2000 image provider.
89 %description -n DirectFB-image-jpeg2000 -l pl.UTF-8
90 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę
93 %package -n DirectFB-image-mpeg2
94 Summary: MPEG-2 image provider for DirectFB
95 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę MPEG-2
99 %description -n DirectFB-image-mpeg2
100 This package contains MPEG-2 image provider.
102 %description -n DirectFB-image-mpeg2 -l pl.UTF-8
103 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę MPEG-2.
105 %package -n DirectFB-image-pnm
106 Summary: PNM image provider for DirectFB
107 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę PNM
109 %requires_eq DirectFB
111 %description -n DirectFB-image-pnm
112 This package contains PNM image provider. It supports PBM, PGM and PPM
113 formats (both ASCII and RAW).
115 %description -n DirectFB-image-pnm -l pl.UTF-8
116 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę PNM.
117 Obsługuje formaty PBM, PGM i PPM (zarówno ASCII, jak i binarne).
119 %package -n DirectFB-image-svg
120 Summary: SVG image provider for DirectFB
121 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę SVG
123 %requires_eq DirectFB
125 %description -n DirectFB-image-svg
126 This package contains SVG image provider using Cairo library.
128 %description -n DirectFB-image-svg -l pl.UTF-8
129 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę SVG przy
130 użyciu biblioteki Cairo.
132 %package -n DirectFB-video-ffmpeg
133 Summary: FFmpeg video provider for DirectFB
134 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz FFmpeg
136 %requires_eq DirectFB
137 %requires_eq FusionSound
139 %description -n DirectFB-video-ffmpeg
140 DirectFB video provider using FFmpeg codecs.
142 %description -n DirectFB-video-ffmpeg -l pl.UTF-8
143 Ten pakiet zawiera wtyczkę dla DirectFB dostarczajacą obraz przy
144 użyciu kodeków FFmpeg.
146 %package -n DirectFB-video-libmpeg3
147 Summary: MPEG video provider for DirectFB
148 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz MPEG
150 %requires_eq DirectFB
152 %description -n DirectFB-video-libmpeg3
153 This package contains MPEG (MPEG-1 and MPEG-2) video provider for
154 DirectFB. It uses libmpeg3 library.
156 %description -n DirectFB-video-libmpeg3 -l pl.UTF-8
157 Ten pakiet zawiera wtyczkę dla DirectFB dostarczajacą obraz MPEG
158 (MPEG-1 i MPEG-2) przy użyciu biblioteki libmpeg3.
160 %package -n DirectFB-video-openquicktime
161 Summary: OpenQuicktime video provider for DirectFB
162 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz OpenQuicktime
164 %requires_eq DirectFB
166 %description -n DirectFB-video-openquicktime
167 This package contains OpenQuicktime video provider for DirectFB. It
168 supports all RGB and YUV formats and does audio playback.
170 %description -n DirectFB-video-openquicktime -l pl.UTF-8
171 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz
172 OpenQuicktime. Obsługuje wszystkie formaty RGB i YUV oraz odtwarza
175 %package -n DirectFB-video-swf
176 Summary: ShockWave Flash video provider for DirectFB
177 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz ShockWave Flash
179 %requires_eq DirectFB
181 %description -n DirectFB-video-swf
182 This package contains SWF (ShockWave Flash) video provider for
183 DirectFB. It uses flash library.
185 %description -n DirectFB-video-swf -l pl.UTF-8
186 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz SWF
187 (ShockWave Flash) przy użyciu biblioteki flash.
189 %package -n DirectFB-video-swfdec
190 Summary: ShockWave Flash video provider for DirectFB
191 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz ShockWave Flash
193 %requires_eq DirectFB
195 %description -n DirectFB-video-swfdec
196 This package contains SWF (ShockWave Flash) video provider for
197 DirectFB. It uses swfdec library.
199 %description -n DirectFB-video-swfdec -l pl.UTF-8
200 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz SWF
201 (ShockWave Flash) przy użyciu biblioteki swfdec.
203 %package -n DirectFB-video-xine
204 Summary: XINE video provider for DirectFB
205 Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz XINE
207 %requires_eq DirectFB
208 %requires_eq xine-lib
210 %description -n DirectFB-video-xine
211 This package contains video provider for DirectFB which uses XINE
212 library and plugins. It handles a wide range of video formats.
214 %description -n DirectFB-video-xine -l pl.UTF-8
215 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz przy
216 użyciu biblioteki i wtyczek XINE. Obsługuje szeroki zakres formatów
219 %package -n xine-ui-dfb
220 Summary: DirectFB-based XINE UI
221 Summary(pl.UTF-8): Interfejs użytkownika XINE oparty na DirectFB
222 Group: Applications/Multimedia
223 %requires_eq DirectFB
224 Requires: xine-lib >= 2:1.0-0.rc3
226 %description -n xine-ui-dfb
227 DirectFB-based XINE UI. This package contains also DirectFB video
228 output plugin for XINE.
230 %description -n xine-ui-dfb -l pl.UTF-8
231 Interfejs użytkownika XINE oparty na DirectFB. Zawiera także wtyczkę
232 wyjścia obrazu DirectFB dla XINE.
235 %setup -q -n %{name}-%{version}-%{subver}
245 CPPFLAGS="-I/usr/include/libmpeg3"
248 %{?with_flash:--enable-flash} \
249 %{?with_mpg:--enable-libmpeg3} \
250 --enable-openquicktime \
251 %{!?with_swfdec:--disable-swfdec}
254 FFMPEG_CFLAGS="-I/usr/include/libavcodec -I/usr/include/libavformat" \
258 rm -rf $RPM_BUILD_ROOT
261 DESTDIR=$RPM_BUILD_ROOT \
264 rm -f $RPM_BUILD_ROOT%{dfbdir}/interfaces/*/*.la \
265 $RPM_BUILD_ROOT%{_libdir}/xine/plugins/*/*.la
268 rm -rf $RPM_BUILD_ROOT
270 %files -n DirectFB-image-bmp
271 %defattr(644,root,root,755)
272 %doc ChangeLog README
273 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_bmp.so
275 %files -n DirectFB-image-imlib2
276 %defattr(644,root,root,755)
277 %doc ChangeLog README
278 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_imlib2.so
280 %files -n DirectFB-image-jpeg2000
281 %defattr(644,root,root,755)
282 %doc ChangeLog README
283 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg2000.so
285 %files -n DirectFB-image-mpeg2
286 %defattr(644,root,root,755)
287 %doc ChangeLog README
288 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_mpeg2.so
290 %files -n DirectFB-image-pnm
291 %defattr(644,root,root,755)
292 %doc ChangeLog README
293 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_pnm.so
295 %files -n DirectFB-image-svg
296 %defattr(644,root,root,755)
297 %doc ChangeLog README
298 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_svg.so
300 %files -n DirectFB-video-ffmpeg
301 %defattr(644,root,root,755)
302 %doc ChangeLog README
303 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_ffmpeg.so
306 %files -n DirectFB-video-libmpeg3
307 %defattr(644,root,root,755)
308 %doc ChangeLog README
309 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_libmpeg3.so
312 %files -n DirectFB-video-openquicktime
313 %defattr(644,root,root,755)
314 %doc ChangeLog README
315 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_openquicktime.so
318 %files -n DirectFB-video-swf
319 %defattr(644,root,root,755)
320 %doc ChangeLog README
321 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_swf.so
325 %files -n DirectFB-video-swfdec
326 %defattr(644,root,root,755)
327 %doc ChangeLog README
328 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_swfdec.so
331 %files -n DirectFB-video-xine
332 %defattr(644,root,root,755)
333 %doc ChangeLog README
334 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_xine.so
336 %files -n xine-ui-dfb
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_bindir}/df_xine
339 %attr(755,root,root) %{_libdir}/xine/plugins/*/xineplug_vo_out_dfb.so