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): DirectFB - dodatkowe wtyczki i sterowniki do DirectFB
13 Source0: http://www.directfb.org/download/DirectFB-extra/%{name}-%{version}.tar.gz
14 # Source0-md5: 6ac8776132c745d03573c1956e4cf59e
15 Patch0: %{name}-acfix.patch
16 URL: http://www.directfb.org/
17 BuildRequires: DirectFB-devel >= 1:%{version}
18 BuildRequires: autoconf >= 2.52
19 BuildRequires: automake
20 BuildRequires: FusionSound-devel >= 0.9.18
21 %{?with_flash:BuildRequires: gplflash-devel >= 0.4.10-5}
22 BuildRequires: imlib2-devel
23 %{?with_mpg:BuildRequires: libmpeg3-devel}
24 BuildRequires: libsvg-cairo-devel >= 0.1.6
25 BuildRequires: libtool
26 BuildRequires: openquicktime-devel
27 BuildRequires: pkgconfig >= 1:0.9
28 BuildRequires: swfdec-devel >= 0.3.0
29 BuildRequires: xine-lib-devel >= 2:1.0-0.rc3
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define dfbdir %(pkg-config --variable=moduledir directfb-internal)
35 This package contains additional image/video/font providers and
36 graphics/input drivers (currently Imlib2 image provider and
37 OpenQuicktime video provider).
40 Ten pakiet zawiera dodatkowe wtyczki dostarczaj±ce grafikê, obraz i
41 fonty oraz sterowniki grafiki i wej¶ciowe (aktualnie: wtyczkê
42 dostarczaj±c± grafikê poprzez Imlib2 oraz wtyczkê dostarczaj±c± obraz
45 %package -n DirectFB-image-imlib2
46 Summary: Imlib2 image provider for DirectFB
47 Summary(pl): DirectFB - wtyczka dostarczaj±ca grafikê poprzez Imlib2
51 %description -n DirectFB-image-imlib2
52 This package contains image provider based on Imlib2 for DirectFB.
54 %description -n DirectFB-image-imlib2 -l pl
55 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± grafikê poprzez
58 %package -n DirectFB-image-pnm
59 Summary: PNM image provider for DirectFB
60 Summary(pl): DirectFB - wtyczka dostarczaj±ca grafikê PNM
64 %description -n DirectFB-image-pnm
65 This package contains PNM image provider. It supports PBM, PGM and PPM
66 formats (both ASCII and RAW).
68 %description -n DirectFB-image-pnm -l pl
69 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± grafikê PNM.
70 Obs³uguje formaty PBM, PGM i PPM (zarówno ASCII, jak i binarne).
72 %package -n DirectFB-image-svg
73 Summary: SVG image provider for DirectFB
74 Summary(pl): DirectFB - wtyczka dostarczaj±ca grafikê SVG
78 %description -n DirectFB-image-svg
79 This package contains SVG image provider using Cairo library.
81 %description -n DirectFB-image-svg -l pl
82 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± grafikê SVG
83 przy u¿yciu biblioteki Cairo.
85 %package -n DirectFB-video-libmpeg3
86 Summary: MPEG video provider for DirectFB
87 Summary(pl): DirectFB - wtyczka dostarczaj±ca obraz MPEG
91 %description -n DirectFB-video-libmpeg3
92 This package contains MPEG (MPEG-1 and MPEG-2) video provider for
93 DirectFB. It uses libmpeg3 library.
95 %description -n DirectFB-video-libmpeg3 -l pl
96 Ten pakiet zawiera wtyczkê dla DirectFB dostarczajac± obraz MPEG
97 (MPEG-1 i MPEG-2) przy u¿yciu biblioteki libmpeg3.
99 %package -n DirectFB-video-openquicktime
100 Summary: OpenQuicktime video provider for DirectFB
101 Summary(pl): DirectFB - wtyczka dostarczaj±ca obraz OpenQuicktime
103 %requires_eq DirectFB
105 %description -n DirectFB-video-openquicktime
106 This package contains OpenQuicktime video provider for DirectFB. It
107 supports all RGB and YUV formats and does audio playback.
109 %description -n DirectFB-video-openquicktime -l pl
110 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± obraz
111 OpenQuicktime. Obs³uguje wszystkie formaty RGB i YUV oraz odtwarza
114 %package -n DirectFB-video-swf
115 Summary: ShockWave Flash video provider for DirectFB
116 Summary(pl): DirectFB - wtyczka dostarczaj±ca obraz ShockWave Flash
118 %requires_eq DirectFB
120 %description -n DirectFB-video-swf
121 This package contains SWF (ShockWave Flash) video provider for
122 DirectFB. It uses flash library.
124 %description -n DirectFB-video-swf -l pl
125 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± obraz SWF
126 (ShockWave Flash) przy u¿yciu biblioteki flash.
128 %package -n DirectFB-video-swfdec
129 Summary: ShockWave Flash video provider for DirectFB
130 Summary(pl): DirectFB - wtyczka dostarczaj±ca obraz ShockWave Flash
132 %requires_eq DirectFB
134 %description -n DirectFB-video-swfdec
135 This package contains SWF (ShockWave Flash) video provider for
136 DirectFB. It uses swfdec library.
138 %description -n DirectFB-video-swfdec -l pl
139 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± obraz SWF
140 (ShockWave Flash) przy u¿yciu biblioteki swfdec.
142 %package -n DirectFB-video-xine
143 Summary: XINE video provider for DirectFB
144 Summary(pl): DirectFB - wtyczka dostarczaj±ca obraz XINE
146 %requires_eq DirectFB
147 Requires: xine-lib >= 2:1.0-0.rc3
149 %description -n DirectFB-video-xine
150 This package contains video provider for DirectFB which uses XINE
151 library and plugins. It handles a wide range of video formats.
153 %description -n DirectFB-video-xine -l pl
154 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± obraz przy
155 u¿yciu biblioteki i wtyczek XINE. Obs³uguje szeroki zakres formatów
158 %package -n xine-ui-dfb
159 Summary: DirectFB-based XINE UI
160 Summary(pl): Interfejs u¿ytkownika XINE oparty na DirectFB
161 Group: Applications/Multimedia
162 %requires_eq DirectFB
163 Requires: xine-lib >= 2:1.0-0.rc3
165 %description -n xine-ui-dfb
166 DirectFB-based XINE UI. This package contains also DirectFB video
167 output plugin for XINE.
169 %description -n xine-ui-dfb -l pl
170 Interfejs u¿ytkownika XINE oparty na DirectFB. Zawiera tak¿e wtyczkê
171 wyj¶cia obrazu DirectFB dla XINE.
183 CPPFLAGS="-I/usr/include/libmpeg3"
186 %{!?with_flash:--disable-flash} \
187 %{!?with_mpg:--disable-libmpeg3} \
195 rm -rf $RPM_BUILD_ROOT
198 DESTDIR=$RPM_BUILD_ROOT \
201 rm -f $RPM_BUILD_ROOT%{dfbdir}/interfaces/*/*.la \
202 $RPM_BUILD_ROOT%{_libdir}/xine/plugins/*/*.la
205 rm -rf $RPM_BUILD_ROOT
207 %files -n DirectFB-image-imlib2
208 %defattr(644,root,root,755)
209 %doc ChangeLog README
210 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_imlib2.so
212 %files -n DirectFB-image-pnm
213 %defattr(644,root,root,755)
214 %doc ChangeLog README
215 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_pnm.so
217 %files -n DirectFB-image-svg
218 %defattr(644,root,root,755)
219 %doc ChangeLog README
220 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_svg.so
222 %files -n DirectFB-video-openquicktime
223 %defattr(644,root,root,755)
224 %doc ChangeLog README
225 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_openquicktime.so
228 %files -n DirectFB-video-libmpeg3
229 %defattr(644,root,root,755)
230 %doc ChangeLog README
231 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_libmpeg3.so
235 %files -n DirectFB-video-swf
236 %defattr(644,root,root,755)
237 %doc ChangeLog README
238 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_swf.so
241 %files -n DirectFB-video-swfdec
242 %defattr(644,root,root,755)
243 %doc ChangeLog README
244 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_swfdec.so
246 %files -n DirectFB-video-xine
247 %defattr(644,root,root,755)
248 %doc ChangeLog README
249 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_xine.so
251 %files -n xine-ui-dfb
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_bindir}/df_xine
254 %attr(755,root,root) %{_libdir}/xine/plugins/*/xineplug_vo_out_dfb.so