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