]>
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 |
c10ceb33 | 8 | Version: 2.3.0 |
9c51ae7b | 9 | Release: 2 |
b5396897 | 10 | License: MIT |
cf8ad706 | 11 | Group: Libraries |
76581059 LG |
12 | Source0: https://github.com/intel/libva/releases/download/%{version}/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 2555c46075ab2f6128f39902ba1c6183 | |
75d82d25 | 14 | URL: https://github.com/intel/libva |
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 | ||
e299214a JB |
105 | %package glx |
106 | Summary: VAAPI - GLX interface library | |
107 | Summary(pl.UTF-8): VAAPI - biblioteka interfejsu GLX | |
108 | Group: Libraries | |
109 | Requires: %{name}-x11 = %{version}-%{release} | |
110 | ||
111 | %description glx | |
112 | VAAPI - GLX interface library. | |
113 | ||
114 | %description glx -l pl.UTF-8 | |
115 | VAAPI - biblioteka interfejsu GLX. | |
116 | ||
117 | %package glx-devel | |
118 | Summary: Header files for VAAPI GLX interface library | |
119 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu GLX VAAPI | |
120 | Group: Development/Libraries | |
121 | Requires: %{name}-glx = %{version}-%{release} | |
122 | Requires: %{name}-x11-devel = %{version}-%{release} | |
123 | Requires: OpenGL-GLX-devel | |
124 | ||
125 | %description glx-devel | |
126 | Header files for VAAPI GLX interface library. | |
127 | ||
128 | %description glx-devel -l pl.UTF-8 | |
129 | Pliki nagłówkowe biblioteki interfejsu GLX VAAPI. | |
130 | ||
131 | %package glx-static | |
132 | Summary: VAAPI - GLX interface static library | |
133 | Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu GLX | |
134 | Group: Development/Libraries | |
135 | Requires: %{name}-glx-devel = %{version}-%{release} | |
136 | ||
137 | %description glx-static | |
138 | VAAPI - GLX interface static library. | |
139 | ||
140 | %description glx-static -l pl.UTF-8 | |
141 | VAAPI - statyczna biblioteka interfejsu GLX. | |
142 | ||
143 | %package wayland | |
144 | Summary: VAAPI - Wayland interface library | |
145 | Summary(pl.UTF-8): VAAPI - biblioteka interfejsu Wayland | |
146 | Group: Libraries | |
147 | Requires: %{name} = %{version}-%{release} | |
148 | Requires: wayland >= 1.0.0 | |
149 | ||
150 | %description wayland | |
151 | VAAPI - Wayland interface library. | |
152 | ||
153 | %description wayland -l pl.UTF-8 | |
154 | VAAPI - biblioteka interfejsu Wayland. | |
155 | ||
156 | %package wayland-devel | |
157 | Summary: Header files for VAAPI Wayland interface library | |
158 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu Wayland VAAPI | |
159 | Group: Development/Libraries | |
160 | Requires: %{name}-devel = %{version}-%{release} | |
161 | Requires: %{name}-wayland = %{version}-%{release} | |
162 | Requires: wayland-devel >= 1.0.0 | |
163 | ||
164 | %description wayland-devel | |
165 | Header files for VAAPI Wayland interface library. | |
166 | ||
167 | %description wayland-devel -l pl.UTF-8 | |
168 | Pliki nagłówkowe biblioteki interfejsu Wayland VAAPI. | |
169 | ||
170 | %package wayland-static | |
171 | Summary: VAAPI - Wayland interface static library | |
172 | Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu Wayland | |
173 | Group: Development/Libraries | |
174 | Requires: %{name}-wayland-devel = %{version}-%{release} | |
175 | ||
176 | %description wayland-static | |
177 | VAAPI - Wayland interface static library. | |
178 | ||
179 | %description wayland-static -l pl.UTF-8 | |
180 | VAAPI - statyczna biblioteka interfejsu Wayland. | |
181 | ||
182 | %package x11 | |
183 | Summary: VAAPI - X11 interface library | |
184 | Summary(pl.UTF-8): VAAPI - biblioteka interfejsu X11 | |
185 | Group: Libraries | |
186 | Requires: %{name} = %{version}-%{release} | |
187 | Requires: libdrm >= 2.4 | |
188 | ||
189 | %description x11 | |
190 | VAAPI - X11 interface library. | |
191 | ||
192 | %description x11 -l pl.UTF-8 | |
193 | VAAPI - biblioteka interfejsu X11. | |
194 | ||
195 | %package x11-devel | |
196 | Summary: Header files for VAAPI X11 interface library | |
197 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki interfejsu X11 VAAPI | |
198 | Group: Development/Libraries | |
199 | Requires: %{name}-devel = %{version}-%{release} | |
200 | Requires: %{name}-x11 = %{version}-%{release} | |
201 | Requires: libdrm-devel >= 2.4 | |
202 | Requires: xorg-lib-libX11-devel | |
203 | Requires: xorg-lib-libXext-devel | |
204 | Requires: xorg-lib-libXfixes-devel | |
205 | ||
206 | %description x11-devel | |
207 | Header files for VAAPI X11 interface library. | |
208 | ||
209 | %description x11-devel -l pl.UTF-8 | |
210 | Pliki nagłówkowe biblioteki interfejsu X11 VAAPI. | |
211 | ||
212 | %package x11-static | |
213 | Summary: VAAPI - X11 interface static library | |
214 | Summary(pl.UTF-8): VAAPI - statyczna biblioteka interfejsu X11 | |
215 | Group: Development/Libraries | |
216 | Requires: %{name}-x11-devel = %{version}-%{release} | |
217 | ||
218 | %description x11-static | |
219 | VAAPI - X11 interface static library. | |
220 | ||
221 | %description x11-static -l pl.UTF-8 | |
222 | VAAPI - statyczna biblioteka interfejsu X11. | |
223 | ||
3a6aef78 JB |
224 | %package tools |
225 | Summary: VAAPI test and example programs | |
226 | Summary(pl.UTF-8): Programy testowe i przykładowe do VAAPI | |
227 | Group: Applications/Graphics | |
228 | Requires: %{name}-drm = %{version}-%{release} | |
229 | Requires: %{name}-wayland = %{version}-%{release} | |
230 | Requires: %{name}-x11 = %{version}-%{release} | |
231 | ||
232 | %description tools | |
233 | VAAPI test and example programs. | |
234 | ||
235 | %description tools -l pl.UTF-8 | |
236 | Programy testowe i przykładowe do VAAPI. | |
237 | ||
cf8ad706 | 238 | %prep |
3b224f4e | 239 | %setup -q |
cf8ad706 AM |
240 | |
241 | %build | |
7a7f6185 JB |
242 | %{__libtoolize} |
243 | %{__aclocal} | |
244 | %{__autoconf} | |
245 | %{__autoheader} | |
246 | %{__automake} | |
cf8ad706 | 247 | %configure \ |
7275dddd | 248 | --disable-silent-rules \ |
d7c7e77e | 249 | %{?with_static_libs:--enable-static} \ |
cf8ad706 AM |
250 | --with-drivers-path=%{_libdir}/%{name}/dri |
251 | ||
252 | %{__make} | |
253 | ||
254 | %install | |
255 | rm -rf $RPM_BUILD_ROOT | |
cf8ad706 | 256 | |
f4890299 | 257 | install -d $RPM_BUILD_ROOT/etc |
9c51ae7b | 258 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/dri |
f4890299 | 259 | |
cf8ad706 AM |
260 | %{__make} install \ |
261 | DESTDIR=$RPM_BUILD_ROOT | |
262 | ||
f4890299 AM |
263 | echo "#LIBVA_DRIVER_NAME=vdpau" > $RPM_BUILD_ROOT/etc/libva.conf |
264 | ||
c10ceb33 | 265 | #%{__rm} $RPM_BUILD_ROOT%{_libdir}/{%{name}/dri/*.{a,la},libva*.la} |
3b224f4e | 266 | |
cf8ad706 AM |
267 | %clean |
268 | rm -rf $RPM_BUILD_ROOT | |
269 | ||
e299214a JB |
270 | %post -p /sbin/ldconfig |
271 | %postun -p /sbin/ldconfig | |
272 | ||
273 | %post drm -p /sbin/ldconfig | |
274 | %postun drm -p /sbin/ldconfig | |
275 | ||
e299214a JB |
276 | %post glx -p /sbin/ldconfig |
277 | %postun glx -p /sbin/ldconfig | |
278 | ||
279 | %post wayland -p /sbin/ldconfig | |
280 | %postun wayland -p /sbin/ldconfig | |
281 | ||
282 | %post x11 -p /sbin/ldconfig | |
283 | %postun x11 -p /sbin/ldconfig | |
cf8ad706 AM |
284 | |
285 | %files | |
286 | %defattr(644,root,root,755) | |
b5396897 | 287 | %doc COPYING NEWS |
7a7f6185 | 288 | %attr(755,root,root) %{_libdir}/libva.so.*.*.* |
c10ceb33 | 289 | %attr(755,root,root) %ghost %{_libdir}/libva.so.2 |
9c51ae7b LG |
290 | %dir %{_libdir}/%{name} |
291 | %dir %{_libdir}/%{name}/dri | |
c10ceb33 | 292 | #%attr(755,root,root) %{_libdir}/%{name}/dri/dummy_drv_video.so |
f4890299 | 293 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libva.conf |
cf8ad706 AM |
294 | |
295 | %files devel | |
296 | %defattr(644,root,root,755) | |
7a7f6185 | 297 | %attr(755,root,root) %{_libdir}/libva.so |
e299214a JB |
298 | %dir %{_includedir}/va |
299 | %{_includedir}/va/va.h | |
300 | %{_includedir}/va/va_backend.h | |
c10ceb33 | 301 | #%{_includedir}/va/va_backend_tpi.h |
a6d28987 AM |
302 | %{_includedir}/va/va_backend_vpp.h |
303 | %{_includedir}/va/va_compat.h | |
07fcce03 | 304 | %{_includedir}/va/va_dec_hevc.h |
e299214a | 305 | %{_includedir}/va/va_dec_jpeg.h |
f4890299 | 306 | %{_includedir}/va/va_dec_vp8.h |
781960b2 | 307 | %{_includedir}/va/va_dec_vp9.h |
e299214a | 308 | %{_includedir}/va/va_drmcommon.h |
c10ceb33 | 309 | %{_includedir}/va/va_egl.h |
781960b2 | 310 | %{_includedir}/va/va_enc_hevc.h |
a6d28987 | 311 | %{_includedir}/va/va_enc_h264.h |
07fcce03 | 312 | %{_includedir}/va/va_enc_jpeg.h |
a6d28987 | 313 | %{_includedir}/va/va_enc_mpeg2.h |
1d118d7a | 314 | %{_includedir}/va/va_enc_vp8.h |
5948f8f2 | 315 | %{_includedir}/va/va_enc_vp9.h |
c10ceb33 LG |
316 | %{_includedir}/va/va_fei*.h |
317 | %{_includedir}/va/va_str.h | |
e299214a JB |
318 | %{_includedir}/va/va_tpi.h |
319 | %{_includedir}/va/va_version.h | |
a6d28987 | 320 | %{_includedir}/va/va_vpp.h |
7a7f6185 | 321 | %{_pkgconfigdir}/libva.pc |
cf8ad706 | 322 | |
d7c7e77e | 323 | %if %{with static_libs} |
cf8ad706 AM |
324 | %files static |
325 | %defattr(644,root,root,755) | |
7a7f6185 | 326 | %{_libdir}/libva.a |
d7c7e77e | 327 | %endif |
e299214a JB |
328 | |
329 | %files drm | |
330 | %defattr(644,root,root,755) | |
331 | %attr(755,root,root) %{_libdir}/libva-drm.so.*.*.* | |
c10ceb33 | 332 | %attr(755,root,root) %ghost %{_libdir}/libva-drm.so.2 |
e299214a JB |
333 | |
334 | %files drm-devel | |
335 | %defattr(644,root,root,755) | |
336 | %attr(755,root,root) %{_libdir}/libva-drm.so | |
e299214a JB |
337 | %{_includedir}/va/va_drm.h |
338 | %{_pkgconfigdir}/libva-drm.pc | |
339 | ||
d7c7e77e | 340 | %if %{with static_libs} |
e299214a JB |
341 | %files drm-static |
342 | %defattr(644,root,root,755) | |
343 | %{_libdir}/libva-drm.a | |
d7c7e77e | 344 | %endif |
e299214a | 345 | |
e299214a JB |
346 | %files glx |
347 | %defattr(644,root,root,755) | |
348 | %attr(755,root,root) %{_libdir}/libva-glx.so.*.*.* | |
c10ceb33 | 349 | %attr(755,root,root) %ghost %{_libdir}/libva-glx.so.2 |
e299214a JB |
350 | |
351 | %files glx-devel | |
352 | %defattr(644,root,root,755) | |
353 | %attr(755,root,root) %{_libdir}/libva-glx.so | |
e299214a JB |
354 | %{_includedir}/va/va_backend_glx.h |
355 | %{_includedir}/va/va_glx.h | |
356 | %{_pkgconfigdir}/libva-glx.pc | |
357 | ||
d7c7e77e | 358 | %if %{with static_libs} |
e299214a JB |
359 | %files glx-static |
360 | %defattr(644,root,root,755) | |
7a7f6185 | 361 | %{_libdir}/libva-glx.a |
d7c7e77e | 362 | %endif |
e299214a JB |
363 | |
364 | %files wayland | |
365 | %defattr(644,root,root,755) | |
e299214a | 366 | %attr(755,root,root) %{_libdir}/libva-wayland.so.*.*.* |
c10ceb33 | 367 | %attr(755,root,root) %ghost %{_libdir}/libva-wayland.so.2 |
e299214a JB |
368 | |
369 | %files wayland-devel | |
370 | %defattr(644,root,root,755) | |
371 | %attr(755,root,root) %{_libdir}/libva-wayland.so | |
e299214a JB |
372 | %{_includedir}/va/va_backend_wayland.h |
373 | %{_includedir}/va/va_wayland.h | |
374 | %{_pkgconfigdir}/libva-wayland.pc | |
375 | ||
d7c7e77e | 376 | %if %{with static_libs} |
e299214a JB |
377 | %files wayland-static |
378 | %defattr(644,root,root,755) | |
379 | %{_libdir}/libva-wayland.a | |
d7c7e77e | 380 | %endif |
e299214a JB |
381 | |
382 | %files x11 | |
383 | %defattr(644,root,root,755) | |
384 | %attr(755,root,root) %{_libdir}/libva-x11.so.*.*.* | |
c10ceb33 | 385 | %attr(755,root,root) %ghost %{_libdir}/libva-x11.so.2 |
e299214a JB |
386 | |
387 | %files x11-devel | |
388 | %defattr(644,root,root,755) | |
389 | %attr(755,root,root) %{_libdir}/libva-x11.so | |
e299214a JB |
390 | %{_includedir}/va/va_dri2.h |
391 | %{_includedir}/va/va_dricommon.h | |
392 | %{_includedir}/va/va_x11.h | |
393 | %{_pkgconfigdir}/libva-x11.pc | |
394 | ||
d7c7e77e | 395 | %if %{with static_libs} |
e299214a JB |
396 | %files x11-static |
397 | %defattr(644,root,root,755) | |
7a7f6185 | 398 | %{_libdir}/libva-x11.a |
d7c7e77e | 399 | %endif |