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