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