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