]>
Commit | Line | Data |
---|---|---|
3715fd31 JB |
1 | # |
2 | # Conditional build: | |
ad0ed4bc | 3 | %bcond_without flash # don't build FLASH video provider |
a8d005fd | 4 | %bcond_without mpg # don't build support for MPG/MPEG3 |
3715fd31 | 5 | # |
d0e40760 | 6 | Summary: Additional providers and drivers for DirectFB |
3fae725a | 7 | Summary(pl.UTF-8): DirectFB - dodatkowe wtyczki i sterowniki do DirectFB |
d0e40760 | 8 | Name: DirectFB-extra |
fb4b8ff7 | 9 | Version: 0.9.25 |
a8d005fd | 10 | Release: 1 |
d0e40760 JB |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
13 | Source0: http://www.directfb.org/download/DirectFB-extra/%{name}-%{version}.tar.gz | |
fb4b8ff7 | 14 | # Source0-md5: 2acb95b87adf0feefd282ac29cd72ab2 |
00928063 | 15 | Patch0: %{name}-acfix.patch |
d0e40760 | 16 | URL: http://www.directfb.org/ |
72ddbfed | 17 | BuildRequires: DirectFB-devel >= 1:%{version} |
273b1411 | 18 | BuildRequires: autoconf >= 2.52 |
d0e40760 | 19 | BuildRequires: automake |
fb4b8ff7 JB |
20 | BuildRequires: FusionSound-devel >= 0.9.25 |
21 | BuildRequires: ffmpeg-devel | |
19ed8081 | 22 | %{?with_flash:BuildRequires: gplflash-devel >= 0.4.10-5} |
4c93e207 | 23 | BuildRequires: imlib2-devel |
a8d005fd | 24 | %{?with_mpg:BuildRequires: libmpeg3-devel} |
363bcd8e | 25 | BuildRequires: libsvg-cairo-devel >= 0.1.6 |
4c93e207 | 26 | BuildRequires: libtool |
d0e40760 | 27 | BuildRequires: openquicktime-devel |
febe97bb | 28 | BuildRequires: pkgconfig >= 1:0.9 |
363bcd8e JB |
29 | BuildRequires: swfdec-devel >= 0.3.0 |
30 | BuildRequires: xine-lib-devel >= 2:1.0-0.rc3 | |
d0e40760 JB |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %define dfbdir %(pkg-config --variable=moduledir directfb-internal) | |
34 | ||
35 | %description | |
36 | This package contains additional image/video/font providers and | |
37 | graphics/input drivers (currently Imlib2 image provider and | |
38 | OpenQuicktime video provider). | |
39 | ||
5705e305 JR |
40 | %description -l pl.UTF-8 |
41 | Ten pakiet zawiera dodatkowe wtyczki dostarczające grafikę, obraz i | |
42 | fonty oraz sterowniki grafiki i wejściowe (aktualnie: wtyczkę | |
43 | dostarczającą grafikę poprzez Imlib2 oraz wtyczkę dostarczającą obraz | |
d0e40760 JB |
44 | OpenQuicktime). |
45 | ||
46 | %package -n DirectFB-image-imlib2 | |
47 | Summary: Imlib2 image provider for DirectFB | |
3fae725a | 48 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę poprzez Imlib2 |
d0e40760 JB |
49 | Group: Libraries |
50 | %requires_eq DirectFB | |
51 | ||
52 | %description -n DirectFB-image-imlib2 | |
53 | This package contains image provider based on Imlib2 for DirectFB. | |
54 | ||
5705e305 JR |
55 | %description -n DirectFB-image-imlib2 -l pl.UTF-8 |
56 | Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę poprzez | |
57 | bibliotekę Imlib2. | |
d0e40760 | 58 | |
a8d005fd JB |
59 | %package -n DirectFB-image-pnm |
60 | Summary: PNM image provider for DirectFB | |
3fae725a | 61 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę PNM |
a8d005fd JB |
62 | Group: Libraries |
63 | %requires_eq DirectFB | |
64 | ||
65 | %description -n DirectFB-image-pnm | |
66 | This package contains PNM image provider. It supports PBM, PGM and PPM | |
67 | formats (both ASCII and RAW). | |
68 | ||
5705e305 JR |
69 | %description -n DirectFB-image-pnm -l pl.UTF-8 |
70 | Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę PNM. | |
71 | Obsługuje formaty PBM, PGM i PPM (zarówno ASCII, jak i binarne). | |
a8d005fd | 72 | |
363bcd8e JB |
73 | %package -n DirectFB-image-svg |
74 | Summary: SVG image provider for DirectFB | |
3fae725a | 75 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę SVG |
363bcd8e JB |
76 | Group: Libraries |
77 | %requires_eq DirectFB | |
78 | ||
79 | %description -n DirectFB-image-svg | |
80 | This package contains SVG image provider using Cairo library. | |
81 | ||
5705e305 JR |
82 | %description -n DirectFB-image-svg -l pl.UTF-8 |
83 | Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę SVG | |
84 | przy użyciu biblioteki Cairo. | |
363bcd8e | 85 | |
fb4b8ff7 JB |
86 | %package -n DirectFB-video-ffmpeg |
87 | Summary: FFmpeg video provider for DirectFB | |
3fae725a | 88 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz FFmpeg |
fb4b8ff7 JB |
89 | Group: Libraries |
90 | %requires_eq DirectFB | |
91 | ||
92 | %description -n DirectFB-video-ffmpeg | |
93 | DirectFB video provider using FFmpeg codecs. | |
94 | ||
5705e305 JR |
95 | %description -n DirectFB-video-ffmpeg -l pl.UTF-8 |
96 | Ten pakiet zawiera wtyczkę dla DirectFB dostarczajacą obraz przy | |
97 | użyciu kodeków FFmpeg. | |
fb4b8ff7 | 98 | |
a8d005fd JB |
99 | %package -n DirectFB-video-libmpeg3 |
100 | Summary: MPEG video provider for DirectFB | |
3fae725a | 101 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz MPEG |
a8d005fd JB |
102 | Group: Libraries |
103 | %requires_eq DirectFB | |
104 | ||
105 | %description -n DirectFB-video-libmpeg3 | |
106 | This package contains MPEG (MPEG-1 and MPEG-2) video provider for | |
107 | DirectFB. It uses libmpeg3 library. | |
108 | ||
5705e305 JR |
109 | %description -n DirectFB-video-libmpeg3 -l pl.UTF-8 |
110 | Ten pakiet zawiera wtyczkę dla DirectFB dostarczajacą obraz MPEG | |
111 | (MPEG-1 i MPEG-2) przy użyciu biblioteki libmpeg3. | |
a8d005fd | 112 | |
d0e40760 JB |
113 | %package -n DirectFB-video-openquicktime |
114 | Summary: OpenQuicktime video provider for DirectFB | |
3fae725a | 115 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz OpenQuicktime |
d0e40760 JB |
116 | Group: Libraries |
117 | %requires_eq DirectFB | |
118 | ||
119 | %description -n DirectFB-video-openquicktime | |
a8d005fd JB |
120 | This package contains OpenQuicktime video provider for DirectFB. It |
121 | supports all RGB and YUV formats and does audio playback. | |
d0e40760 | 122 | |
5705e305 JR |
123 | %description -n DirectFB-video-openquicktime -l pl.UTF-8 |
124 | Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz | |
125 | OpenQuicktime. Obsługuje wszystkie formaty RGB i YUV oraz odtwarza | |
126 | dźwięk. | |
d0e40760 | 127 | |
3715fd31 JB |
128 | %package -n DirectFB-video-swf |
129 | Summary: ShockWave Flash video provider for DirectFB | |
3fae725a | 130 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz ShockWave Flash |
3715fd31 JB |
131 | Group: Libraries |
132 | %requires_eq DirectFB | |
133 | ||
134 | %description -n DirectFB-video-swf | |
135 | This package contains SWF (ShockWave Flash) video provider for | |
136 | DirectFB. It uses flash library. | |
137 | ||
5705e305 JR |
138 | %description -n DirectFB-video-swf -l pl.UTF-8 |
139 | Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz SWF | |
140 | (ShockWave Flash) przy użyciu biblioteki flash. | |
3715fd31 | 141 | |
363bcd8e JB |
142 | %package -n DirectFB-video-swfdec |
143 | Summary: ShockWave Flash video provider for DirectFB | |
3fae725a | 144 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz ShockWave Flash |
363bcd8e JB |
145 | Group: Libraries |
146 | %requires_eq DirectFB | |
147 | ||
148 | %description -n DirectFB-video-swfdec | |
149 | This package contains SWF (ShockWave Flash) video provider for | |
150 | DirectFB. It uses swfdec library. | |
151 | ||
5705e305 JR |
152 | %description -n DirectFB-video-swfdec -l pl.UTF-8 |
153 | Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz SWF | |
154 | (ShockWave Flash) przy użyciu biblioteki swfdec. | |
363bcd8e | 155 | |
a8d005fd JB |
156 | %package -n DirectFB-video-xine |
157 | Summary: XINE video provider for DirectFB | |
3fae725a | 158 | Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz XINE |
a8d005fd JB |
159 | Group: Libraries |
160 | %requires_eq DirectFB | |
896a537c | 161 | %requires_eq xine-lib |
a8d005fd JB |
162 | |
163 | %description -n DirectFB-video-xine | |
164 | This package contains video provider for DirectFB which uses XINE | |
165 | library and plugins. It handles a wide range of video formats. | |
166 | ||
5705e305 JR |
167 | %description -n DirectFB-video-xine -l pl.UTF-8 |
168 | Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz przy | |
169 | użyciu biblioteki i wtyczek XINE. Obsługuje szeroki zakres formatów | |
a8d005fd JB |
170 | obrazu. |
171 | ||
172 | %package -n xine-ui-dfb | |
173 | Summary: DirectFB-based XINE UI | |
3fae725a | 174 | Summary(pl.UTF-8): Interfejs użytkownika XINE oparty na DirectFB |
a8d005fd JB |
175 | Group: Applications/Multimedia |
176 | %requires_eq DirectFB | |
19ed8081 | 177 | Requires: xine-lib >= 2:1.0-0.rc3 |
a8d005fd JB |
178 | |
179 | %description -n xine-ui-dfb | |
180 | DirectFB-based XINE UI. This package contains also DirectFB video | |
181 | output plugin for XINE. | |
182 | ||
5705e305 JR |
183 | %description -n xine-ui-dfb -l pl.UTF-8 |
184 | Interfejs użytkownika XINE oparty na DirectFB. Zawiera także wtyczkę | |
185 | wyjścia obrazu DirectFB dla XINE. | |
a8d005fd | 186 | |
d0e40760 JB |
187 | %prep |
188 | %setup -q | |
ad0ed4bc | 189 | %patch0 -p1 |
d0e40760 JB |
190 | |
191 | %build | |
4c93e207 | 192 | %{__libtoolize} |
d0e40760 JB |
193 | %{__aclocal} |
194 | %{__autoconf} | |
195 | %{__autoheader} | |
196 | %{__automake} | |
a8d005fd | 197 | CPPFLAGS="-I/usr/include/libmpeg3" |
3715fd31 JB |
198 | %configure \ |
199 | --disable-avifile \ | |
a8d005fd | 200 | %{!?with_flash:--disable-flash} \ |
363bcd8e JB |
201 | %{!?with_mpg:--disable-libmpeg3} \ |
202 | --enable-svg \ | |
203 | --enable-swfdec | |
d0e40760 | 204 | |
ad0ed4bc JB |
205 | %{__make} \ |
206 | MODULEDIR=%{dfbdir} | |
d0e40760 JB |
207 | |
208 | %install | |
209 | rm -rf $RPM_BUILD_ROOT | |
210 | ||
211 | %{__make} install \ | |
212 | DESTDIR=$RPM_BUILD_ROOT \ | |
213 | MODULEDIR=%{dfbdir} | |
214 | ||
a8d005fd JB |
215 | rm -f $RPM_BUILD_ROOT%{dfbdir}/interfaces/*/*.la \ |
216 | $RPM_BUILD_ROOT%{_libdir}/xine/plugins/*/*.la | |
ad0ed4bc | 217 | |
d0e40760 JB |
218 | %clean |
219 | rm -rf $RPM_BUILD_ROOT | |
220 | ||
4c93e207 JB |
221 | %files -n DirectFB-image-imlib2 |
222 | %defattr(644,root,root,755) | |
a8d005fd | 223 | %doc ChangeLog README |
3715fd31 | 224 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_imlib2.so |
d0e40760 | 225 | |
a8d005fd JB |
226 | %files -n DirectFB-image-pnm |
227 | %defattr(644,root,root,755) | |
228 | %doc ChangeLog README | |
229 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_pnm.so | |
230 | ||
363bcd8e JB |
231 | %files -n DirectFB-image-svg |
232 | %defattr(644,root,root,755) | |
233 | %doc ChangeLog README | |
234 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_svg.so | |
235 | ||
d0e40760 JB |
236 | %files -n DirectFB-video-openquicktime |
237 | %defattr(644,root,root,755) | |
a8d005fd | 238 | %doc ChangeLog README |
3715fd31 | 239 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_openquicktime.so |
3715fd31 | 240 | |
fb4b8ff7 JB |
241 | %files -n DirectFB-video-ffmpeg |
242 | %defattr(644,root,root,755) | |
243 | %doc ChangeLog README | |
244 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_ffmpeg.so | |
245 | ||
a8d005fd JB |
246 | %if %{with mpg} |
247 | %files -n DirectFB-video-libmpeg3 | |
248 | %defattr(644,root,root,755) | |
249 | %doc ChangeLog README | |
250 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_libmpeg3.so | |
251 | %endif | |
252 | ||
ad0ed4bc | 253 | %if %{with flash} |
3715fd31 JB |
254 | %files -n DirectFB-video-swf |
255 | %defattr(644,root,root,755) | |
a8d005fd | 256 | %doc ChangeLog README |
3715fd31 | 257 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_swf.so |
3715fd31 | 258 | %endif |
a8d005fd | 259 | |
363bcd8e JB |
260 | %files -n DirectFB-video-swfdec |
261 | %defattr(644,root,root,755) | |
262 | %doc ChangeLog README | |
263 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_swfdec.so | |
264 | ||
a8d005fd JB |
265 | %files -n DirectFB-video-xine |
266 | %defattr(644,root,root,755) | |
267 | %doc ChangeLog README | |
268 | %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_xine.so | |
269 | ||
270 | %files -n xine-ui-dfb | |
271 | %defattr(644,root,root,755) | |
272 | %attr(755,root,root) %{_bindir}/df_xine | |
273 | %attr(755,root,root) %{_libdir}/xine/plugins/*/xineplug_vo_out_dfb.so |