]> git.pld-linux.org Git - packages/libva.git/blob - libva.spec
- up to 1.4.1
[packages/libva.git] / libva.spec
1 Summary:        VAAPI (Video Acceleration API)
2 Summary(pl.UTF-8):      VAAPI (Video Acceleration API) - API akceleracji filmów
3 Name:           libva
4 Version:        1.4.1
5 Release:        1
6 License:        MIT
7 Group:          Libraries
8 Source0:        http://www.freedesktop.org/software/vaapi/releases/libva/%{name}-%{version}.tar.bz2
9 # Source0-md5:  8e3e7096750c14d1f98da807df7c1ba5
10 URL:            http://www.freedesktop.org/wiki/Software/vaapi
11 BuildRequires:  Mesa-libEGL-devel
12 BuildRequires:  Mesa-libGL-devel
13 BuildRequires:  autoconf >= 2.57
14 BuildRequires:  automake
15 BuildRequires:  libdrm-devel >= 2.4
16 BuildRequires:  libtool
17 BuildRequires:  pkgconfig
18 # wayland-client
19 BuildRequires:  wayland-devel >= 1.0.0
20 BuildRequires:  xorg-lib-libX11-devel
21 BuildRequires:  xorg-lib-libXext-devel
22 BuildRequires:  xorg-lib-libXfixes-devel
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
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
38 %package devel
39 Summary:        Header files for libva libraries
40 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek libva
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43
44 %description devel
45 Header files for libva libraries.
46
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe bibliotek libva.
49
50 %package static
51 Summary:        Static libva libraries
52 Summary(pl.UTF-8):      Statyczne biblioteki libva
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 Static libva libraries.
58
59 %description static -l pl.UTF-8
60 Statyczne biblioteki libva.
61
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
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
272 %prep
273 %setup -q
274
275 %build
276 %{__libtoolize}
277 %{__aclocal}
278 %{__autoconf}
279 %{__autoheader}
280 %{__automake}
281 %configure \
282         --disable-silent-rules \
283         --enable-static \
284         --with-drivers-path=%{_libdir}/%{name}/dri
285
286 %{__make}
287
288 %install
289 rm -rf $RPM_BUILD_ROOT
290
291 install -d $RPM_BUILD_ROOT/etc
292
293 %{__make} install \
294         DESTDIR=$RPM_BUILD_ROOT
295
296 echo "#LIBVA_DRIVER_NAME=vdpau" > $RPM_BUILD_ROOT/etc/libva.conf
297
298 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/dri/*.{a,la}
299
300 %clean
301 rm -rf $RPM_BUILD_ROOT
302
303 %post   -p /sbin/ldconfig
304 %postun -p /sbin/ldconfig
305
306 %post   drm -p /sbin/ldconfig
307 %postun drm -p /sbin/ldconfig
308
309 %post   egl -p /sbin/ldconfig
310 %postun egl -p /sbin/ldconfig
311
312 %post   glx -p /sbin/ldconfig
313 %postun glx -p /sbin/ldconfig
314
315 %post   wayland -p /sbin/ldconfig
316 %postun wayland -p /sbin/ldconfig
317
318 %post   x11 -p /sbin/ldconfig
319 %postun x11 -p /sbin/ldconfig
320
321 %files
322 %defattr(644,root,root,755)
323 %doc COPYING NEWS
324 %attr(755,root,root) %{_libdir}/libva.so.*.*.*
325 %attr(755,root,root) %ghost %{_libdir}/libva.so.1
326 %attr(755,root,root) %{_libdir}/libva-tpi.so.*.*.*
327 %attr(755,root,root) %ghost %{_libdir}/libva-tpi.so.1
328 %dir %{_libdir}/%{name}
329 %dir %{_libdir}/%{name}/dri
330 %attr(755,root,root) %{_libdir}/%{name}/dri/dummy_drv_video.so
331 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libva.conf
332
333 %files devel
334 %defattr(644,root,root,755)
335 %attr(755,root,root) %{_libdir}/libva.so
336 %attr(755,root,root) %{_libdir}/libva-tpi.so
337 %{_libdir}/libva.la
338 %{_libdir}/libva-tpi.la
339 %dir %{_includedir}/va
340 %{_includedir}/va/va.h
341 %{_includedir}/va/va_backend.h
342 %{_includedir}/va/va_backend_tpi.h
343 %{_includedir}/va/va_backend_vpp.h
344 %{_includedir}/va/va_compat.h
345 %{_includedir}/va/va_dec_jpeg.h
346 %{_includedir}/va/va_dec_vp8.h
347 %{_includedir}/va/va_drmcommon.h
348 %{_includedir}/va/va_enc_h264.h
349 %{_includedir}/va/va_enc_mpeg2.h
350 %{_includedir}/va/va_enc_vp8.h
351 %{_includedir}/va/va_tpi.h
352 %{_includedir}/va/va_version.h
353 %{_includedir}/va/va_vpp.h
354 %{_pkgconfigdir}/libva.pc
355 %{_pkgconfigdir}/libva-tpi.pc
356
357 %files static
358 %defattr(644,root,root,755)
359 %{_libdir}/libva.a
360 %{_libdir}/libva-tpi.a
361
362 %files drm
363 %defattr(644,root,root,755)
364 %attr(755,root,root) %{_libdir}/libva-drm.so.*.*.*
365 %attr(755,root,root) %ghost %{_libdir}/libva-drm.so.1
366
367 %files drm-devel
368 %defattr(644,root,root,755)
369 %attr(755,root,root) %{_libdir}/libva-drm.so
370 %{_libdir}/libva-drm.la
371 %{_includedir}/va/va_drm.h
372 %{_pkgconfigdir}/libva-drm.pc
373
374 %files drm-static
375 %defattr(644,root,root,755)
376 %{_libdir}/libva-drm.a
377
378 %files egl
379 %defattr(644,root,root,755)
380 %attr(755,root,root) %{_libdir}/libva-egl.so.*.*.*
381 %attr(755,root,root) %ghost %{_libdir}/libva-egl.so.1
382
383 %files egl-devel
384 %defattr(644,root,root,755)
385 %attr(755,root,root) %{_libdir}/libva-egl.so
386 %{_libdir}/libva-egl.la
387 %{_includedir}/va/va_backend_egl.h
388 %{_includedir}/va/va_egl.h
389 %{_pkgconfigdir}/libva-egl.pc
390
391 %files egl-static
392 %defattr(644,root,root,755)
393 %{_libdir}/libva-egl.a
394
395 %files glx
396 %defattr(644,root,root,755)
397 %attr(755,root,root) %{_libdir}/libva-glx.so.*.*.*
398 %attr(755,root,root) %ghost %{_libdir}/libva-glx.so.1
399
400 %files glx-devel
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_libdir}/libva-glx.so
403 %{_libdir}/libva-glx.la
404 %{_includedir}/va/va_backend_glx.h
405 %{_includedir}/va/va_glx.h
406 %{_pkgconfigdir}/libva-glx.pc
407
408 %files glx-static
409 %defattr(644,root,root,755)
410 %{_libdir}/libva-glx.a
411
412 %files wayland
413 %defattr(644,root,root,755)
414 %attr(755,root,root) %{_bindir}/putsurface_wayland
415 %attr(755,root,root) %{_libdir}/libva-wayland.so.*.*.*
416 %attr(755,root,root) %ghost %{_libdir}/libva-wayland.so.1
417
418 %files wayland-devel
419 %defattr(644,root,root,755)
420 %attr(755,root,root) %{_libdir}/libva-wayland.so
421 %{_libdir}/libva-wayland.la
422 %{_includedir}/va/va_backend_wayland.h
423 %{_includedir}/va/va_wayland.h
424 %{_pkgconfigdir}/libva-wayland.pc
425
426 %files wayland-static
427 %defattr(644,root,root,755)
428 %{_libdir}/libva-wayland.a
429
430 %files x11
431 %defattr(644,root,root,755)
432 %attr(755,root,root) %{_bindir}/h264encode
433 %attr(755,root,root) %{_bindir}/putsurface
434 %attr(755,root,root) %{_libdir}/libva-x11.so.*.*.*
435 %attr(755,root,root) %ghost %{_libdir}/libva-x11.so.1
436
437 %files x11-devel
438 %defattr(644,root,root,755)
439 %attr(755,root,root) %{_libdir}/libva-x11.so
440 %{_libdir}/libva-x11.la
441 %{_includedir}/va/va_dri2.h
442 %{_includedir}/va/va_dricommon.h
443 %{_includedir}/va/va_x11.h
444 %{_pkgconfigdir}/libva-x11.pc
445
446 %files x11-static
447 %defattr(644,root,root,755)
448 %{_libdir}/libva-x11.a
449
450 %files tools
451 %defattr(644,root,root,755)
452 %attr(755,root,root) %{_bindir}/avcenc
453 %attr(755,root,root) %{_bindir}/loadjpeg
454 %attr(755,root,root) %{_bindir}/mpeg2vaenc
455 %attr(755,root,root) %{_bindir}/mpeg2vldemo
456 %attr(755,root,root) %{_bindir}/vainfo
This page took 0.159369 seconds and 3 git commands to generate.