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