3 %bcond_without static_libs # static libraries
5 Summary: VAAPI (Video Acceleration API)
6 Summary(pl.UTF-8): VAAPI (Video Acceleration API) - API akceleracji filmów
12 Source0: https://www.freedesktop.org/software/vaapi/releases/libva/%{name}-%{version}.tar.bz2
13 # Source0-md5: a881c7f9c67bfd0f8bffac3bb535aaf2
14 URL: https://www.freedesktop.org/wiki/Software/vaapi
15 BuildRequires: Mesa-libEGL-devel
16 BuildRequires: Mesa-libGL-devel
17 BuildRequires: autoconf >= 2.57
18 BuildRequires: automake
19 BuildRequires: libdrm-devel >= 2.4
20 BuildRequires: libtool
21 BuildRequires: pkgconfig
23 BuildRequires: wayland-devel >= 1.0.0
24 BuildRequires: xorg-lib-libX11-devel
25 BuildRequires: xorg-lib-libXext-devel
26 BuildRequires: xorg-lib-libXfixes-devel
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 The main motivation for VAAPI (Video Acceleration API) is to enable
31 hardware accelerated video decode/encode at various entry-points (VLD,
32 IDCT, Motion Compensation etc.) for the prevailing coding standards
33 today (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).
35 %description -l pl.UTF-8
36 Głównym celem API akceleracji filmów VAAPI (Video Acceleration API)
37 jest umożliwienie sprzętowej akceleracji dekodowania/kodowania filmów
38 na różnych etapach (VLD, IDCT, kompensacja ruchu itp.) dla obecnie
39 przeważających standardów kodowania (MPEG-2, MPEG-4 ASP/H.263, MPEG-4
40 AVC/H.264, VC-1/VMW3).
43 Summary: Header files for libva libraries
44 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libva
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
49 Header files for libva libraries.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe bibliotek libva.
55 Summary: Static libva libraries
56 Summary(pl.UTF-8): Statyczne biblioteki libva
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 Static libva libraries.
63 %description static -l pl.UTF-8
64 Statyczne biblioteki libva.
67 Summary: VAAPI - DRM interface library
68 Summary(pl.UTF-8): VAAPI - biblioteka interfejsu DRM
70 Requires: %{name} = %{version}-%{release}
71 Requires: libdrm >= 2.4
74 VAAPI - DRM interface library.
76 %description drm -l pl.UTF-8
77 VAAPI - biblioteka interfejsu DRM.
80 Summary: Header files for VAAPI DRM interface library
81 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu DRM VAAPI
82 Group: Development/Libraries
83 Requires: %{name}-devel = %{version}-%{release}
84 Requires: %{name}-drm = %{version}-%{release}
85 Requires: libdrm-devel >= 2.4
87 %description drm-devel
88 Header files for VAAPI DRM interface library.
90 %description drm-devel -l pl.UTF-8
91 Pliki nagłówkowe biblioteki interfejsu DRM VAAPI.
94 Summary: VAAPI - DRM interface static library
95 Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu DRM
96 Group: Development/Libraries
97 Requires: %{name}-drm-devel = %{version}-%{release}
99 %description drm-static
100 VAAPI - DRM interface static library.
102 %description drm-static -l pl.UTF-8
103 VAAPI - statyczna biblioteka interfejsu DRM.
106 Summary: VAAPI - EGL interface library
107 Summary(pl.UTF-8): VAAPI - biblioteka interfejsu EGL
109 Requires: %{name}-x11 = %{version}-%{release}
112 VAAPI - EGL interface library.
114 %description egl -l pl.UTF-8
115 VAAPI - biblioteka interfejsu EGL.
118 Summary: Header files for VAAPI EGL interface library
119 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu EGL VAAPI
120 Group: Development/Libraries
121 Requires: %{name}-egl = %{version}-%{release}
122 Requires: %{name}-x11-devel = %{version}-%{release}
125 %description egl-devel
126 Header files for VAAPI EGL interface library.
128 %description egl-devel -l pl.UTF-8
129 Pliki nagłówkowe biblioteki interfejsu EGL VAAPI.
132 Summary: VAAPI - EGL interface static library
133 Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu EGL
134 Group: Development/Libraries
135 Requires: %{name}-egl-devel = %{version}-%{release}
137 %description egl-static
138 VAAPI - EGL interface static library.
140 %description egl-static -l pl.UTF-8
141 VAAPI - statyczna biblioteka interfejsu EGL.
144 Summary: VAAPI - GLX interface library
145 Summary(pl.UTF-8): VAAPI - biblioteka interfejsu GLX
147 Requires: %{name}-x11 = %{version}-%{release}
150 VAAPI - GLX interface library.
152 %description glx -l pl.UTF-8
153 VAAPI - biblioteka interfejsu GLX.
156 Summary: Header files for VAAPI GLX interface library
157 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu GLX VAAPI
158 Group: Development/Libraries
159 Requires: %{name}-glx = %{version}-%{release}
160 Requires: %{name}-x11-devel = %{version}-%{release}
161 Requires: OpenGL-GLX-devel
163 %description glx-devel
164 Header files for VAAPI GLX interface library.
166 %description glx-devel -l pl.UTF-8
167 Pliki nagłówkowe biblioteki interfejsu GLX VAAPI.
170 Summary: VAAPI - GLX interface static library
171 Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu GLX
172 Group: Development/Libraries
173 Requires: %{name}-glx-devel = %{version}-%{release}
175 %description glx-static
176 VAAPI - GLX interface static library.
178 %description glx-static -l pl.UTF-8
179 VAAPI - statyczna biblioteka interfejsu GLX.
182 Summary: VAAPI - Wayland interface library
183 Summary(pl.UTF-8): VAAPI - biblioteka interfejsu Wayland
185 Requires: %{name} = %{version}-%{release}
186 Requires: wayland >= 1.0.0
189 VAAPI - Wayland interface library.
191 %description wayland -l pl.UTF-8
192 VAAPI - biblioteka interfejsu Wayland.
194 %package wayland-devel
195 Summary: Header files for VAAPI Wayland interface library
196 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu Wayland VAAPI
197 Group: Development/Libraries
198 Requires: %{name}-devel = %{version}-%{release}
199 Requires: %{name}-wayland = %{version}-%{release}
200 Requires: wayland-devel >= 1.0.0
202 %description wayland-devel
203 Header files for VAAPI Wayland interface library.
205 %description wayland-devel -l pl.UTF-8
206 Pliki nagłówkowe biblioteki interfejsu Wayland VAAPI.
208 %package wayland-static
209 Summary: VAAPI - Wayland interface static library
210 Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu Wayland
211 Group: Development/Libraries
212 Requires: %{name}-wayland-devel = %{version}-%{release}
214 %description wayland-static
215 VAAPI - Wayland interface static library.
217 %description wayland-static -l pl.UTF-8
218 VAAPI - statyczna biblioteka interfejsu Wayland.
221 Summary: VAAPI - X11 interface library
222 Summary(pl.UTF-8): VAAPI - biblioteka interfejsu X11
224 Requires: %{name} = %{version}-%{release}
225 Requires: libdrm >= 2.4
228 VAAPI - X11 interface library.
230 %description x11 -l pl.UTF-8
231 VAAPI - biblioteka interfejsu X11.
234 Summary: Header files for VAAPI X11 interface library
235 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu X11 VAAPI
236 Group: Development/Libraries
237 Requires: %{name}-devel = %{version}-%{release}
238 Requires: %{name}-x11 = %{version}-%{release}
239 Requires: libdrm-devel >= 2.4
240 Requires: xorg-lib-libX11-devel
241 Requires: xorg-lib-libXext-devel
242 Requires: xorg-lib-libXfixes-devel
244 %description x11-devel
245 Header files for VAAPI X11 interface library.
247 %description x11-devel -l pl.UTF-8
248 Pliki nagłówkowe biblioteki interfejsu X11 VAAPI.
251 Summary: VAAPI - X11 interface static library
252 Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu X11
253 Group: Development/Libraries
254 Requires: %{name}-x11-devel = %{version}-%{release}
256 %description x11-static
257 VAAPI - X11 interface static library.
259 %description x11-static -l pl.UTF-8
260 VAAPI - statyczna biblioteka interfejsu X11.
263 Summary: VAAPI test and example programs
264 Summary(pl.UTF-8): Programy testowe i przykładowe do VAAPI
265 Group: Applications/Graphics
266 Requires: %{name}-drm = %{version}-%{release}
267 Requires: %{name}-wayland = %{version}-%{release}
268 Requires: %{name}-x11 = %{version}-%{release}
271 VAAPI test and example programs.
273 %description tools -l pl.UTF-8
274 Programy testowe i przykładowe do VAAPI.
286 --disable-silent-rules \
287 %{?with_static_libs:--enable-static} \
288 --with-drivers-path=%{_libdir}/%{name}/dri
293 rm -rf $RPM_BUILD_ROOT
295 install -d $RPM_BUILD_ROOT/etc
298 DESTDIR=$RPM_BUILD_ROOT
300 echo "#LIBVA_DRIVER_NAME=vdpau" > $RPM_BUILD_ROOT/etc/libva.conf
302 %{__rm} $RPM_BUILD_ROOT%{_libdir}/{%{name}/dri/*.{a,la},libva*.la}
305 rm -rf $RPM_BUILD_ROOT
307 %post -p /sbin/ldconfig
308 %postun -p /sbin/ldconfig
310 %post drm -p /sbin/ldconfig
311 %postun drm -p /sbin/ldconfig
313 %post egl -p /sbin/ldconfig
314 %postun egl -p /sbin/ldconfig
316 %post glx -p /sbin/ldconfig
317 %postun glx -p /sbin/ldconfig
319 %post wayland -p /sbin/ldconfig
320 %postun wayland -p /sbin/ldconfig
322 %post x11 -p /sbin/ldconfig
323 %postun x11 -p /sbin/ldconfig
326 %defattr(644,root,root,755)
328 %attr(755,root,root) %{_libdir}/libva.so.*.*.*
329 %attr(755,root,root) %ghost %{_libdir}/libva.so.1
330 %attr(755,root,root) %{_libdir}/libva-tpi.so.*.*.*
331 %attr(755,root,root) %ghost %{_libdir}/libva-tpi.so.1
332 %dir %{_libdir}/%{name}
333 %dir %{_libdir}/%{name}/dri
334 %attr(755,root,root) %{_libdir}/%{name}/dri/dummy_drv_video.so
335 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libva.conf
338 %defattr(644,root,root,755)
339 %attr(755,root,root) %{_libdir}/libva.so
340 %attr(755,root,root) %{_libdir}/libva-tpi.so
341 %dir %{_includedir}/va
342 %{_includedir}/va/va.h
343 %{_includedir}/va/va_backend.h
344 %{_includedir}/va/va_backend_tpi.h
345 %{_includedir}/va/va_backend_vpp.h
346 %{_includedir}/va/va_compat.h
347 %{_includedir}/va/va_dec_hevc.h
348 %{_includedir}/va/va_dec_jpeg.h
349 %{_includedir}/va/va_dec_vp8.h
350 %{_includedir}/va/va_dec_vp9.h
351 %{_includedir}/va/va_drmcommon.h
352 %{_includedir}/va/va_enc_hevc.h
353 %{_includedir}/va/va_enc_h264.h
354 %{_includedir}/va/va_enc_jpeg.h
355 %{_includedir}/va/va_enc_mpeg2.h
356 %{_includedir}/va/va_enc_vp8.h
357 %{_includedir}/va/va_enc_vp9.h
358 %{_includedir}/va/va_tpi.h
359 %{_includedir}/va/va_version.h
360 %{_includedir}/va/va_vpp.h
361 %{_pkgconfigdir}/libva.pc
362 %{_pkgconfigdir}/libva-tpi.pc
364 %if %{with static_libs}
366 %defattr(644,root,root,755)
368 %{_libdir}/libva-tpi.a
372 %defattr(644,root,root,755)
373 %attr(755,root,root) %{_libdir}/libva-drm.so.*.*.*
374 %attr(755,root,root) %ghost %{_libdir}/libva-drm.so.1
377 %defattr(644,root,root,755)
378 %attr(755,root,root) %{_libdir}/libva-drm.so
379 %{_includedir}/va/va_drm.h
380 %{_pkgconfigdir}/libva-drm.pc
382 %if %{with static_libs}
384 %defattr(644,root,root,755)
385 %{_libdir}/libva-drm.a
389 %defattr(644,root,root,755)
390 %attr(755,root,root) %{_libdir}/libva-egl.so.*.*.*
391 %attr(755,root,root) %ghost %{_libdir}/libva-egl.so.1
394 %defattr(644,root,root,755)
395 %attr(755,root,root) %{_libdir}/libva-egl.so
396 %{_includedir}/va/va_backend_egl.h
397 %{_includedir}/va/va_egl.h
398 %{_pkgconfigdir}/libva-egl.pc
400 %if %{with static_libs}
402 %defattr(644,root,root,755)
403 %{_libdir}/libva-egl.a
407 %defattr(644,root,root,755)
408 %attr(755,root,root) %{_libdir}/libva-glx.so.*.*.*
409 %attr(755,root,root) %ghost %{_libdir}/libva-glx.so.1
412 %defattr(644,root,root,755)
413 %attr(755,root,root) %{_libdir}/libva-glx.so
414 %{_includedir}/va/va_backend_glx.h
415 %{_includedir}/va/va_glx.h
416 %{_pkgconfigdir}/libva-glx.pc
418 %if %{with static_libs}
420 %defattr(644,root,root,755)
421 %{_libdir}/libva-glx.a
425 %defattr(644,root,root,755)
426 %attr(755,root,root) %{_libdir}/libva-wayland.so.*.*.*
427 %attr(755,root,root) %ghost %{_libdir}/libva-wayland.so.1
430 %defattr(644,root,root,755)
431 %attr(755,root,root) %{_libdir}/libva-wayland.so
432 %{_includedir}/va/va_backend_wayland.h
433 %{_includedir}/va/va_wayland.h
434 %{_pkgconfigdir}/libva-wayland.pc
436 %if %{with static_libs}
437 %files wayland-static
438 %defattr(644,root,root,755)
439 %{_libdir}/libva-wayland.a
443 %defattr(644,root,root,755)
444 %attr(755,root,root) %{_libdir}/libva-x11.so.*.*.*
445 %attr(755,root,root) %ghost %{_libdir}/libva-x11.so.1
448 %defattr(644,root,root,755)
449 %attr(755,root,root) %{_libdir}/libva-x11.so
450 %{_includedir}/va/va_dri2.h
451 %{_includedir}/va/va_dricommon.h
452 %{_includedir}/va/va_x11.h
453 %{_pkgconfigdir}/libva-x11.pc
455 %if %{with static_libs}
457 %defattr(644,root,root,755)
458 %{_libdir}/libva-x11.a