]> git.pld-linux.org Git - packages/DirectFB-extra.git/blob - DirectFB-extra.spec
- note where recent versions could be found
[packages/DirectFB-extra.git] / DirectFB-extra.spec
1 # NOTE: versions >= 1.7.0 have been integrated into DirectFB.spec
2 #
3 # Conditional build:
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
7 #
8 # broken currently (needs update for DirectFB 1.2.x)
9 %undefine       with_flash
10 # needs update for swfdec 0.6.x
11 %undefine       with_swfdec
12 Summary:        Additional providers and drivers for DirectFB
13 Summary(pl.UTF-8):      DirectFB - dodatkowe wtyczki i sterowniki do DirectFB
14 Name:           DirectFB-extra
15 Version:        1.2.0
16 %define subver  rc1
17 Release:        0.%{subver}.0.1
18 License:        LGPL v2+
19 Group:          Libraries
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)
41
42 %define         dfbdir          %(pkg-config --variable=moduledir directfb-internal)
43
44 %description
45 This package contains additional image/video/font providers and
46 graphics/input drivers (currently Imlib2 image provider and
47 OpenQuicktime video provider).
48
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
53 OpenQuicktime).
54
55 %package -n DirectFB-image-bmp
56 Summary:        BMP image provider for DirectFB
57 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca grafikę BMP
58 Group:          Libraries
59 %requires_eq    DirectFB
60
61 %description -n DirectFB-image-bmp
62 This package contains BMP mage provider for DirectFB.
63
64 %description -n DirectFB-image-bmp -l pl.UTF-8
65 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę BMP.
66
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
70 Group:          Libraries
71 %requires_eq    DirectFB
72
73 %description -n DirectFB-image-imlib2
74 This package contains image provider based on Imlib2 for DirectFB.
75
76 %description -n DirectFB-image-imlib2 -l pl.UTF-8
77 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę poprzez
78 bibliotekę Imlib2.
79
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
83 Group:          Libraries
84 %requires_eq    DirectFB
85
86 %description -n DirectFB-image-jpeg2000
87 This package contains JPEG-2000 image provider.
88
89 %description -n DirectFB-image-jpeg2000 -l pl.UTF-8
90 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę
91 JPEG-2000.
92
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
96 Group:          Libraries
97 %requires_eq    DirectFB
98
99 %description -n DirectFB-image-mpeg2
100 This package contains MPEG-2 image provider.
101
102 %description -n DirectFB-image-mpeg2 -l pl.UTF-8
103 Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę MPEG-2.
104
105 %package -n DirectFB-image-pnm
106 Summary:        PNM image provider for DirectFB
107 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca grafikę PNM
108 Group:          Libraries
109 %requires_eq    DirectFB
110
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).
114
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).
118
119 %package -n DirectFB-image-svg
120 Summary:        SVG image provider for DirectFB
121 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca grafikę SVG
122 Group:          Libraries
123 %requires_eq    DirectFB
124
125 %description -n DirectFB-image-svg
126 This package contains SVG image provider using Cairo library.
127
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.
131
132 %package -n DirectFB-video-ffmpeg
133 Summary:        FFmpeg video provider for DirectFB
134 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca obraz FFmpeg
135 Group:          Libraries
136 %requires_eq    DirectFB
137 %requires_eq    FusionSound
138
139 %description -n DirectFB-video-ffmpeg
140 DirectFB video provider using FFmpeg codecs.
141
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.
145
146 %package -n DirectFB-video-libmpeg3
147 Summary:        MPEG video provider for DirectFB
148 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca obraz MPEG
149 Group:          Libraries
150 %requires_eq    DirectFB
151
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.
155
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.
159
160 %package -n DirectFB-video-openquicktime
161 Summary:        OpenQuicktime video provider for DirectFB
162 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca obraz OpenQuicktime
163 Group:          Libraries
164 %requires_eq    DirectFB
165
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.
169
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
173 dźwięk.
174
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
178 Group:          Libraries
179 %requires_eq    DirectFB
180
181 %description -n DirectFB-video-swf
182 This package contains SWF (ShockWave Flash) video provider for
183 DirectFB. It uses flash library.
184
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.
188
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
192 Group:          Libraries
193 %requires_eq    DirectFB
194
195 %description -n DirectFB-video-swfdec
196 This package contains SWF (ShockWave Flash) video provider for
197 DirectFB. It uses swfdec library.
198
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.
202
203 %package -n DirectFB-video-xine
204 Summary:        XINE video provider for DirectFB
205 Summary(pl.UTF-8):      DirectFB - wtyczka dostarczająca obraz XINE
206 Group:          Libraries
207 %requires_eq    DirectFB
208 %requires_eq    xine-lib
209
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.
213
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
217 obrazu.
218
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
225
226 %description -n xine-ui-dfb
227 DirectFB-based XINE UI. This package contains also DirectFB video
228 output plugin for XINE.
229
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.
233
234 %prep
235 %setup -q -n %{name}-%{version}-%{subver}
236 %patch0 -p1
237 %patch1 -p1
238
239 %build
240 %{__libtoolize}
241 %{__aclocal}
242 %{__autoconf}
243 %{__autoheader}
244 %{__automake}
245 CPPFLAGS="-I/usr/include/libmpeg3"
246 %configure \
247         --disable-avifile \
248         %{?with_flash:--enable-flash} \
249         %{?with_mpg:--enable-libmpeg3} \
250         --enable-openquicktime \
251         %{!?with_swfdec:--disable-swfdec}
252
253 %{__make} \
254         FFMPEG_CFLAGS="-I/usr/include/libavcodec -I/usr/include/libavformat" \
255         MODULEDIR=%{dfbdir}
256
257 %install
258 rm -rf $RPM_BUILD_ROOT
259
260 %{__make} install \
261         DESTDIR=$RPM_BUILD_ROOT \
262         MODULEDIR=%{dfbdir}
263
264 rm -f $RPM_BUILD_ROOT%{dfbdir}/interfaces/*/*.la \
265         $RPM_BUILD_ROOT%{_libdir}/xine/plugins/*/*.la
266
267 %clean
268 rm -rf $RPM_BUILD_ROOT
269
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
274
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
279
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
284
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
289
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
294
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
299
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
304
305 %if %{with mpg}
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
310 %endif
311
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
316
317 %if %{with flash}
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
322 %endif
323
324 %if %{with swfdec}
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
329 %endif
330
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
335
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
This page took 0.084888 seconds and 3 git commands to generate.