]>
Commit | Line | Data |
---|---|---|
cf8ad706 | 1 | Summary: VAAPI (Video Acceleration API) |
7a7f6185 | 2 | Summary(pl.UTF-8): VAAPI (Video Acceleration API) - API akceleracji filmów |
cf8ad706 | 3 | Name: libva |
239e841c | 4 | Version: 1.5.1 |
08fb9011 | 5 | Release: 2 |
b5396897 | 6 | License: MIT |
cf8ad706 | 7 | Group: Libraries |
e299214a | 8 | Source0: http://www.freedesktop.org/software/vaapi/releases/libva/%{name}-%{version}.tar.bz2 |
239e841c | 9 | # Source0-md5: d6d34cd725a0100a5e476e711838e1b1 |
cf8ad706 | 10 | URL: http://www.freedesktop.org/wiki/Software/vaapi |
e299214a | 11 | BuildRequires: Mesa-libEGL-devel |
154de1a7 | 12 | BuildRequires: Mesa-libGL-devel |
7a7f6185 | 13 | BuildRequires: autoconf >= 2.57 |
cf8ad706 | 14 | BuildRequires: automake |
b5396897 | 15 | BuildRequires: libdrm-devel >= 2.4 |
154de1a7 KK |
16 | BuildRequires: libtool |
17 | BuildRequires: pkgconfig | |
e299214a JB |
18 | # wayland-client |
19 | BuildRequires: wayland-devel >= 1.0.0 | |
b5396897 | 20 | BuildRequires: xorg-lib-libX11-devel |
7a7f6185 | 21 | BuildRequires: xorg-lib-libXext-devel |
154de1a7 | 22 | BuildRequires: xorg-lib-libXfixes-devel |
cf8ad706 AM |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | The main motivation for VAAPI (Video Acceleration API) is to enable | |
27 | hardware accelerated video decode/encode at various entry-points (VLD, | |
28 | IDCT, Motion Compensation etc.) for the prevailing coding standards | |
29 | today (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3). | |
30 | ||
7a7f6185 JB |
31 | %description -l pl.UTF-8 |
32 | Głównym celem API akceleracji filmów VAAPI (Video Acceleration API) | |
33 | jest umożliwienie sprzętowej akceleracji dekodowania/kodowania filmów | |
34 | na różnych etapach (VLD, IDCT, kompensacja ruchu itp.) dla obecnie | |
35 | przeważających standardów kodowania (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 | |
36 | AVC/H.264, VC-1/VMW3). | |
37 | ||
cf8ad706 | 38 | %package devel |
7a7f6185 JB |
39 | Summary: Header files for libva libraries |
40 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libva | |
cf8ad706 | 41 | Group: Development/Libraries |
7a7f6185 | 42 | Requires: %{name} = %{version}-%{release} |
cf8ad706 AM |
43 | |
44 | %description devel | |
7a7f6185 JB |
45 | Header files for libva libraries. |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe bibliotek libva. | |
cf8ad706 AM |
49 | |
50 | %package static | |
7a7f6185 JB |
51 | Summary: Static libva libraries |
52 | Summary(pl.UTF-8): Statyczne biblioteki libva | |
cf8ad706 | 53 | Group: Development/Libraries |
7a7f6185 | 54 | Requires: %{name}-devel = %{version}-%{release} |
cf8ad706 AM |
55 | |
56 | %description static | |
7a7f6185 JB |
57 | Static libva libraries. |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczne biblioteki libva. | |
cf8ad706 | 61 | |
e299214a JB |
62 | %package drm |
63 | Summary: VAAPI - DRM interface library | |
64 | Summary(pl.UTF-8): VAAPI - biblioteka interfejsu DRM | |
65 | Group: Libraries | |
66 | Requires: %{name} = %{version}-%{release} | |
67 | Requires: libdrm >= 2.4 | |
68 | ||
69 | %description drm | |
70 | VAAPI - DRM interface library. | |
71 | ||
72 | %description drm -l pl.UTF-8 | |
73 | VAAPI - biblioteka interfejsu DRM. | |
74 | ||
75 | %package drm-devel | |
76 | Summary: Header files for VAAPI DRM interface library | |
77 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu DRM VAAPI | |
78 | Group: Development/Libraries | |
79 | Requires: %{name}-devel = %{version}-%{release} | |
80 | Requires: %{name}-drm = %{version}-%{release} | |
81 | Requires: libdrm-devel >= 2.4 | |
82 | ||
83 | %description drm-devel | |
84 | Header files for VAAPI DRM interface library. | |
85 | ||
86 | %description drm-devel -l pl.UTF-8 | |
87 | Pliki nagłówkowe biblioteki interfejsu DRM VAAPI. | |
88 | ||
89 | %package drm-static | |
90 | Summary: VAAPI - DRM interface static library | |
91 | Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu DRM | |
92 | Group: Development/Libraries | |
93 | Requires: %{name}-drm-devel = %{version}-%{release} | |
94 | ||
95 | %description drm-static | |
96 | VAAPI - DRM interface static library. | |
97 | ||
98 | %description drm-static -l pl.UTF-8 | |
99 | VAAPI - statyczna biblioteka interfejsu DRM. | |
100 | ||
101 | %package egl | |
102 | Summary: VAAPI - EGL interface library | |
103 | Summary(pl.UTF-8): VAAPI - biblioteka interfejsu EGL | |
104 | Group: Libraries | |
105 | Requires: %{name}-x11 = %{version}-%{release} | |
106 | ||
107 | %description egl | |
108 | VAAPI - EGL interface library. | |
109 | ||
110 | %description egl -l pl.UTF-8 | |
111 | VAAPI - biblioteka interfejsu EGL. | |
112 | ||
113 | %package egl-devel | |
114 | Summary: Header files for VAAPI EGL interface library | |
115 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu EGL VAAPI | |
116 | Group: Development/Libraries | |
117 | Requires: %{name}-egl = %{version}-%{release} | |
118 | Requires: %{name}-x11-devel = %{version}-%{release} | |
119 | Requires: EGL-devel | |
120 | ||
121 | %description egl-devel | |
122 | Header files for VAAPI EGL interface library. | |
123 | ||
124 | %description egl-devel -l pl.UTF-8 | |
125 | Pliki nagłówkowe biblioteki interfejsu EGL VAAPI. | |
126 | ||
127 | %package egl-static | |
128 | Summary: VAAPI - EGL interface static library | |
129 | Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu EGL | |
130 | Group: Development/Libraries | |
131 | Requires: %{name}-egl-devel = %{version}-%{release} | |
132 | ||
133 | %description egl-static | |
134 | VAAPI - EGL interface static library. | |
135 | ||
136 | %description egl-static -l pl.UTF-8 | |
137 | VAAPI - statyczna biblioteka interfejsu EGL. | |
138 | ||
139 | %package glx | |
140 | Summary: VAAPI - GLX interface library | |
141 | Summary(pl.UTF-8): VAAPI - biblioteka interfejsu GLX | |
142 | Group: Libraries | |
143 | Requires: %{name}-x11 = %{version}-%{release} | |
144 | ||
145 | %description glx | |
146 | VAAPI - GLX interface library. | |
147 | ||
148 | %description glx -l pl.UTF-8 | |
149 | VAAPI - biblioteka interfejsu GLX. | |
150 | ||
151 | %package glx-devel | |
152 | Summary: Header files for VAAPI GLX interface library | |
153 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu GLX VAAPI | |
154 | Group: Development/Libraries | |
155 | Requires: %{name}-glx = %{version}-%{release} | |
156 | Requires: %{name}-x11-devel = %{version}-%{release} | |
157 | Requires: OpenGL-GLX-devel | |
158 | ||
159 | %description glx-devel | |
160 | Header files for VAAPI GLX interface library. | |
161 | ||
162 | %description glx-devel -l pl.UTF-8 | |
163 | Pliki nagłówkowe biblioteki interfejsu GLX VAAPI. | |
164 | ||
165 | %package glx-static | |
166 | Summary: VAAPI - GLX interface static library | |
167 | Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu GLX | |
168 | Group: Development/Libraries | |
169 | Requires: %{name}-glx-devel = %{version}-%{release} | |
170 | ||
171 | %description glx-static | |
172 | VAAPI - GLX interface static library. | |
173 | ||
174 | %description glx-static -l pl.UTF-8 | |
175 | VAAPI - statyczna biblioteka interfejsu GLX. | |
176 | ||
177 | %package wayland | |
178 | Summary: VAAPI - Wayland interface library | |
179 | Summary(pl.UTF-8): VAAPI - biblioteka interfejsu Wayland | |
180 | Group: Libraries | |
181 | Requires: %{name} = %{version}-%{release} | |
182 | Requires: wayland >= 1.0.0 | |
183 | ||
184 | %description wayland | |
185 | VAAPI - Wayland interface library. | |
186 | ||
187 | %description wayland -l pl.UTF-8 | |
188 | VAAPI - biblioteka interfejsu Wayland. | |
189 | ||
190 | %package wayland-devel | |
191 | Summary: Header files for VAAPI Wayland interface library | |
192 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu Wayland VAAPI | |
193 | Group: Development/Libraries | |
194 | Requires: %{name}-devel = %{version}-%{release} | |
195 | Requires: %{name}-wayland = %{version}-%{release} | |
196 | Requires: wayland-devel >= 1.0.0 | |
197 | ||
198 | %description wayland-devel | |
199 | Header files for VAAPI Wayland interface library. | |
200 | ||
201 | %description wayland-devel -l pl.UTF-8 | |
202 | Pliki nagłówkowe biblioteki interfejsu Wayland VAAPI. | |
203 | ||
204 | %package wayland-static | |
205 | Summary: VAAPI - Wayland interface static library | |
206 | Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu Wayland | |
207 | Group: Development/Libraries | |
208 | Requires: %{name}-wayland-devel = %{version}-%{release} | |
209 | ||
210 | %description wayland-static | |
211 | VAAPI - Wayland interface static library. | |
212 | ||
213 | %description wayland-static -l pl.UTF-8 | |
214 | VAAPI - statyczna biblioteka interfejsu Wayland. | |
215 | ||
216 | %package x11 | |
217 | Summary: VAAPI - X11 interface library | |
218 | Summary(pl.UTF-8): VAAPI - biblioteka interfejsu X11 | |
219 | Group: Libraries | |
220 | Requires: %{name} = %{version}-%{release} | |
221 | Requires: libdrm >= 2.4 | |
222 | ||
223 | %description x11 | |
224 | VAAPI - X11 interface library. | |
225 | ||
226 | %description x11 -l pl.UTF-8 | |
227 | VAAPI - biblioteka interfejsu X11. | |
228 | ||
229 | %package x11-devel | |
230 | Summary: Header files for VAAPI X11 interface library | |
231 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu X11 VAAPI | |
232 | Group: Development/Libraries | |
233 | Requires: %{name}-devel = %{version}-%{release} | |
234 | Requires: %{name}-x11 = %{version}-%{release} | |
235 | Requires: libdrm-devel >= 2.4 | |
236 | Requires: xorg-lib-libX11-devel | |
237 | Requires: xorg-lib-libXext-devel | |
238 | Requires: xorg-lib-libXfixes-devel | |
239 | ||
240 | %description x11-devel | |
241 | Header files for VAAPI X11 interface library. | |
242 | ||
243 | %description x11-devel -l pl.UTF-8 | |
244 | Pliki nagłówkowe biblioteki interfejsu X11 VAAPI. | |
245 | ||
246 | %package x11-static | |
247 | Summary: VAAPI - X11 interface static library | |
248 | Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu X11 | |
249 | Group: Development/Libraries | |
250 | Requires: %{name}-x11-devel = %{version}-%{release} | |
251 | ||
252 | %description x11-static | |
253 | VAAPI - X11 interface static library. | |
254 | ||
255 | %description x11-static -l pl.UTF-8 | |
256 | VAAPI - statyczna biblioteka interfejsu X11. | |
257 | ||
3a6aef78 JB |
258 | %package tools |
259 | Summary: VAAPI test and example programs | |
260 | Summary(pl.UTF-8): Programy testowe i przykładowe do VAAPI | |
261 | Group: Applications/Graphics | |
262 | Requires: %{name}-drm = %{version}-%{release} | |
263 | Requires: %{name}-wayland = %{version}-%{release} | |
264 | Requires: %{name}-x11 = %{version}-%{release} | |
265 | ||
266 | %description tools | |
267 | VAAPI test and example programs. | |
268 | ||
269 | %description tools -l pl.UTF-8 | |
270 | Programy testowe i przykładowe do VAAPI. | |
271 | ||
cf8ad706 | 272 | %prep |
3b224f4e | 273 | %setup -q |
cf8ad706 AM |
274 | |
275 | %build | |
7a7f6185 JB |
276 | %{__libtoolize} |
277 | %{__aclocal} | |
278 | %{__autoconf} | |
279 | %{__autoheader} | |
280 | %{__automake} | |
cf8ad706 | 281 | %configure \ |
7275dddd | 282 | --disable-silent-rules \ |
cf8ad706 | 283 | --enable-static \ |
cf8ad706 AM |
284 | --with-drivers-path=%{_libdir}/%{name}/dri |
285 | ||
286 | %{__make} | |
287 | ||
288 | %install | |
289 | rm -rf $RPM_BUILD_ROOT | |
cf8ad706 | 290 | |
f4890299 AM |
291 | install -d $RPM_BUILD_ROOT/etc |
292 | ||
cf8ad706 AM |
293 | %{__make} install \ |
294 | DESTDIR=$RPM_BUILD_ROOT | |
295 | ||
f4890299 AM |
296 | echo "#LIBVA_DRIVER_NAME=vdpau" > $RPM_BUILD_ROOT/etc/libva.conf |
297 | ||
7a7f6185 | 298 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/dri/*.{a,la} |
3b224f4e | 299 | |
cf8ad706 AM |
300 | %clean |
301 | rm -rf $RPM_BUILD_ROOT | |
302 | ||
e299214a JB |
303 | %post -p /sbin/ldconfig |
304 | %postun -p /sbin/ldconfig | |
305 | ||
306 | %post drm -p /sbin/ldconfig | |
307 | %postun drm -p /sbin/ldconfig | |
308 | ||
309 | %post egl -p /sbin/ldconfig | |
310 | %postun egl -p /sbin/ldconfig | |
311 | ||
312 | %post glx -p /sbin/ldconfig | |
313 | %postun glx -p /sbin/ldconfig | |
314 | ||
315 | %post wayland -p /sbin/ldconfig | |
316 | %postun wayland -p /sbin/ldconfig | |
317 | ||
318 | %post x11 -p /sbin/ldconfig | |
319 | %postun x11 -p /sbin/ldconfig | |
cf8ad706 AM |
320 | |
321 | %files | |
322 | %defattr(644,root,root,755) | |
b5396897 | 323 | %doc COPYING NEWS |
07fcce03 | 324 | %attr(755,root,root) %{_bindir}/jpegenc |
7a7f6185 JB |
325 | %attr(755,root,root) %{_libdir}/libva.so.*.*.* |
326 | %attr(755,root,root) %ghost %{_libdir}/libva.so.1 | |
7a7f6185 JB |
327 | %attr(755,root,root) %{_libdir}/libva-tpi.so.*.*.* |
328 | %attr(755,root,root) %ghost %{_libdir}/libva-tpi.so.1 | |
cf8ad706 AM |
329 | %dir %{_libdir}/%{name} |
330 | %dir %{_libdir}/%{name}/dri | |
7a7f6185 | 331 | %attr(755,root,root) %{_libdir}/%{name}/dri/dummy_drv_video.so |
f4890299 | 332 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libva.conf |
cf8ad706 AM |
333 | |
334 | %files devel | |
335 | %defattr(644,root,root,755) | |
7a7f6185 | 336 | %attr(755,root,root) %{_libdir}/libva.so |
7a7f6185 | 337 | %attr(755,root,root) %{_libdir}/libva-tpi.so |
7a7f6185 | 338 | %{_libdir}/libva.la |
7a7f6185 | 339 | %{_libdir}/libva-tpi.la |
e299214a JB |
340 | %dir %{_includedir}/va |
341 | %{_includedir}/va/va.h | |
342 | %{_includedir}/va/va_backend.h | |
343 | %{_includedir}/va/va_backend_tpi.h | |
a6d28987 AM |
344 | %{_includedir}/va/va_backend_vpp.h |
345 | %{_includedir}/va/va_compat.h | |
07fcce03 | 346 | %{_includedir}/va/va_dec_hevc.h |
e299214a | 347 | %{_includedir}/va/va_dec_jpeg.h |
f4890299 | 348 | %{_includedir}/va/va_dec_vp8.h |
e299214a | 349 | %{_includedir}/va/va_drmcommon.h |
a6d28987 | 350 | %{_includedir}/va/va_enc_h264.h |
07fcce03 | 351 | %{_includedir}/va/va_enc_jpeg.h |
a6d28987 | 352 | %{_includedir}/va/va_enc_mpeg2.h |
1d118d7a | 353 | %{_includedir}/va/va_enc_vp8.h |
e299214a JB |
354 | %{_includedir}/va/va_tpi.h |
355 | %{_includedir}/va/va_version.h | |
a6d28987 | 356 | %{_includedir}/va/va_vpp.h |
7a7f6185 | 357 | %{_pkgconfigdir}/libva.pc |
7a7f6185 | 358 | %{_pkgconfigdir}/libva-tpi.pc |
cf8ad706 AM |
359 | |
360 | %files static | |
361 | %defattr(644,root,root,755) | |
7a7f6185 | 362 | %{_libdir}/libva.a |
e299214a JB |
363 | %{_libdir}/libva-tpi.a |
364 | ||
365 | %files drm | |
366 | %defattr(644,root,root,755) | |
367 | %attr(755,root,root) %{_libdir}/libva-drm.so.*.*.* | |
368 | %attr(755,root,root) %ghost %{_libdir}/libva-drm.so.1 | |
369 | ||
370 | %files drm-devel | |
371 | %defattr(644,root,root,755) | |
372 | %attr(755,root,root) %{_libdir}/libva-drm.so | |
373 | %{_libdir}/libva-drm.la | |
374 | %{_includedir}/va/va_drm.h | |
375 | %{_pkgconfigdir}/libva-drm.pc | |
376 | ||
377 | %files drm-static | |
378 | %defattr(644,root,root,755) | |
379 | %{_libdir}/libva-drm.a | |
380 | ||
381 | %files egl | |
382 | %defattr(644,root,root,755) | |
383 | %attr(755,root,root) %{_libdir}/libva-egl.so.*.*.* | |
384 | %attr(755,root,root) %ghost %{_libdir}/libva-egl.so.1 | |
385 | ||
386 | %files egl-devel | |
387 | %defattr(644,root,root,755) | |
388 | %attr(755,root,root) %{_libdir}/libva-egl.so | |
389 | %{_libdir}/libva-egl.la | |
390 | %{_includedir}/va/va_backend_egl.h | |
391 | %{_includedir}/va/va_egl.h | |
392 | %{_pkgconfigdir}/libva-egl.pc | |
393 | ||
394 | %files egl-static | |
395 | %defattr(644,root,root,755) | |
d7316b22 | 396 | %{_libdir}/libva-egl.a |
e299214a JB |
397 | |
398 | %files glx | |
399 | %defattr(644,root,root,755) | |
400 | %attr(755,root,root) %{_libdir}/libva-glx.so.*.*.* | |
401 | %attr(755,root,root) %ghost %{_libdir}/libva-glx.so.1 | |
402 | ||
403 | %files glx-devel | |
404 | %defattr(644,root,root,755) | |
405 | %attr(755,root,root) %{_libdir}/libva-glx.so | |
406 | %{_libdir}/libva-glx.la | |
407 | %{_includedir}/va/va_backend_glx.h | |
408 | %{_includedir}/va/va_glx.h | |
409 | %{_pkgconfigdir}/libva-glx.pc | |
410 | ||
411 | %files glx-static | |
412 | %defattr(644,root,root,755) | |
7a7f6185 | 413 | %{_libdir}/libva-glx.a |
e299214a JB |
414 | |
415 | %files wayland | |
416 | %defattr(644,root,root,755) | |
417 | %attr(755,root,root) %{_bindir}/putsurface_wayland | |
418 | %attr(755,root,root) %{_libdir}/libva-wayland.so.*.*.* | |
419 | %attr(755,root,root) %ghost %{_libdir}/libva-wayland.so.1 | |
420 | ||
421 | %files wayland-devel | |
422 | %defattr(644,root,root,755) | |
423 | %attr(755,root,root) %{_libdir}/libva-wayland.so | |
424 | %{_libdir}/libva-wayland.la | |
425 | %{_includedir}/va/va_backend_wayland.h | |
426 | %{_includedir}/va/va_wayland.h | |
427 | %{_pkgconfigdir}/libva-wayland.pc | |
428 | ||
429 | %files wayland-static | |
430 | %defattr(644,root,root,755) | |
431 | %{_libdir}/libva-wayland.a | |
432 | ||
433 | %files x11 | |
434 | %defattr(644,root,root,755) | |
3a6aef78 JB |
435 | %attr(755,root,root) %{_bindir}/h264encode |
436 | %attr(755,root,root) %{_bindir}/putsurface | |
e299214a JB |
437 | %attr(755,root,root) %{_libdir}/libva-x11.so.*.*.* |
438 | %attr(755,root,root) %ghost %{_libdir}/libva-x11.so.1 | |
439 | ||
440 | %files x11-devel | |
441 | %defattr(644,root,root,755) | |
442 | %attr(755,root,root) %{_libdir}/libva-x11.so | |
443 | %{_libdir}/libva-x11.la | |
444 | %{_includedir}/va/va_dri2.h | |
445 | %{_includedir}/va/va_dricommon.h | |
446 | %{_includedir}/va/va_x11.h | |
447 | %{_pkgconfigdir}/libva-x11.pc | |
448 | ||
449 | %files x11-static | |
450 | %defattr(644,root,root,755) | |
7a7f6185 | 451 | %{_libdir}/libva-x11.a |
3a6aef78 JB |
452 | |
453 | %files tools | |
454 | %defattr(644,root,root,755) | |
455 | %attr(755,root,root) %{_bindir}/avcenc | |
456 | %attr(755,root,root) %{_bindir}/loadjpeg | |
a6d28987 | 457 | %attr(755,root,root) %{_bindir}/mpeg2vaenc |
3a6aef78 JB |
458 | %attr(755,root,root) %{_bindir}/mpeg2vldemo |
459 | %attr(755,root,root) %{_bindir}/vainfo |