]> git.pld-linux.org Git - packages/libva.git/blob - libva.spec
- updated to 2.21.0
[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:        2.21.0
9 Release:        1
10 License:        MIT
11 Group:          Libraries
12 #Source0Download: https://github.com/intel/libva/tags
13 Source0:        https://github.com/intel/libva/archive/%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5:  2038f5b79612c1767ecd9bc281cd4189
15 URL:            https://github.com/intel/libva
16 BuildRequires:  OpenGL-devel
17 BuildRequires:  OpenGL-GLX-devel
18 BuildRequires:  autoconf >= 2.57
19 BuildRequires:  automake
20 BuildRequires:  libdrm-devel >= 2.4.60
21 BuildRequires:  libtool
22 # xcb xcb-dri3
23 BuildRequires:  libxcb-devel
24 BuildRequires:  pkgconfig
25 BuildRequires:  pkgconfig(gl)
26 # wayland-client >= 1.11, wayland-scanner >= 1.15
27 BuildRequires:  wayland-devel >= 1.15
28 BuildRequires:  xorg-lib-libX11-devel
29 BuildRequires:  xorg-lib-libXext-devel
30 BuildRequires:  xorg-lib-libXfixes-devel
31 Obsoletes:      libva-egl < 2.0
32 Obsoletes:      libva-egl-devel < 2.0
33 Obsoletes:      libva-egl-static < 2.0
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 The main motivation for VAAPI (Video Acceleration API) is to enable
38 hardware accelerated video decode/encode at various entry-points (VLD,
39 IDCT, Motion Compensation etc.) for the prevailing coding standards
40 today (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).
41
42 %description -l pl.UTF-8
43 Głównym celem API akceleracji filmów VAAPI (Video Acceleration API)
44 jest umożliwienie sprzętowej akceleracji dekodowania/kodowania filmów
45 na różnych etapach (VLD, IDCT, kompensacja ruchu itp.) dla obecnie
46 przeważających standardów kodowania (MPEG-2, MPEG-4 ASP/H.263, MPEG-4
47 AVC/H.264, VC-1/VMW3).
48
49 %package devel
50 Summary:        Header files for libva libraries
51 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek libva
52 Group:          Development/Libraries
53 Requires:       %{name} = %{version}-%{release}
54
55 %description devel
56 Header files for libva libraries.
57
58 %description devel -l pl.UTF-8
59 Pliki nagłówkowe bibliotek libva.
60
61 %package static
62 Summary:        Static libva libraries
63 Summary(pl.UTF-8):      Statyczne biblioteki libva
64 Group:          Development/Libraries
65 Requires:       %{name}-devel = %{version}-%{release}
66
67 %description static
68 Static libva libraries.
69
70 %description static -l pl.UTF-8
71 Statyczne biblioteki libva.
72
73 %package drm
74 Summary:        VAAPI - DRM interface library
75 Summary(pl.UTF-8):      VAAPI - biblioteka interfejsu DRM
76 Group:          Libraries
77 Requires:       %{name} = %{version}-%{release}
78 Requires:       libdrm >= 2.4.60
79
80 %description drm
81 VAAPI - DRM interface library.
82
83 %description drm -l pl.UTF-8
84 VAAPI - biblioteka interfejsu DRM.
85
86 %package drm-devel
87 Summary:        Header files for VAAPI DRM interface library
88 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki interfejsu DRM VAAPI
89 Group:          Development/Libraries
90 Requires:       %{name}-devel = %{version}-%{release}
91 Requires:       %{name}-drm = %{version}-%{release}
92 Requires:       libdrm-devel >= 2.4.60
93
94 %description drm-devel
95 Header files for VAAPI DRM interface library.
96
97 %description drm-devel -l pl.UTF-8
98 Pliki nagłówkowe biblioteki interfejsu DRM VAAPI.
99
100 %package drm-static
101 Summary:        VAAPI - DRM interface static library
102 Summary(pl.UTF-8):      VAAPI - statyczna biblioteka interfejsu DRM
103 Group:          Development/Libraries
104 Requires:       %{name}-drm-devel = %{version}-%{release}
105
106 %description drm-static
107 VAAPI - DRM interface static library.
108
109 %description drm-static -l pl.UTF-8
110 VAAPI - statyczna biblioteka interfejsu DRM.
111
112 %package glx
113 Summary:        VAAPI - GLX interface library
114 Summary(pl.UTF-8):      VAAPI - biblioteka interfejsu GLX
115 Group:          Libraries
116 Requires:       %{name}-x11 = %{version}-%{release}
117
118 %description glx
119 VAAPI - GLX interface library.
120
121 %description glx -l pl.UTF-8
122 VAAPI - biblioteka interfejsu GLX.
123
124 %package glx-devel
125 Summary:        Header files for VAAPI GLX interface library
126 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki interfejsu GLX VAAPI
127 Group:          Development/Libraries
128 Requires:       %{name}-glx = %{version}-%{release}
129 Requires:       %{name}-x11-devel = %{version}-%{release}
130 Requires:       OpenGL-GLX-devel
131
132 %description glx-devel
133 Header files for VAAPI GLX interface library.
134
135 %description glx-devel -l pl.UTF-8
136 Pliki nagłówkowe biblioteki interfejsu GLX VAAPI.
137
138 %package glx-static
139 Summary:        VAAPI - GLX interface static library
140 Summary(pl.UTF-8):      VAAPI - statyczna biblioteka interfejsu GLX
141 Group:          Development/Libraries
142 Requires:       %{name}-glx-devel = %{version}-%{release}
143
144 %description glx-static
145 VAAPI - GLX interface static library.
146
147 %description glx-static -l pl.UTF-8
148 VAAPI - statyczna biblioteka interfejsu GLX.
149
150 %package wayland
151 Summary:        VAAPI - Wayland interface library
152 Summary(pl.UTF-8):      VAAPI - biblioteka interfejsu Wayland
153 Group:          Libraries
154 Requires:       %{name} = %{version}-%{release}
155 Requires:       wayland >= 1.11.0
156
157 %description wayland
158 VAAPI - Wayland interface library.
159
160 %description wayland -l pl.UTF-8
161 VAAPI - biblioteka interfejsu Wayland.
162
163 %package wayland-devel
164 Summary:        Header files for VAAPI Wayland interface library
165 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki interfejsu Wayland VAAPI
166 Group:          Development/Libraries
167 Requires:       %{name}-devel = %{version}-%{release}
168 Requires:       %{name}-wayland = %{version}-%{release}
169 Requires:       wayland-devel >= 1.11.0
170
171 %description wayland-devel
172 Header files for VAAPI Wayland interface library.
173
174 %description wayland-devel -l pl.UTF-8
175 Pliki nagłówkowe biblioteki interfejsu Wayland VAAPI.
176
177 %package wayland-static
178 Summary:        VAAPI - Wayland interface static library
179 Summary(pl.UTF-8):      VAAPI - statyczna biblioteka interfejsu Wayland
180 Group:          Development/Libraries
181 Requires:       %{name}-wayland-devel = %{version}-%{release}
182
183 %description wayland-static
184 VAAPI - Wayland interface static library.
185
186 %description wayland-static -l pl.UTF-8
187 VAAPI - statyczna biblioteka interfejsu Wayland.
188
189 %package x11
190 Summary:        VAAPI - X11 interface library
191 Summary(pl.UTF-8):      VAAPI - biblioteka interfejsu X11
192 Group:          Libraries
193 Requires:       %{name} = %{version}-%{release}
194 Requires:       libdrm >= 2.4.60
195
196 %description x11
197 VAAPI - X11 interface library.
198
199 %description x11 -l pl.UTF-8
200 VAAPI - biblioteka interfejsu X11.
201
202 %package x11-devel
203 Summary:        Header files for VAAPI X11 interface library
204 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki interfejsu X11 VAAPI
205 Group:          Development/Libraries
206 Requires:       %{name}-devel = %{version}-%{release}
207 Requires:       %{name}-x11 = %{version}-%{release}
208 Requires:       libdrm-devel >= 2.4.60
209 Requires:       xorg-lib-libX11-devel
210 Requires:       xorg-lib-libXext-devel
211 Requires:       xorg-lib-libXfixes-devel
212
213 %description x11-devel
214 Header files for VAAPI X11 interface library.
215
216 %description x11-devel -l pl.UTF-8
217 Pliki nagłówkowe biblioteki interfejsu X11 VAAPI.
218
219 %package x11-static
220 Summary:        VAAPI - X11 interface static library
221 Summary(pl.UTF-8):      VAAPI - statyczna biblioteka interfejsu X11
222 Group:          Development/Libraries
223 Requires:       %{name}-x11-devel = %{version}-%{release}
224
225 %description x11-static
226 VAAPI - X11 interface static library.
227
228 %description x11-static -l pl.UTF-8
229 VAAPI - statyczna biblioteka interfejsu X11.
230
231 %package tools
232 Summary:        VAAPI test and example programs
233 Summary(pl.UTF-8):      Programy testowe i przykładowe do VAAPI
234 Group:          Applications/Graphics
235 Requires:       %{name}-drm = %{version}-%{release}
236 Requires:       %{name}-wayland = %{version}-%{release}
237 Requires:       %{name}-x11 = %{version}-%{release}
238
239 %description tools
240 VAAPI test and example programs.
241
242 %description tools -l pl.UTF-8
243 Programy testowe i przykładowe do VAAPI.
244
245 %prep
246 %setup -q
247
248 %build
249 %{__libtoolize}
250 %{__aclocal} -I m4
251 %{__autoconf}
252 %{__autoheader}
253 %{__automake}
254 bash \
255 %configure \
256         --disable-silent-rules \
257         %{?with_static_libs:--enable-static} \
258         --with-drivers-path=%{_libdir}/%{name}/dri
259
260 # use bash to handle $'\n' substitutions in va/wayland/Makefile.am
261 %{__make} \
262         SHELL=/bin/bash
263
264 %install
265 rm -rf $RPM_BUILD_ROOT
266 install -d $RPM_BUILD_ROOT/etc
267 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/dri
268
269 %{__make} install \
270         DESTDIR=$RPM_BUILD_ROOT
271
272 echo "#LIBVA_DRIVER_NAME=vdpau" > $RPM_BUILD_ROOT/etc/libva.conf
273
274 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libva*.la
275
276 %clean
277 rm -rf $RPM_BUILD_ROOT
278
279 %post   -p /sbin/ldconfig
280 %postun -p /sbin/ldconfig
281
282 %post   drm -p /sbin/ldconfig
283 %postun drm -p /sbin/ldconfig
284
285 %post   glx -p /sbin/ldconfig
286 %postun glx -p /sbin/ldconfig
287
288 %post   wayland -p /sbin/ldconfig
289 %postun wayland -p /sbin/ldconfig
290
291 %post   x11 -p /sbin/ldconfig
292 %postun x11 -p /sbin/ldconfig
293
294 %files
295 %defattr(644,root,root,755)
296 %doc COPYING NEWS
297 %attr(755,root,root) %{_libdir}/libva.so.*.*.*
298 %attr(755,root,root) %ghost %{_libdir}/libva.so.2
299 %dir %{_libdir}/%{name}
300 %dir %{_libdir}/%{name}/dri
301 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libva.conf
302
303 %files devel
304 %defattr(644,root,root,755)
305 %attr(755,root,root) %{_libdir}/libva.so
306 %dir %{_includedir}/va
307 %{_includedir}/va/va.h
308 %{_includedir}/va/va_backend.h
309 %{_includedir}/va/va_backend_prot.h
310 %{_includedir}/va/va_backend_vpp.h
311 %{_includedir}/va/va_compat.h
312 %{_includedir}/va/va_dec_av1.h
313 %{_includedir}/va/va_dec_hevc.h
314 %{_includedir}/va/va_dec_jpeg.h
315 %{_includedir}/va/va_dec_vp8.h
316 %{_includedir}/va/va_dec_vp9.h
317 %{_includedir}/va/va_drmcommon.h
318 %{_includedir}/va/va_egl.h
319 %{_includedir}/va/va_enc_av1.h
320 %{_includedir}/va/va_enc_hevc.h
321 %{_includedir}/va/va_enc_h264.h
322 %{_includedir}/va/va_enc_jpeg.h
323 %{_includedir}/va/va_enc_mpeg2.h
324 %{_includedir}/va/va_enc_vp8.h
325 %{_includedir}/va/va_enc_vp9.h
326 %{_includedir}/va/va_fei*.h
327 %{_includedir}/va/va_prot.h
328 %{_includedir}/va/va_str.h
329 %{_includedir}/va/va_tpi.h
330 %{_includedir}/va/va_version.h
331 %{_includedir}/va/va_vpp.h
332 %{_pkgconfigdir}/libva.pc
333
334 %if %{with static_libs}
335 %files static
336 %defattr(644,root,root,755)
337 %{_libdir}/libva.a
338 %endif
339
340 %files drm
341 %defattr(644,root,root,755)
342 %attr(755,root,root) %{_libdir}/libva-drm.so.*.*.*
343 %attr(755,root,root) %ghost %{_libdir}/libva-drm.so.2
344
345 %files drm-devel
346 %defattr(644,root,root,755)
347 %attr(755,root,root) %{_libdir}/libva-drm.so
348 %{_includedir}/va/va_drm.h
349 %{_pkgconfigdir}/libva-drm.pc
350
351 %if %{with static_libs}
352 %files drm-static
353 %defattr(644,root,root,755)
354 %{_libdir}/libva-drm.a
355 %endif
356
357 %files glx
358 %defattr(644,root,root,755)
359 %attr(755,root,root) %{_libdir}/libva-glx.so.*.*.*
360 %attr(755,root,root) %ghost %{_libdir}/libva-glx.so.2
361
362 %files glx-devel
363 %defattr(644,root,root,755)
364 %attr(755,root,root) %{_libdir}/libva-glx.so
365 %{_includedir}/va/va_backend_glx.h
366 %{_includedir}/va/va_glx.h
367 %{_pkgconfigdir}/libva-glx.pc
368
369 %if %{with static_libs}
370 %files glx-static
371 %defattr(644,root,root,755)
372 %{_libdir}/libva-glx.a
373 %endif
374
375 %files wayland
376 %defattr(644,root,root,755)
377 %attr(755,root,root) %{_libdir}/libva-wayland.so.*.*.*
378 %attr(755,root,root) %ghost %{_libdir}/libva-wayland.so.2
379
380 %files wayland-devel
381 %defattr(644,root,root,755)
382 %attr(755,root,root) %{_libdir}/libva-wayland.so
383 %{_includedir}/va/va_backend_wayland.h
384 %{_includedir}/va/va_wayland.h
385 %{_pkgconfigdir}/libva-wayland.pc
386
387 %if %{with static_libs}
388 %files wayland-static
389 %defattr(644,root,root,755)
390 %{_libdir}/libva-wayland.a
391 %endif
392
393 %files x11
394 %defattr(644,root,root,755)
395 %attr(755,root,root) %{_libdir}/libva-x11.so.*.*.*
396 %attr(755,root,root) %ghost %{_libdir}/libva-x11.so.2
397
398 %files x11-devel
399 %defattr(644,root,root,755)
400 %attr(755,root,root) %{_libdir}/libva-x11.so
401 %{_includedir}/va/va_dri2.h
402 %{_includedir}/va/va_dricommon.h
403 %{_includedir}/va/va_x11.h
404 %{_pkgconfigdir}/libva-x11.pc
405
406 %if %{with static_libs}
407 %files x11-static
408 %defattr(644,root,root,755)
409 %{_libdir}/libva-x11.a
410 %endif
This page took 0.191948 seconds and 4 git commands to generate.