]>
Commit | Line | Data |
---|---|---|
fd1e28ec | 1 | # NOTE: versions >= 1.7.0 have been integrated into DirectFB.spec |
3715fd31 JB |
2 | # |
3 | # Conditional build: | |
ad0ed4bc | 4 | %bcond_without flash # don't build FLASH video provider |
a8d005fd | 5 | %bcond_without mpg # don't build support for MPG/MPEG3 |
795ea15f | 6 | %bcond_without swfdec # don't build swfdec video provider |
3715fd31 | 7 | # |
795ea15f JB |
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 | |
d0e40760 | 12 | Summary: Additional providers and drivers for DirectFB |
3fae725a | 13 | Summary(pl.UTF-8): DirectFB - dodatkowe wtyczki i sterowniki do DirectFB |
d0e40760 | 14 | Name: DirectFB-extra |
795ea15f JB |
15 | Version: 1.2.0 |
16 | %define subver rc1 | |
17 | Release: 0.%{subver}.0.1 | |
d0e40760 JB |
18 | License: LGPL v2+ |
19 | Group: Libraries | |
795ea15f JB |
20 | Source0: http://www.directfb.org/downloads/Extras/%{name}-%{version}-%{subver}.tar.gz |
21 | # Source0-md5: c3c160c167c20f320b0c0562168d0579 | |
00928063 | 22 | Patch0: %{name}-acfix.patch |
2ee6e28d | 23 | Patch1: %{name}-mpeg3_open.patch |
d0e40760 | 24 | URL: http://www.directfb.org/ |
72ddbfed | 25 | BuildRequires: DirectFB-devel >= 1:%{version} |
856ea10a | 26 | BuildRequires: FusionSound-devel >= 1.1.0 |
273b1411 | 27 | BuildRequires: autoconf >= 2.52 |
d0e40760 | 28 | BuildRequires: automake |
fb4b8ff7 | 29 | BuildRequires: ffmpeg-devel |
19ed8081 | 30 | %{?with_flash:BuildRequires: gplflash-devel >= 0.4.10-5} |
4c93e207 | 31 | BuildRequires: imlib2-devel |
795ea15f | 32 | BuildRequires: jasper-devel |
a8d005fd | 33 | %{?with_mpg:BuildRequires: libmpeg3-devel} |
363bcd8e | 34 | BuildRequires: libsvg-cairo-devel >= 0.1.6 |
4c93e207 | 35 | BuildRequires: libtool |
d0e40760 | 36 | BuildRequires: openquicktime-devel |
febe97bb | 37 | BuildRequires: pkgconfig >= 1:0.9 |
795ea15f JB |
38 | %{?with_swfdec:BuildRequires: swfdec-devel >= 0.5.0} |
39 | BuildRequires: xine-lib-devel >= 2:1.0.0 | |
d0e40760 JB |
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 | ||
5705e305 JR |
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 | |
d0e40760 JB |
53 | OpenQuicktime). |
54 | ||
2ee6e28d | 55 | %package -n DirectFB-image-bmp |
d28689db | 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 | |
2ee6e28d JB |
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 | ||
d0e40760 JB |
67 | %package -n DirectFB-image-imlib2 |
68 | Summary: Imlib2 image provider for DirectFB | |
3fae725a | 69 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę poprzez Imlib2 |
d0e40760 JB |
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 | ||
5705e305 JR |
76 | %description -n DirectFB-image-imlib2 -l pl.UTF-8 |
77 | Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę poprzez | |
78 | bibliotekę Imlib2. | |
d0e40760 | 79 | |
795ea15f JB |
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 | ||
a8d005fd JB |
105 | %package -n DirectFB-image-pnm |
106 | Summary: PNM image provider for DirectFB | |
3fae725a | 107 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę PNM |
a8d005fd JB |
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 | ||
5705e305 JR |
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). | |
a8d005fd | 118 | |
363bcd8e JB |
119 | %package -n DirectFB-image-svg |
120 | Summary: SVG image provider for DirectFB | |
3fae725a | 121 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę SVG |
363bcd8e JB |
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 | ||
5705e305 | 128 | %description -n DirectFB-image-svg -l pl.UTF-8 |
2ee6e28d JB |
129 | Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę SVG przy |
130 | użyciu biblioteki Cairo. | |
363bcd8e | 131 | |
fb4b8ff7 JB |
132 | %package -n DirectFB-video-ffmpeg |
133 | Summary: FFmpeg video provider for DirectFB | |
3fae725a | 134 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz FFmpeg |
fb4b8ff7 JB |
135 | Group: Libraries |
136 | %requires_eq DirectFB | |
2ee6e28d | 137 | %requires_eq FusionSound |
fb4b8ff7 JB |
138 | |
139 | %description -n DirectFB-video-ffmpeg | |
140 | DirectFB video provider using FFmpeg codecs. | |
141 | ||
5705e305 JR |
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. | |
fb4b8ff7 | 145 | |
a8d005fd JB |
146 | %package -n DirectFB-video-libmpeg3 |
147 | Summary: MPEG video provider for DirectFB | |
3fae725a | 148 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz MPEG |
a8d005fd JB |
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 | ||
5705e305 JR |
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. | |
a8d005fd | 159 | |
d0e40760 JB |
160 | %package -n DirectFB-video-openquicktime |
161 | Summary: OpenQuicktime video provider for DirectFB | |
3fae725a | 162 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz OpenQuicktime |
d0e40760 JB |
163 | Group: Libraries |
164 | %requires_eq DirectFB | |
165 | ||
166 | %description -n DirectFB-video-openquicktime | |
a8d005fd JB |
167 | This package contains OpenQuicktime video provider for DirectFB. It |
168 | supports all RGB and YUV formats and does audio playback. | |
d0e40760 | 169 | |
5705e305 JR |
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. | |
d0e40760 | 174 | |
3715fd31 JB |
175 | %package -n DirectFB-video-swf |
176 | Summary: ShockWave Flash video provider for DirectFB | |
3fae725a | 177 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz ShockWave Flash |
3715fd31 JB |
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 | ||
5705e305 JR |
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. | |
3715fd31 | 188 | |
363bcd8e JB |
189 | %package -n DirectFB-video-swfdec |
190 | Summary: ShockWave Flash video provider for DirectFB | |
3fae725a | 191 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz ShockWave Flash |
363bcd8e JB |
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 | ||
5705e305 JR |
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. | |
363bcd8e | 202 | |
a8d005fd JB |
203 | %package -n DirectFB-video-xine |
204 | Summary: XINE video provider for DirectFB | |
3fae725a | 205 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz XINE |
a8d005fd JB |
206 | Group: Libraries |
207 | %requires_eq DirectFB | |
896a537c | 208 | %requires_eq xine-lib |
a8d005fd JB |
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 | ||
5705e305 JR |
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 | |
a8d005fd JB |
217 | obrazu. |
218 | ||
219 | %package -n xine-ui-dfb | |
220 | Summary: DirectFB-based XINE UI | |
3fae725a | 221 | Summary(pl.UTF-8): Interfejs użytkownika XINE oparty na DirectFB |
a8d005fd JB |
222 | Group: Applications/Multimedia |
223 | %requires_eq DirectFB | |
19ed8081 | 224 | Requires: xine-lib >= 2:1.0-0.rc3 |
a8d005fd JB |
225 | |
226 | %description -n xine-ui-dfb | |
227 | DirectFB-based XINE UI. This package contains also DirectFB video | |
228 | output plugin for XINE. | |
229 | ||
5705e305 JR |
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. | |
a8d005fd | 233 | |
d0e40760 | 234 | %prep |
795ea15f | 235 | %setup -q -n %{name}-%{version}-%{subver} |
ad0ed4bc | 236 | %patch0 -p1 |
2ee6e28d | 237 | %patch1 -p1 |
d0e40760 JB |
238 | |
239 | %build | |
4c93e207 | 240 | %{__libtoolize} |
d0e40760 JB |
241 | %{__aclocal} |
242 | %{__autoconf} | |
243 | %{__autoheader} | |
244 | %{__automake} | |
a8d005fd | 245 | CPPFLAGS="-I/usr/include/libmpeg3" |
3715fd31 JB |
246 | %configure \ |
247 | --disable-avifile \ | |
2ee6e28d JB |
248 | %{?with_flash:--enable-flash} \ |
249 | %{?with_mpg:--enable-libmpeg3} \ | |
250 | --enable-openquicktime \ | |
795ea15f | 251 | %{!?with_swfdec:--disable-swfdec} |
d0e40760 | 252 | |
ad0ed4bc | 253 | %{__make} \ |
795ea15f | 254 | FFMPEG_CFLAGS="-I/usr/include/libavcodec -I/usr/include/libavformat" \ |
ad0ed4bc | 255 | MODULEDIR=%{dfbdir} |
d0e40760 JB |
256 | |
257 | %install | |
258 | rm -rf $RPM_BUILD_ROOT | |
259 | ||
260 | %{__make} install \ | |
261 | DESTDIR=$RPM_BUILD_ROOT \ | |
262 | MODULEDIR=%{dfbdir} | |
263 | ||
a8d005fd JB |
264 | rm -f $RPM_BUILD_ROOT%{dfbdir}/interfaces/*/*.la \ |
265 | $RPM_BUILD_ROOT%{_libdir}/xine/plugins/*/*.la | |
ad0ed4bc | 266 | |
d0e40760 JB |
267 | %clean |
268 | rm -rf $RPM_BUILD_ROOT | |
269 | ||
2ee6e28d JB |
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 | ||
4c93e207 JB |
275 | %files -n DirectFB-image-imlib2 |
276 | %defattr(644,root,root,755) | |
a8d005fd | 277 | %doc ChangeLog README |
3715fd31 | 278 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_imlib2.so |
d0e40760 | 279 | |
795ea15f JB |
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 | ||
a8d005fd JB |
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 | ||
363bcd8e JB |
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 | ||
fb4b8ff7 JB |
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 | ||
a8d005fd JB |
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 | ||
2ee6e28d JB |
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 | ||
ad0ed4bc | 317 | %if %{with flash} |
3715fd31 JB |
318 | %files -n DirectFB-video-swf |
319 | %defattr(644,root,root,755) | |
a8d005fd | 320 | %doc ChangeLog README |
3715fd31 | 321 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_swf.so |
3715fd31 | 322 | %endif |
a8d005fd | 323 | |
795ea15f | 324 | %if %{with swfdec} |
363bcd8e JB |
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 | |
795ea15f | 329 | %endif |
363bcd8e | 330 | |
a8d005fd JB |
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 |