1 Summary: VAAPI (Video Acceleration API)
2 Summary(pl.UTF-8): VAAPI (Video Acceleration API) - API akceleracji filmów
8 Source0: http://www.freedesktop.org/software/vaapi/releases/libva/%{name}-%{version}.tar.bz2
9 # Source0-md5: 51bb3b8de1de14ea036f68ef5065a932
10 Patch0: %{name}-am.patch
11 Patch1: %{name}-wayland.patch
12 URL: http://www.freedesktop.org/wiki/Software/vaapi
13 BuildRequires: Mesa-libEGL-devel
14 BuildRequires: Mesa-libGL-devel
15 BuildRequires: autoconf >= 2.57
16 BuildRequires: automake
17 BuildRequires: libdrm-devel >= 2.4
18 BuildRequires: libtool
19 BuildRequires: pkgconfig
21 BuildRequires: wayland-devel >= 1.0.0
22 BuildRequires: xorg-lib-libX11-devel
23 BuildRequires: xorg-lib-libXext-devel
24 BuildRequires: xorg-lib-libXfixes-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 The main motivation for VAAPI (Video Acceleration API) is to enable
29 hardware accelerated video decode/encode at various entry-points (VLD,
30 IDCT, Motion Compensation etc.) for the prevailing coding standards
31 today (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).
33 %description -l pl.UTF-8
34 Głównym celem API akceleracji filmów VAAPI (Video Acceleration API)
35 jest umożliwienie sprzętowej akceleracji dekodowania/kodowania filmów
36 na różnych etapach (VLD, IDCT, kompensacja ruchu itp.) dla obecnie
37 przeważających standardów kodowania (MPEG-2, MPEG-4 ASP/H.263, MPEG-4
38 AVC/H.264, VC-1/VMW3).
41 Summary: Header files for libva libraries
42 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libva
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
47 Header files for libva libraries.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe bibliotek libva.
53 Summary: Static libva libraries
54 Summary(pl.UTF-8): Statyczne biblioteki libva
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 Static libva libraries.
61 %description static -l pl.UTF-8
62 Statyczne biblioteki libva.
65 Summary: VAAPI - DRM interface library
66 Summary(pl.UTF-8): VAAPI - biblioteka interfejsu DRM
68 Requires: %{name} = %{version}-%{release}
69 Requires: libdrm >= 2.4
72 VAAPI - DRM interface library.
74 %description drm -l pl.UTF-8
75 VAAPI - biblioteka interfejsu DRM.
78 Summary: Header files for VAAPI DRM interface library
79 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu DRM VAAPI
80 Group: Development/Libraries
81 Requires: %{name}-devel = %{version}-%{release}
82 Requires: %{name}-drm = %{version}-%{release}
83 Requires: libdrm-devel >= 2.4
85 %description drm-devel
86 Header files for VAAPI DRM interface library.
88 %description drm-devel -l pl.UTF-8
89 Pliki nagłówkowe biblioteki interfejsu DRM VAAPI.
92 Summary: VAAPI - DRM interface static library
93 Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu DRM
94 Group: Development/Libraries
95 Requires: %{name}-drm-devel = %{version}-%{release}
97 %description drm-static
98 VAAPI - DRM interface static library.
100 %description drm-static -l pl.UTF-8
101 VAAPI - statyczna biblioteka interfejsu DRM.
104 Summary: VAAPI - EGL interface library
105 Summary(pl.UTF-8): VAAPI - biblioteka interfejsu EGL
107 Requires: %{name}-x11 = %{version}-%{release}
110 VAAPI - EGL interface library.
112 %description egl -l pl.UTF-8
113 VAAPI - biblioteka interfejsu EGL.
116 Summary: Header files for VAAPI EGL interface library
117 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu EGL VAAPI
118 Group: Development/Libraries
119 Requires: %{name}-egl = %{version}-%{release}
120 Requires: %{name}-x11-devel = %{version}-%{release}
123 %description egl-devel
124 Header files for VAAPI EGL interface library.
126 %description egl-devel -l pl.UTF-8
127 Pliki nagłówkowe biblioteki interfejsu EGL VAAPI.
130 Summary: VAAPI - EGL interface static library
131 Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu EGL
132 Group: Development/Libraries
133 Requires: %{name}-egl-devel = %{version}-%{release}
135 %description egl-static
136 VAAPI - EGL interface static library.
138 %description egl-static -l pl.UTF-8
139 VAAPI - statyczna biblioteka interfejsu EGL.
142 Summary: VAAPI - GLX interface library
143 Summary(pl.UTF-8): VAAPI - biblioteka interfejsu GLX
145 Requires: %{name}-x11 = %{version}-%{release}
148 VAAPI - GLX interface library.
150 %description glx -l pl.UTF-8
151 VAAPI - biblioteka interfejsu GLX.
154 Summary: Header files for VAAPI GLX interface library
155 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu GLX VAAPI
156 Group: Development/Libraries
157 Requires: %{name}-glx = %{version}-%{release}
158 Requires: %{name}-x11-devel = %{version}-%{release}
159 Requires: OpenGL-GLX-devel
161 %description glx-devel
162 Header files for VAAPI GLX interface library.
164 %description glx-devel -l pl.UTF-8
165 Pliki nagłówkowe biblioteki interfejsu GLX VAAPI.
168 Summary: VAAPI - GLX interface static library
169 Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu GLX
170 Group: Development/Libraries
171 Requires: %{name}-glx-devel = %{version}-%{release}
173 %description glx-static
174 VAAPI - GLX interface static library.
176 %description glx-static -l pl.UTF-8
177 VAAPI - statyczna biblioteka interfejsu GLX.
180 Summary: VAAPI - Wayland interface library
181 Summary(pl.UTF-8): VAAPI - biblioteka interfejsu Wayland
183 Requires: %{name} = %{version}-%{release}
184 Requires: wayland >= 1.0.0
187 VAAPI - Wayland interface library.
189 %description wayland -l pl.UTF-8
190 VAAPI - biblioteka interfejsu Wayland.
192 %package wayland-devel
193 Summary: Header files for VAAPI Wayland interface library
194 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu Wayland VAAPI
195 Group: Development/Libraries
196 Requires: %{name}-devel = %{version}-%{release}
197 Requires: %{name}-wayland = %{version}-%{release}
198 Requires: wayland-devel >= 1.0.0
200 %description wayland-devel
201 Header files for VAAPI Wayland interface library.
203 %description wayland-devel -l pl.UTF-8
204 Pliki nagłówkowe biblioteki interfejsu Wayland VAAPI.
206 %package wayland-static
207 Summary: VAAPI - Wayland interface static library
208 Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu Wayland
209 Group: Development/Libraries
210 Requires: %{name}-wayland-devel = %{version}-%{release}
212 %description wayland-static
213 VAAPI - Wayland interface static library.
215 %description wayland-static -l pl.UTF-8
216 VAAPI - statyczna biblioteka interfejsu Wayland.
219 Summary: VAAPI - X11 interface library
220 Summary(pl.UTF-8): VAAPI - biblioteka interfejsu X11
222 Requires: %{name} = %{version}-%{release}
223 Requires: libdrm >= 2.4
226 VAAPI - X11 interface library.
228 %description x11 -l pl.UTF-8
229 VAAPI - biblioteka interfejsu X11.
232 Summary: Header files for VAAPI X11 interface library
233 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu X11 VAAPI
234 Group: Development/Libraries
235 Requires: %{name}-devel = %{version}-%{release}
236 Requires: %{name}-x11 = %{version}-%{release}
237 Requires: libdrm-devel >= 2.4
238 Requires: xorg-lib-libX11-devel
239 Requires: xorg-lib-libXext-devel
240 Requires: xorg-lib-libXfixes-devel
242 %description x11-devel
243 Header files for VAAPI X11 interface library.
245 %description x11-devel -l pl.UTF-8
246 Pliki nagłówkowe biblioteki interfejsu X11 VAAPI.
249 Summary: VAAPI - X11 interface static library
250 Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu X11
251 Group: Development/Libraries
252 Requires: %{name}-x11-devel = %{version}-%{release}
254 %description x11-static
255 VAAPI - X11 interface static library.
257 %description x11-static -l pl.UTF-8
258 VAAPI - statyczna biblioteka interfejsu X11.
272 --disable-silent-rules \
274 --with-drivers-path=%{_libdir}/%{name}/dri
279 rm -rf $RPM_BUILD_ROOT
282 DESTDIR=$RPM_BUILD_ROOT
284 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/dri/*.{a,la}
287 rm -rf $RPM_BUILD_ROOT
289 %post -p /sbin/ldconfig
290 %postun -p /sbin/ldconfig
292 %post drm -p /sbin/ldconfig
293 %postun drm -p /sbin/ldconfig
295 %post egl -p /sbin/ldconfig
296 %postun egl -p /sbin/ldconfig
298 %post glx -p /sbin/ldconfig
299 %postun glx -p /sbin/ldconfig
301 %post wayland -p /sbin/ldconfig
302 %postun wayland -p /sbin/ldconfig
304 %post x11 -p /sbin/ldconfig
305 %postun x11 -p /sbin/ldconfig
308 %defattr(644,root,root,755)
310 %attr(755,root,root) %{_bindir}/avcenc
311 %attr(755,root,root) %{_bindir}/h264encode
312 %attr(755,root,root) %{_bindir}/loadjpeg
313 %attr(755,root,root) %{_bindir}/mpeg2vldemo
314 %attr(755,root,root) %{_bindir}/putsurface
315 %attr(755,root,root) %{_bindir}/vainfo
316 %attr(755,root,root) %{_libdir}/libva.so.*.*.*
317 %attr(755,root,root) %ghost %{_libdir}/libva.so.1
318 %attr(755,root,root) %{_libdir}/libva-tpi.so.*.*.*
319 %attr(755,root,root) %ghost %{_libdir}/libva-tpi.so.1
320 %dir %{_libdir}/%{name}
321 %dir %{_libdir}/%{name}/dri
322 %attr(755,root,root) %{_libdir}/%{name}/dri/dummy_drv_video.so
325 %defattr(644,root,root,755)
326 %attr(755,root,root) %{_libdir}/libva.so
327 %attr(755,root,root) %{_libdir}/libva-tpi.so
329 %{_libdir}/libva-tpi.la
330 %dir %{_includedir}/va
331 %{_includedir}/va/va.h
332 %{_includedir}/va/va_backend.h
333 %{_includedir}/va/va_backend_tpi.h
334 %{_includedir}/va/va_dec_jpeg.h
335 %{_includedir}/va/va_drmcommon.h
336 %{_includedir}/va/va_tpi.h
337 %{_includedir}/va/va_version.h
338 %{_pkgconfigdir}/libva.pc
339 %{_pkgconfigdir}/libva-tpi.pc
342 %defattr(644,root,root,755)
344 %{_libdir}/libva-tpi.a
347 %defattr(644,root,root,755)
348 %attr(755,root,root) %{_libdir}/libva-drm.so.*.*.*
349 %attr(755,root,root) %ghost %{_libdir}/libva-drm.so.1
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_libdir}/libva-drm.so
354 %{_libdir}/libva-drm.la
355 %{_includedir}/va/va_drm.h
356 %{_pkgconfigdir}/libva-drm.pc
359 %defattr(644,root,root,755)
360 %{_libdir}/libva-drm.a
363 %defattr(644,root,root,755)
364 %attr(755,root,root) %{_libdir}/libva-egl.so.*.*.*
365 %attr(755,root,root) %ghost %{_libdir}/libva-egl.so.1
368 %defattr(644,root,root,755)
369 %attr(755,root,root) %{_libdir}/libva-egl.so
370 %{_libdir}/libva-egl.la
371 %{_includedir}/va/va_backend_egl.h
372 %{_includedir}/va/va_egl.h
373 %{_pkgconfigdir}/libva-egl.pc
376 %defattr(644,root,root,755)
377 %{_libdir}/libva-egl.a
380 %defattr(644,root,root,755)
381 %attr(755,root,root) %{_libdir}/libva-glx.so.*.*.*
382 %attr(755,root,root) %ghost %{_libdir}/libva-glx.so.1
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_libdir}/libva-glx.so
387 %{_libdir}/libva-glx.la
388 %{_includedir}/va/va_backend_glx.h
389 %{_includedir}/va/va_glx.h
390 %{_pkgconfigdir}/libva-glx.pc
393 %defattr(644,root,root,755)
394 %{_libdir}/libva-glx.a
397 %defattr(644,root,root,755)
398 %attr(755,root,root) %{_bindir}/putsurface_wayland
399 %attr(755,root,root) %{_libdir}/libva-wayland.so.*.*.*
400 %attr(755,root,root) %ghost %{_libdir}/libva-wayland.so.1
403 %defattr(644,root,root,755)
404 %attr(755,root,root) %{_libdir}/libva-wayland.so
405 %{_libdir}/libva-wayland.la
406 %{_includedir}/va/va_backend_wayland.h
407 %{_includedir}/va/va_wayland.h
408 %{_pkgconfigdir}/libva-wayland.pc
410 %files wayland-static
411 %defattr(644,root,root,755)
412 %{_libdir}/libva-wayland.a
415 %defattr(644,root,root,755)
416 %attr(755,root,root) %{_libdir}/libva-x11.so.*.*.*
417 %attr(755,root,root) %ghost %{_libdir}/libva-x11.so.1
420 %defattr(644,root,root,755)
421 %attr(755,root,root) %{_libdir}/libva-x11.so
422 %{_libdir}/libva-x11.la
423 %{_includedir}/va/va_dri2.h
424 %{_includedir}/va/va_dricommon.h
425 %{_includedir}/va/va_x11.h
426 %{_pkgconfigdir}/libva-x11.pc
429 %defattr(644,root,root,755)
430 %{_libdir}/libva-x11.a