]> git.pld-linux.org Git - packages/libva.git/blob - libva.spec
- updated to 1.8.1; all binaries have been moved to separate libva-utils package
[packages/libva.git] / libva.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static libraries
4
5 Summary:        VAAPI (Video Acceleration API)
6 Summary(pl.UTF-8):      VAAPI (Video Acceleration API) - API akceleracji filmów
7 Name:           libva
8 Version:        1.8.1
9 Release:        1
10 License:        MIT
11 Group:          Libraries
12 Source0:        https://www.freedesktop.org/software/vaapi/releases/libva/%{name}-%{version}.tar.bz2
13 # Source0-md5:  a881c7f9c67bfd0f8bffac3bb535aaf2
14 URL:            https://www.freedesktop.org/wiki/Software/vaapi
15 BuildRequires:  Mesa-libEGL-devel
16 BuildRequires:  Mesa-libGL-devel
17 BuildRequires:  autoconf >= 2.57
18 BuildRequires:  automake
19 BuildRequires:  libdrm-devel >= 2.4
20 BuildRequires:  libtool
21 BuildRequires:  pkgconfig
22 # wayland-client
23 BuildRequires:  wayland-devel >= 1.0.0
24 BuildRequires:  xorg-lib-libX11-devel
25 BuildRequires:  xorg-lib-libXext-devel
26 BuildRequires:  xorg-lib-libXfixes-devel
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
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
42 %package devel
43 Summary:        Header files for libva libraries
44 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek libva
45 Group:          Development/Libraries
46 Requires:       %{name} = %{version}-%{release}
47
48 %description devel
49 Header files for libva libraries.
50
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe bibliotek libva.
53
54 %package static
55 Summary:        Static libva libraries
56 Summary(pl.UTF-8):      Statyczne biblioteki libva
57 Group:          Development/Libraries
58 Requires:       %{name}-devel = %{version}-%{release}
59
60 %description static
61 Static libva libraries.
62
63 %description static -l pl.UTF-8
64 Statyczne biblioteki libva.
65
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
105 %package egl
106 Summary:        VAAPI - EGL interface library
107 Summary(pl.UTF-8):      VAAPI - biblioteka interfejsu EGL
108 Group:          Libraries
109 Requires:       %{name}-x11 = %{version}-%{release}
110
111 %description egl
112 VAAPI - EGL interface library.
113
114 %description egl -l pl.UTF-8
115 VAAPI - biblioteka interfejsu EGL.
116
117 %package egl-devel
118 Summary:        Header files for VAAPI EGL interface library
119 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki interfejsu EGL VAAPI
120 Group:          Development/Libraries
121 Requires:       %{name}-egl = %{version}-%{release}
122 Requires:       %{name}-x11-devel = %{version}-%{release}
123 Requires:       EGL-devel
124
125 %description egl-devel
126 Header files for VAAPI EGL interface library.
127
128 %description egl-devel -l pl.UTF-8
129 Pliki nagłówkowe biblioteki interfejsu EGL VAAPI.
130
131 %package egl-static
132 Summary:        VAAPI - EGL interface static library
133 Summary(pl.UTF-8):      VAAPI - statyczna biblioteka interfejsu EGL
134 Group:          Development/Libraries
135 Requires:       %{name}-egl-devel = %{version}-%{release}
136
137 %description egl-static
138 VAAPI - EGL interface static library.
139
140 %description egl-static -l pl.UTF-8
141 VAAPI - statyczna biblioteka interfejsu EGL.
142
143 %package glx
144 Summary:        VAAPI - GLX interface library
145 Summary(pl.UTF-8):      VAAPI - biblioteka interfejsu GLX
146 Group:          Libraries
147 Requires:       %{name}-x11 = %{version}-%{release}
148
149 %description glx
150 VAAPI - GLX interface library.
151
152 %description glx -l pl.UTF-8
153 VAAPI - biblioteka interfejsu GLX.
154
155 %package glx-devel
156 Summary:        Header files for VAAPI GLX interface library
157 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki interfejsu GLX VAAPI
158 Group:          Development/Libraries
159 Requires:       %{name}-glx = %{version}-%{release}
160 Requires:       %{name}-x11-devel = %{version}-%{release}
161 Requires:       OpenGL-GLX-devel
162
163 %description glx-devel
164 Header files for VAAPI GLX interface library.
165
166 %description glx-devel -l pl.UTF-8
167 Pliki nagłówkowe biblioteki interfejsu GLX VAAPI.
168
169 %package glx-static
170 Summary:        VAAPI - GLX interface static library
171 Summary(pl.UTF-8):      VAAPI - statyczna biblioteka interfejsu GLX
172 Group:          Development/Libraries
173 Requires:       %{name}-glx-devel = %{version}-%{release}
174
175 %description glx-static
176 VAAPI - GLX interface static library.
177
178 %description glx-static -l pl.UTF-8
179 VAAPI - statyczna biblioteka interfejsu GLX.
180
181 %package wayland
182 Summary:        VAAPI - Wayland interface library
183 Summary(pl.UTF-8):      VAAPI - biblioteka interfejsu Wayland
184 Group:          Libraries
185 Requires:       %{name} = %{version}-%{release}
186 Requires:       wayland >= 1.0.0
187
188 %description wayland
189 VAAPI - Wayland interface library.
190
191 %description wayland -l pl.UTF-8
192 VAAPI - biblioteka interfejsu Wayland.
193
194 %package wayland-devel
195 Summary:        Header files for VAAPI Wayland interface library
196 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki interfejsu Wayland VAAPI
197 Group:          Development/Libraries
198 Requires:       %{name}-devel = %{version}-%{release}
199 Requires:       %{name}-wayland = %{version}-%{release}
200 Requires:       wayland-devel >= 1.0.0
201
202 %description wayland-devel
203 Header files for VAAPI Wayland interface library.
204
205 %description wayland-devel -l pl.UTF-8
206 Pliki nagłówkowe biblioteki interfejsu Wayland VAAPI.
207
208 %package wayland-static
209 Summary:        VAAPI - Wayland interface static library
210 Summary(pl.UTF-8):      VAAPI - statyczna biblioteka interfejsu Wayland
211 Group:          Development/Libraries
212 Requires:       %{name}-wayland-devel = %{version}-%{release}
213
214 %description wayland-static
215 VAAPI - Wayland interface static library.
216
217 %description wayland-static -l pl.UTF-8
218 VAAPI - statyczna biblioteka interfejsu Wayland.
219
220 %package x11
221 Summary:        VAAPI - X11 interface library
222 Summary(pl.UTF-8):      VAAPI - biblioteka interfejsu X11
223 Group:          Libraries
224 Requires:       %{name} = %{version}-%{release}
225 Requires:       libdrm >= 2.4
226
227 %description x11
228 VAAPI - X11 interface library.
229
230 %description x11 -l pl.UTF-8
231 VAAPI - biblioteka interfejsu X11.
232
233 %package x11-devel
234 Summary:        Header files for VAAPI X11 interface library
235 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki interfejsu X11 VAAPI
236 Group:          Development/Libraries
237 Requires:       %{name}-devel = %{version}-%{release}
238 Requires:       %{name}-x11 = %{version}-%{release}
239 Requires:       libdrm-devel >= 2.4
240 Requires:       xorg-lib-libX11-devel
241 Requires:       xorg-lib-libXext-devel
242 Requires:       xorg-lib-libXfixes-devel
243
244 %description x11-devel
245 Header files for VAAPI X11 interface library.
246
247 %description x11-devel -l pl.UTF-8
248 Pliki nagłówkowe biblioteki interfejsu X11 VAAPI.
249
250 %package x11-static
251 Summary:        VAAPI - X11 interface static library
252 Summary(pl.UTF-8):      VAAPI - statyczna biblioteka interfejsu X11
253 Group:          Development/Libraries
254 Requires:       %{name}-x11-devel = %{version}-%{release}
255
256 %description x11-static
257 VAAPI - X11 interface static library.
258
259 %description x11-static -l pl.UTF-8
260 VAAPI - statyczna biblioteka interfejsu X11.
261
262 %package tools
263 Summary:        VAAPI test and example programs
264 Summary(pl.UTF-8):      Programy testowe i przykładowe do VAAPI
265 Group:          Applications/Graphics
266 Requires:       %{name}-drm = %{version}-%{release}
267 Requires:       %{name}-wayland = %{version}-%{release}
268 Requires:       %{name}-x11 = %{version}-%{release}
269
270 %description tools
271 VAAPI test and example programs.
272
273 %description tools -l pl.UTF-8
274 Programy testowe i przykładowe do VAAPI.
275
276 %prep
277 %setup -q
278
279 %build
280 %{__libtoolize}
281 %{__aclocal}
282 %{__autoconf}
283 %{__autoheader}
284 %{__automake}
285 %configure \
286         --disable-silent-rules \
287         %{?with_static_libs:--enable-static} \
288         --with-drivers-path=%{_libdir}/%{name}/dri
289
290 %{__make}
291
292 %install
293 rm -rf $RPM_BUILD_ROOT
294
295 install -d $RPM_BUILD_ROOT/etc
296
297 %{__make} install \
298         DESTDIR=$RPM_BUILD_ROOT
299
300 echo "#LIBVA_DRIVER_NAME=vdpau" > $RPM_BUILD_ROOT/etc/libva.conf
301
302 %{__rm} $RPM_BUILD_ROOT%{_libdir}/{%{name}/dri/*.{a,la},libva*.la}
303
304 %clean
305 rm -rf $RPM_BUILD_ROOT
306
307 %post   -p /sbin/ldconfig
308 %postun -p /sbin/ldconfig
309
310 %post   drm -p /sbin/ldconfig
311 %postun drm -p /sbin/ldconfig
312
313 %post   egl -p /sbin/ldconfig
314 %postun egl -p /sbin/ldconfig
315
316 %post   glx -p /sbin/ldconfig
317 %postun glx -p /sbin/ldconfig
318
319 %post   wayland -p /sbin/ldconfig
320 %postun wayland -p /sbin/ldconfig
321
322 %post   x11 -p /sbin/ldconfig
323 %postun x11 -p /sbin/ldconfig
324
325 %files
326 %defattr(644,root,root,755)
327 %doc COPYING NEWS
328 %attr(755,root,root) %{_libdir}/libva.so.*.*.*
329 %attr(755,root,root) %ghost %{_libdir}/libva.so.1
330 %attr(755,root,root) %{_libdir}/libva-tpi.so.*.*.*
331 %attr(755,root,root) %ghost %{_libdir}/libva-tpi.so.1
332 %dir %{_libdir}/%{name}
333 %dir %{_libdir}/%{name}/dri
334 %attr(755,root,root) %{_libdir}/%{name}/dri/dummy_drv_video.so
335 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libva.conf
336
337 %files devel
338 %defattr(644,root,root,755)
339 %attr(755,root,root) %{_libdir}/libva.so
340 %attr(755,root,root) %{_libdir}/libva-tpi.so
341 %dir %{_includedir}/va
342 %{_includedir}/va/va.h
343 %{_includedir}/va/va_backend.h
344 %{_includedir}/va/va_backend_tpi.h
345 %{_includedir}/va/va_backend_vpp.h
346 %{_includedir}/va/va_compat.h
347 %{_includedir}/va/va_dec_hevc.h
348 %{_includedir}/va/va_dec_jpeg.h
349 %{_includedir}/va/va_dec_vp8.h
350 %{_includedir}/va/va_dec_vp9.h
351 %{_includedir}/va/va_drmcommon.h
352 %{_includedir}/va/va_enc_hevc.h
353 %{_includedir}/va/va_enc_h264.h
354 %{_includedir}/va/va_enc_jpeg.h
355 %{_includedir}/va/va_enc_mpeg2.h
356 %{_includedir}/va/va_enc_vp8.h
357 %{_includedir}/va/va_enc_vp9.h
358 %{_includedir}/va/va_tpi.h
359 %{_includedir}/va/va_version.h
360 %{_includedir}/va/va_vpp.h
361 %{_pkgconfigdir}/libva.pc
362 %{_pkgconfigdir}/libva-tpi.pc
363
364 %if %{with static_libs}
365 %files static
366 %defattr(644,root,root,755)
367 %{_libdir}/libva.a
368 %{_libdir}/libva-tpi.a
369 %endif
370
371 %files drm
372 %defattr(644,root,root,755)
373 %attr(755,root,root) %{_libdir}/libva-drm.so.*.*.*
374 %attr(755,root,root) %ghost %{_libdir}/libva-drm.so.1
375
376 %files drm-devel
377 %defattr(644,root,root,755)
378 %attr(755,root,root) %{_libdir}/libva-drm.so
379 %{_includedir}/va/va_drm.h
380 %{_pkgconfigdir}/libva-drm.pc
381
382 %if %{with static_libs}
383 %files drm-static
384 %defattr(644,root,root,755)
385 %{_libdir}/libva-drm.a
386 %endif
387
388 %files egl
389 %defattr(644,root,root,755)
390 %attr(755,root,root) %{_libdir}/libva-egl.so.*.*.*
391 %attr(755,root,root) %ghost %{_libdir}/libva-egl.so.1
392
393 %files egl-devel
394 %defattr(644,root,root,755)
395 %attr(755,root,root) %{_libdir}/libva-egl.so
396 %{_includedir}/va/va_backend_egl.h
397 %{_includedir}/va/va_egl.h
398 %{_pkgconfigdir}/libva-egl.pc
399
400 %if %{with static_libs}
401 %files egl-static
402 %defattr(644,root,root,755)
403 %{_libdir}/libva-egl.a
404 %endif
405
406 %files glx
407 %defattr(644,root,root,755)
408 %attr(755,root,root) %{_libdir}/libva-glx.so.*.*.*
409 %attr(755,root,root) %ghost %{_libdir}/libva-glx.so.1
410
411 %files glx-devel
412 %defattr(644,root,root,755)
413 %attr(755,root,root) %{_libdir}/libva-glx.so
414 %{_includedir}/va/va_backend_glx.h
415 %{_includedir}/va/va_glx.h
416 %{_pkgconfigdir}/libva-glx.pc
417
418 %if %{with static_libs}
419 %files glx-static
420 %defattr(644,root,root,755)
421 %{_libdir}/libva-glx.a
422 %endif
423
424 %files wayland
425 %defattr(644,root,root,755)
426 %attr(755,root,root) %{_libdir}/libva-wayland.so.*.*.*
427 %attr(755,root,root) %ghost %{_libdir}/libva-wayland.so.1
428
429 %files wayland-devel
430 %defattr(644,root,root,755)
431 %attr(755,root,root) %{_libdir}/libva-wayland.so
432 %{_includedir}/va/va_backend_wayland.h
433 %{_includedir}/va/va_wayland.h
434 %{_pkgconfigdir}/libva-wayland.pc
435
436 %if %{with static_libs}
437 %files wayland-static
438 %defattr(644,root,root,755)
439 %{_libdir}/libva-wayland.a
440 %endif
441
442 %files x11
443 %defattr(644,root,root,755)
444 %attr(755,root,root) %{_libdir}/libva-x11.so.*.*.*
445 %attr(755,root,root) %ghost %{_libdir}/libva-x11.so.1
446
447 %files x11-devel
448 %defattr(644,root,root,755)
449 %attr(755,root,root) %{_libdir}/libva-x11.so
450 %{_includedir}/va/va_dri2.h
451 %{_includedir}/va/va_dricommon.h
452 %{_includedir}/va/va_x11.h
453 %{_pkgconfigdir}/libva-x11.pc
454
455 %if %{with static_libs}
456 %files x11-static
457 %defattr(644,root,root,755)
458 %{_libdir}/libva-x11.a
459 %endif
This page took 0.094464 seconds and 3 git commands to generate.