]>
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 |
d7c7e77e | 8 | Version: 1.8.1 |
781960b2 | 9 | Release: 1 |
b5396897 | 10 | License: MIT |
cf8ad706 | 11 | Group: Libraries |
d6d1d182 | 12 | Source0: https://www.freedesktop.org/software/vaapi/releases/libva/%{name}-%{version}.tar.bz2 |
d7c7e77e | 13 | # Source0-md5: a881c7f9c67bfd0f8bffac3bb535aaf2 |
d6d1d182 | 14 | URL: https://www.freedesktop.org/wiki/Software/vaapi |
e299214a | 15 | BuildRequires: Mesa-libEGL-devel |
154de1a7 | 16 | BuildRequires: Mesa-libGL-devel |
7a7f6185 | 17 | BuildRequires: autoconf >= 2.57 |
cf8ad706 | 18 | BuildRequires: automake |
b5396897 | 19 | BuildRequires: libdrm-devel >= 2.4 |
154de1a7 KK |
20 | BuildRequires: libtool |
21 | BuildRequires: pkgconfig | |
e299214a JB |
22 | # wayland-client |
23 | BuildRequires: wayland-devel >= 1.0.0 | |
b5396897 | 24 | BuildRequires: xorg-lib-libX11-devel |
7a7f6185 | 25 | BuildRequires: xorg-lib-libXext-devel |
154de1a7 | 26 | BuildRequires: xorg-lib-libXfixes-devel |
cf8ad706 AM |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
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). | |
34 | ||
7a7f6185 JB |
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). | |
41 | ||
cf8ad706 | 42 | %package devel |
7a7f6185 JB |
43 | Summary: Header files for libva libraries |
44 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libva | |
cf8ad706 | 45 | Group: Development/Libraries |
7a7f6185 | 46 | Requires: %{name} = %{version}-%{release} |
cf8ad706 AM |
47 | |
48 | %description devel | |
7a7f6185 JB |
49 | Header files for libva libraries. |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe bibliotek libva. | |
cf8ad706 AM |
53 | |
54 | %package static | |
7a7f6185 JB |
55 | Summary: Static libva libraries |
56 | Summary(pl.UTF-8): Statyczne biblioteki libva | |
cf8ad706 | 57 | Group: Development/Libraries |
7a7f6185 | 58 | Requires: %{name}-devel = %{version}-%{release} |
cf8ad706 AM |
59 | |
60 | %description static | |
7a7f6185 JB |
61 | Static libva libraries. |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczne biblioteki libva. | |
cf8ad706 | 65 | |
e299214a JB |
66 | %package drm |
67 | Summary: VAAPI - DRM interface library | |
68 | Summary(pl.UTF-8): VAAPI - biblioteka interfejsu DRM | |
69 | Group: Libraries | |
70 | Requires: %{name} = %{version}-%{release} | |
71 | Requires: libdrm >= 2.4 | |
72 | ||
73 | %description drm | |
74 | VAAPI - DRM interface library. | |
75 | ||
76 | %description drm -l pl.UTF-8 | |
77 | VAAPI - biblioteka interfejsu DRM. | |
78 | ||
79 | %package drm-devel | |
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 | |
86 | ||
87 | %description drm-devel | |
88 | Header files for VAAPI DRM interface library. | |
89 | ||
90 | %description drm-devel -l pl.UTF-8 | |
91 | Pliki nagłówkowe biblioteki interfejsu DRM VAAPI. | |
92 | ||
93 | %package drm-static | |
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} | |
98 | ||
99 | %description drm-static | |
100 | VAAPI - DRM interface static library. | |
101 | ||
102 | %description drm-static -l pl.UTF-8 | |
103 | VAAPI - statyczna biblioteka interfejsu DRM. | |
104 | ||
105 | %package egl | |
106 | Summary: VAAPI - EGL interface library | |
107 | Summary(pl.UTF-8): VAAPI - biblioteka interfejsu EGL | |
108 | Group: Libraries | |
109 | Requires: %{name}-x11 = %{version}-%{release} | |
110 | ||
111 | %description egl | |
112 | VAAPI - EGL interface library. | |
113 | ||
114 | %description egl -l pl.UTF-8 | |
115 | VAAPI - biblioteka interfejsu EGL. | |
116 | ||
117 | %package egl-devel | |
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} | |
123 | Requires: EGL-devel | |
124 | ||
125 | %description egl-devel | |
126 | Header files for VAAPI EGL interface library. | |
127 | ||
128 | %description egl-devel -l pl.UTF-8 | |
129 | Pliki nagłówkowe biblioteki interfejsu EGL VAAPI. | |
130 | ||
131 | %package egl-static | |
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} | |
136 | ||
137 | %description egl-static | |
138 | VAAPI - EGL interface static library. | |
139 | ||
140 | %description egl-static -l pl.UTF-8 | |
141 | VAAPI - statyczna biblioteka interfejsu EGL. | |
142 | ||
143 | %package glx | |
144 | Summary: VAAPI - GLX interface library | |
145 | Summary(pl.UTF-8): VAAPI - biblioteka interfejsu GLX | |
146 | Group: Libraries | |
147 | Requires: %{name}-x11 = %{version}-%{release} | |
148 | ||
149 | %description glx | |
150 | VAAPI - GLX interface library. | |
151 | ||
152 | %description glx -l pl.UTF-8 | |
153 | VAAPI - biblioteka interfejsu GLX. | |
154 | ||
155 | %package glx-devel | |
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 | |
162 | ||
163 | %description glx-devel | |
164 | Header files for VAAPI GLX interface library. | |
165 | ||
166 | %description glx-devel -l pl.UTF-8 | |
167 | Pliki nagłówkowe biblioteki interfejsu GLX VAAPI. | |
168 | ||
169 | %package glx-static | |
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} | |
174 | ||
175 | %description glx-static | |
176 | VAAPI - GLX interface static library. | |
177 | ||
178 | %description glx-static -l pl.UTF-8 | |
179 | VAAPI - statyczna biblioteka interfejsu GLX. | |
180 | ||
181 | %package wayland | |
182 | Summary: VAAPI - Wayland interface library | |
183 | Summary(pl.UTF-8): VAAPI - biblioteka interfejsu Wayland | |
184 | Group: Libraries | |
185 | Requires: %{name} = %{version}-%{release} | |
186 | Requires: wayland >= 1.0.0 | |
187 | ||
188 | %description wayland | |
189 | VAAPI - Wayland interface library. | |
190 | ||
191 | %description wayland -l pl.UTF-8 | |
192 | VAAPI - biblioteka interfejsu Wayland. | |
193 | ||
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 | |
201 | ||
202 | %description wayland-devel | |
203 | Header files for VAAPI Wayland interface library. | |
204 | ||
205 | %description wayland-devel -l pl.UTF-8 | |
206 | Pliki nagłówkowe biblioteki interfejsu Wayland VAAPI. | |
207 | ||
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} | |
213 | ||
214 | %description wayland-static | |
215 | VAAPI - Wayland interface static library. | |
216 | ||
217 | %description wayland-static -l pl.UTF-8 | |
218 | VAAPI - statyczna biblioteka interfejsu Wayland. | |
219 | ||
220 | %package x11 | |
221 | Summary: VAAPI - X11 interface library | |
222 | Summary(pl.UTF-8): VAAPI - biblioteka interfejsu X11 | |
223 | Group: Libraries | |
224 | Requires: %{name} = %{version}-%{release} | |
225 | Requires: libdrm >= 2.4 | |
226 | ||
227 | %description x11 | |
228 | VAAPI - X11 interface library. | |
229 | ||
230 | %description x11 -l pl.UTF-8 | |
231 | VAAPI - biblioteka interfejsu X11. | |
232 | ||
233 | %package x11-devel | |
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 | |
243 | ||
244 | %description x11-devel | |
245 | Header files for VAAPI X11 interface library. | |
246 | ||
247 | %description x11-devel -l pl.UTF-8 | |
248 | Pliki nagłówkowe biblioteki interfejsu X11 VAAPI. | |
249 | ||
250 | %package x11-static | |
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} | |
255 | ||
256 | %description x11-static | |
257 | VAAPI - X11 interface static library. | |
258 | ||
259 | %description x11-static -l pl.UTF-8 | |
260 | VAAPI - statyczna biblioteka interfejsu X11. | |
261 | ||
3a6aef78 JB |
262 | %package tools |
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} | |
269 | ||
270 | %description tools | |
271 | VAAPI test and example programs. | |
272 | ||
273 | %description tools -l pl.UTF-8 | |
274 | Programy testowe i przykładowe do VAAPI. | |
275 | ||
cf8ad706 | 276 | %prep |
3b224f4e | 277 | %setup -q |
cf8ad706 AM |
278 | |
279 | %build | |
7a7f6185 JB |
280 | %{__libtoolize} |
281 | %{__aclocal} | |
282 | %{__autoconf} | |
283 | %{__autoheader} | |
284 | %{__automake} | |
cf8ad706 | 285 | %configure \ |
7275dddd | 286 | --disable-silent-rules \ |
d7c7e77e | 287 | %{?with_static_libs:--enable-static} \ |
cf8ad706 AM |
288 | --with-drivers-path=%{_libdir}/%{name}/dri |
289 | ||
290 | %{__make} | |
291 | ||
292 | %install | |
293 | rm -rf $RPM_BUILD_ROOT | |
cf8ad706 | 294 | |
f4890299 AM |
295 | install -d $RPM_BUILD_ROOT/etc |
296 | ||
cf8ad706 AM |
297 | %{__make} install \ |
298 | DESTDIR=$RPM_BUILD_ROOT | |
299 | ||
f4890299 AM |
300 | echo "#LIBVA_DRIVER_NAME=vdpau" > $RPM_BUILD_ROOT/etc/libva.conf |
301 | ||
bd4b67f7 | 302 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/{%{name}/dri/*.{a,la},libva*.la} |
3b224f4e | 303 | |
cf8ad706 AM |
304 | %clean |
305 | rm -rf $RPM_BUILD_ROOT | |
306 | ||
e299214a JB |
307 | %post -p /sbin/ldconfig |
308 | %postun -p /sbin/ldconfig | |
309 | ||
310 | %post drm -p /sbin/ldconfig | |
311 | %postun drm -p /sbin/ldconfig | |
312 | ||
313 | %post egl -p /sbin/ldconfig | |
314 | %postun egl -p /sbin/ldconfig | |
315 | ||
316 | %post glx -p /sbin/ldconfig | |
317 | %postun glx -p /sbin/ldconfig | |
318 | ||
319 | %post wayland -p /sbin/ldconfig | |
320 | %postun wayland -p /sbin/ldconfig | |
321 | ||
322 | %post x11 -p /sbin/ldconfig | |
323 | %postun x11 -p /sbin/ldconfig | |
cf8ad706 AM |
324 | |
325 | %files | |
326 | %defattr(644,root,root,755) | |
b5396897 | 327 | %doc COPYING NEWS |
7a7f6185 JB |
328 | %attr(755,root,root) %{_libdir}/libva.so.*.*.* |
329 | %attr(755,root,root) %ghost %{_libdir}/libva.so.1 | |
7a7f6185 JB |
330 | %attr(755,root,root) %{_libdir}/libva-tpi.so.*.*.* |
331 | %attr(755,root,root) %ghost %{_libdir}/libva-tpi.so.1 | |
cf8ad706 AM |
332 | %dir %{_libdir}/%{name} |
333 | %dir %{_libdir}/%{name}/dri | |
7a7f6185 | 334 | %attr(755,root,root) %{_libdir}/%{name}/dri/dummy_drv_video.so |
f4890299 | 335 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libva.conf |
cf8ad706 AM |
336 | |
337 | %files devel | |
338 | %defattr(644,root,root,755) | |
7a7f6185 | 339 | %attr(755,root,root) %{_libdir}/libva.so |
7a7f6185 | 340 | %attr(755,root,root) %{_libdir}/libva-tpi.so |
e299214a JB |
341 | %dir %{_includedir}/va |
342 | %{_includedir}/va/va.h | |
343 | %{_includedir}/va/va_backend.h | |
344 | %{_includedir}/va/va_backend_tpi.h | |
a6d28987 AM |
345 | %{_includedir}/va/va_backend_vpp.h |
346 | %{_includedir}/va/va_compat.h | |
07fcce03 | 347 | %{_includedir}/va/va_dec_hevc.h |
e299214a | 348 | %{_includedir}/va/va_dec_jpeg.h |
f4890299 | 349 | %{_includedir}/va/va_dec_vp8.h |
781960b2 | 350 | %{_includedir}/va/va_dec_vp9.h |
e299214a | 351 | %{_includedir}/va/va_drmcommon.h |
781960b2 | 352 | %{_includedir}/va/va_enc_hevc.h |
a6d28987 | 353 | %{_includedir}/va/va_enc_h264.h |
07fcce03 | 354 | %{_includedir}/va/va_enc_jpeg.h |
a6d28987 | 355 | %{_includedir}/va/va_enc_mpeg2.h |
1d118d7a | 356 | %{_includedir}/va/va_enc_vp8.h |
5948f8f2 | 357 | %{_includedir}/va/va_enc_vp9.h |
e299214a JB |
358 | %{_includedir}/va/va_tpi.h |
359 | %{_includedir}/va/va_version.h | |
a6d28987 | 360 | %{_includedir}/va/va_vpp.h |
7a7f6185 | 361 | %{_pkgconfigdir}/libva.pc |
7a7f6185 | 362 | %{_pkgconfigdir}/libva-tpi.pc |
cf8ad706 | 363 | |
d7c7e77e | 364 | %if %{with static_libs} |
cf8ad706 AM |
365 | %files static |
366 | %defattr(644,root,root,755) | |
7a7f6185 | 367 | %{_libdir}/libva.a |
e299214a | 368 | %{_libdir}/libva-tpi.a |
d7c7e77e | 369 | %endif |
e299214a JB |
370 | |
371 | %files drm | |
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 | |
375 | ||
376 | %files drm-devel | |
377 | %defattr(644,root,root,755) | |
378 | %attr(755,root,root) %{_libdir}/libva-drm.so | |
e299214a JB |
379 | %{_includedir}/va/va_drm.h |
380 | %{_pkgconfigdir}/libva-drm.pc | |
381 | ||
d7c7e77e | 382 | %if %{with static_libs} |
e299214a JB |
383 | %files drm-static |
384 | %defattr(644,root,root,755) | |
385 | %{_libdir}/libva-drm.a | |
d7c7e77e | 386 | %endif |
e299214a JB |
387 | |
388 | %files egl | |
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 | |
392 | ||
393 | %files egl-devel | |
394 | %defattr(644,root,root,755) | |
395 | %attr(755,root,root) %{_libdir}/libva-egl.so | |
e299214a JB |
396 | %{_includedir}/va/va_backend_egl.h |
397 | %{_includedir}/va/va_egl.h | |
398 | %{_pkgconfigdir}/libva-egl.pc | |
399 | ||
d7c7e77e | 400 | %if %{with static_libs} |
e299214a JB |
401 | %files egl-static |
402 | %defattr(644,root,root,755) | |
d7316b22 | 403 | %{_libdir}/libva-egl.a |
d7c7e77e | 404 | %endif |
e299214a JB |
405 | |
406 | %files glx | |
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 | |
410 | ||
411 | %files glx-devel | |
412 | %defattr(644,root,root,755) | |
413 | %attr(755,root,root) %{_libdir}/libva-glx.so | |
e299214a JB |
414 | %{_includedir}/va/va_backend_glx.h |
415 | %{_includedir}/va/va_glx.h | |
416 | %{_pkgconfigdir}/libva-glx.pc | |
417 | ||
d7c7e77e | 418 | %if %{with static_libs} |
e299214a JB |
419 | %files glx-static |
420 | %defattr(644,root,root,755) | |
7a7f6185 | 421 | %{_libdir}/libva-glx.a |
d7c7e77e | 422 | %endif |
e299214a JB |
423 | |
424 | %files wayland | |
425 | %defattr(644,root,root,755) | |
e299214a JB |
426 | %attr(755,root,root) %{_libdir}/libva-wayland.so.*.*.* |
427 | %attr(755,root,root) %ghost %{_libdir}/libva-wayland.so.1 | |
428 | ||
429 | %files wayland-devel | |
430 | %defattr(644,root,root,755) | |
431 | %attr(755,root,root) %{_libdir}/libva-wayland.so | |
e299214a JB |
432 | %{_includedir}/va/va_backend_wayland.h |
433 | %{_includedir}/va/va_wayland.h | |
434 | %{_pkgconfigdir}/libva-wayland.pc | |
435 | ||
d7c7e77e | 436 | %if %{with static_libs} |
e299214a JB |
437 | %files wayland-static |
438 | %defattr(644,root,root,755) | |
439 | %{_libdir}/libva-wayland.a | |
d7c7e77e | 440 | %endif |
e299214a JB |
441 | |
442 | %files x11 | |
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 | |
446 | ||
447 | %files x11-devel | |
448 | %defattr(644,root,root,755) | |
449 | %attr(755,root,root) %{_libdir}/libva-x11.so | |
e299214a JB |
450 | %{_includedir}/va/va_dri2.h |
451 | %{_includedir}/va/va_dricommon.h | |
452 | %{_includedir}/va/va_x11.h | |
453 | %{_pkgconfigdir}/libva-x11.pc | |
454 | ||
d7c7e77e | 455 | %if %{with static_libs} |
e299214a JB |
456 | %files x11-static |
457 | %defattr(644,root,root,755) | |
7a7f6185 | 458 | %{_libdir}/libva-x11.a |
d7c7e77e | 459 | %endif |