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