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