]> git.pld-linux.org Git - packages/libva.git/blob - libva.spec
8d4fbdfd8ef0f0c0537a591381ca8f33d9a005cc
[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.5.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:  d6d34cd725a0100a5e476e711838e1b1
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) %{_bindir}/jpegenc
325 %attr(755,root,root) %{_libdir}/libva.so.*.*.*
326 %attr(755,root,root) %ghost %{_libdir}/libva.so.1
327 %attr(755,root,root) %{_libdir}/libva-tpi.so.*.*.*
328 %attr(755,root,root) %ghost %{_libdir}/libva-tpi.so.1
329 %dir %{_libdir}/%{name}
330 %dir %{_libdir}/%{name}/dri
331 %attr(755,root,root) %{_libdir}/%{name}/dri/dummy_drv_video.so
332 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libva.conf
333
334 %files devel
335 %defattr(644,root,root,755)
336 %attr(755,root,root) %{_libdir}/libva.so
337 %attr(755,root,root) %{_libdir}/libva-tpi.so
338 %{_libdir}/libva.la
339 %{_libdir}/libva-tpi.la
340 %dir %{_includedir}/va
341 %{_includedir}/va/va.h
342 %{_includedir}/va/va_backend.h
343 %{_includedir}/va/va_backend_tpi.h
344 %{_includedir}/va/va_backend_vpp.h
345 %{_includedir}/va/va_compat.h
346 %{_includedir}/va/va_dec_hevc.h
347 %{_includedir}/va/va_dec_jpeg.h
348 %{_includedir}/va/va_dec_vp8.h
349 %{_includedir}/va/va_drmcommon.h
350 %{_includedir}/va/va_enc_h264.h
351 %{_includedir}/va/va_enc_jpeg.h
352 %{_includedir}/va/va_enc_mpeg2.h
353 %{_includedir}/va/va_enc_vp8.h
354 %{_includedir}/va/va_tpi.h
355 %{_includedir}/va/va_version.h
356 %{_includedir}/va/va_vpp.h
357 %{_pkgconfigdir}/libva.pc
358 %{_pkgconfigdir}/libva-tpi.pc
359
360 %files static
361 %defattr(644,root,root,755)
362 %{_libdir}/libva.a
363 %{_libdir}/libva-tpi.a
364
365 %files drm
366 %defattr(644,root,root,755)
367 %attr(755,root,root) %{_libdir}/libva-drm.so.*.*.*
368 %attr(755,root,root) %ghost %{_libdir}/libva-drm.so.1
369
370 %files drm-devel
371 %defattr(644,root,root,755)
372 %attr(755,root,root) %{_libdir}/libva-drm.so
373 %{_libdir}/libva-drm.la
374 %{_includedir}/va/va_drm.h
375 %{_pkgconfigdir}/libva-drm.pc
376
377 %files drm-static
378 %defattr(644,root,root,755)
379 %{_libdir}/libva-drm.a
380
381 %files egl
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_libdir}/libva-egl.so.*.*.*
384 %attr(755,root,root) %ghost %{_libdir}/libva-egl.so.1
385
386 %files egl-devel
387 %defattr(644,root,root,755)
388 %attr(755,root,root) %{_libdir}/libva-egl.so
389 %{_libdir}/libva-egl.la
390 %{_includedir}/va/va_backend_egl.h
391 %{_includedir}/va/va_egl.h
392 %{_pkgconfigdir}/libva-egl.pc
393
394 %files egl-static
395 %defattr(644,root,root,755)
396 %{_libdir}/libva-egl.a
397
398 %files glx
399 %defattr(644,root,root,755)
400 %attr(755,root,root) %{_libdir}/libva-glx.so.*.*.*
401 %attr(755,root,root) %ghost %{_libdir}/libva-glx.so.1
402
403 %files glx-devel
404 %defattr(644,root,root,755)
405 %attr(755,root,root) %{_libdir}/libva-glx.so
406 %{_libdir}/libva-glx.la
407 %{_includedir}/va/va_backend_glx.h
408 %{_includedir}/va/va_glx.h
409 %{_pkgconfigdir}/libva-glx.pc
410
411 %files glx-static
412 %defattr(644,root,root,755)
413 %{_libdir}/libva-glx.a
414
415 %files wayland
416 %defattr(644,root,root,755)
417 %attr(755,root,root) %{_bindir}/putsurface_wayland
418 %attr(755,root,root) %{_libdir}/libva-wayland.so.*.*.*
419 %attr(755,root,root) %ghost %{_libdir}/libva-wayland.so.1
420
421 %files wayland-devel
422 %defattr(644,root,root,755)
423 %attr(755,root,root) %{_libdir}/libva-wayland.so
424 %{_libdir}/libva-wayland.la
425 %{_includedir}/va/va_backend_wayland.h
426 %{_includedir}/va/va_wayland.h
427 %{_pkgconfigdir}/libva-wayland.pc
428
429 %files wayland-static
430 %defattr(644,root,root,755)
431 %{_libdir}/libva-wayland.a
432
433 %files x11
434 %defattr(644,root,root,755)
435 %attr(755,root,root) %{_bindir}/h264encode
436 %attr(755,root,root) %{_bindir}/putsurface
437 %attr(755,root,root) %{_libdir}/libva-x11.so.*.*.*
438 %attr(755,root,root) %ghost %{_libdir}/libva-x11.so.1
439
440 %files x11-devel
441 %defattr(644,root,root,755)
442 %attr(755,root,root) %{_libdir}/libva-x11.so
443 %{_libdir}/libva-x11.la
444 %{_includedir}/va/va_dri2.h
445 %{_includedir}/va/va_dricommon.h
446 %{_includedir}/va/va_x11.h
447 %{_pkgconfigdir}/libva-x11.pc
448
449 %files x11-static
450 %defattr(644,root,root,755)
451 %{_libdir}/libva-x11.a
452
453 %files tools
454 %defattr(644,root,root,755)
455 %attr(755,root,root) %{_bindir}/avcenc
456 %attr(755,root,root) %{_bindir}/loadjpeg
457 %attr(755,root,root) %{_bindir}/mpeg2vaenc
458 %attr(755,root,root) %{_bindir}/mpeg2vldemo
459 %attr(755,root,root) %{_bindir}/vainfo
This page took 0.056609 seconds and 2 git commands to generate.