]> git.pld-linux.org Git - packages/libva.git/blob - libva.spec
c6bbbd36d45e1bd982558f44830db293df005591
[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.3.0
9 Release:        1
10 License:        MIT
11 Group:          Libraries
12 Source0:        https://github.com/intel/libva/releases/download/%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5:  6a202c725db717a04e855d7495724059
14 URL:            https://github.com/intel/libva
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 glx
106 Summary:        VAAPI - GLX interface library
107 Summary(pl.UTF-8):      VAAPI - biblioteka interfejsu GLX
108 Group:          Libraries
109 Requires:       %{name}-x11 = %{version}-%{release}
110
111 %description glx
112 VAAPI - GLX interface library.
113
114 %description glx -l pl.UTF-8
115 VAAPI - biblioteka interfejsu GLX.
116
117 %package glx-devel
118 Summary:        Header files for VAAPI GLX interface library
119 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki interfejsu GLX VAAPI
120 Group:          Development/Libraries
121 Requires:       %{name}-glx = %{version}-%{release}
122 Requires:       %{name}-x11-devel = %{version}-%{release}
123 Requires:       OpenGL-GLX-devel
124
125 %description glx-devel
126 Header files for VAAPI GLX interface library.
127
128 %description glx-devel -l pl.UTF-8
129 Pliki nagłówkowe biblioteki interfejsu GLX VAAPI.
130
131 %package glx-static
132 Summary:        VAAPI - GLX interface static library
133 Summary(pl.UTF-8):      VAAPI - statyczna biblioteka interfejsu GLX
134 Group:          Development/Libraries
135 Requires:       %{name}-glx-devel = %{version}-%{release}
136
137 %description glx-static
138 VAAPI - GLX interface static library.
139
140 %description glx-static -l pl.UTF-8
141 VAAPI - statyczna biblioteka interfejsu GLX.
142
143 %package wayland
144 Summary:        VAAPI - Wayland interface library
145 Summary(pl.UTF-8):      VAAPI - biblioteka interfejsu Wayland
146 Group:          Libraries
147 Requires:       %{name} = %{version}-%{release}
148 Requires:       wayland >= 1.0.0
149
150 %description wayland
151 VAAPI - Wayland interface library.
152
153 %description wayland -l pl.UTF-8
154 VAAPI - biblioteka interfejsu Wayland.
155
156 %package wayland-devel
157 Summary:        Header files for VAAPI Wayland interface library
158 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki interfejsu Wayland VAAPI
159 Group:          Development/Libraries
160 Requires:       %{name}-devel = %{version}-%{release}
161 Requires:       %{name}-wayland = %{version}-%{release}
162 Requires:       wayland-devel >= 1.0.0
163
164 %description wayland-devel
165 Header files for VAAPI Wayland interface library.
166
167 %description wayland-devel -l pl.UTF-8
168 Pliki nagłówkowe biblioteki interfejsu Wayland VAAPI.
169
170 %package wayland-static
171 Summary:        VAAPI - Wayland interface static library
172 Summary(pl.UTF-8):      VAAPI - statyczna biblioteka interfejsu Wayland
173 Group:          Development/Libraries
174 Requires:       %{name}-wayland-devel = %{version}-%{release}
175
176 %description wayland-static
177 VAAPI - Wayland interface static library.
178
179 %description wayland-static -l pl.UTF-8
180 VAAPI - statyczna biblioteka interfejsu Wayland.
181
182 %package x11
183 Summary:        VAAPI - X11 interface library
184 Summary(pl.UTF-8):      VAAPI - biblioteka interfejsu X11
185 Group:          Libraries
186 Requires:       %{name} = %{version}-%{release}
187 Requires:       libdrm >= 2.4
188
189 %description x11
190 VAAPI - X11 interface library.
191
192 %description x11 -l pl.UTF-8
193 VAAPI - biblioteka interfejsu X11.
194
195 %package x11-devel
196 Summary:        Header files for VAAPI X11 interface library
197 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki interfejsu X11 VAAPI
198 Group:          Development/Libraries
199 Requires:       %{name}-devel = %{version}-%{release}
200 Requires:       %{name}-x11 = %{version}-%{release}
201 Requires:       libdrm-devel >= 2.4
202 Requires:       xorg-lib-libX11-devel
203 Requires:       xorg-lib-libXext-devel
204 Requires:       xorg-lib-libXfixes-devel
205
206 %description x11-devel
207 Header files for VAAPI X11 interface library.
208
209 %description x11-devel -l pl.UTF-8
210 Pliki nagłówkowe biblioteki interfejsu X11 VAAPI.
211
212 %package x11-static
213 Summary:        VAAPI - X11 interface static library
214 Summary(pl.UTF-8):      VAAPI - statyczna biblioteka interfejsu X11
215 Group:          Development/Libraries
216 Requires:       %{name}-x11-devel = %{version}-%{release}
217
218 %description x11-static
219 VAAPI - X11 interface static library.
220
221 %description x11-static -l pl.UTF-8
222 VAAPI - statyczna biblioteka interfejsu X11.
223
224 %package tools
225 Summary:        VAAPI test and example programs
226 Summary(pl.UTF-8):      Programy testowe i przykładowe do VAAPI
227 Group:          Applications/Graphics
228 Requires:       %{name}-drm = %{version}-%{release}
229 Requires:       %{name}-wayland = %{version}-%{release}
230 Requires:       %{name}-x11 = %{version}-%{release}
231
232 %description tools
233 VAAPI test and example programs.
234
235 %description tools -l pl.UTF-8
236 Programy testowe i przykładowe do VAAPI.
237
238 %prep
239 %setup -q
240
241 %build
242 %{__libtoolize}
243 %{__aclocal}
244 %{__autoconf}
245 %{__autoheader}
246 %{__automake}
247 %configure \
248         --disable-silent-rules \
249         %{?with_static_libs:--enable-static} \
250         --with-drivers-path=%{_libdir}/%{name}/dri
251
252 %{__make}
253
254 %install
255 rm -rf $RPM_BUILD_ROOT
256
257 install -d $RPM_BUILD_ROOT/etc
258
259 %{__make} install \
260         DESTDIR=$RPM_BUILD_ROOT
261
262 echo "#LIBVA_DRIVER_NAME=vdpau" > $RPM_BUILD_ROOT/etc/libva.conf
263
264 #%{__rm} $RPM_BUILD_ROOT%{_libdir}/{%{name}/dri/*.{a,la},libva*.la}
265
266 %clean
267 rm -rf $RPM_BUILD_ROOT
268
269 %post   -p /sbin/ldconfig
270 %postun -p /sbin/ldconfig
271
272 %post   drm -p /sbin/ldconfig
273 %postun drm -p /sbin/ldconfig
274
275 %post   glx -p /sbin/ldconfig
276 %postun glx -p /sbin/ldconfig
277
278 %post   wayland -p /sbin/ldconfig
279 %postun wayland -p /sbin/ldconfig
280
281 %post   x11 -p /sbin/ldconfig
282 %postun x11 -p /sbin/ldconfig
283
284 %files
285 %defattr(644,root,root,755)
286 %doc COPYING NEWS
287 %attr(755,root,root) %{_libdir}/libva.so.*.*.*
288 %attr(755,root,root) %ghost %{_libdir}/libva.so.2
289 #%dir %{_libdir}/%{name}
290 #%dir %{_libdir}/%{name}/dri
291 #%attr(755,root,root) %{_libdir}/%{name}/dri/dummy_drv_video.so
292 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libva.conf
293
294 %files devel
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_libdir}/libva.so
297 %dir %{_includedir}/va
298 %{_includedir}/va/va.h
299 %{_includedir}/va/va_backend.h
300 #%{_includedir}/va/va_backend_tpi.h
301 %{_includedir}/va/va_backend_vpp.h
302 %{_includedir}/va/va_compat.h
303 %{_includedir}/va/va_dec_hevc.h
304 %{_includedir}/va/va_dec_jpeg.h
305 %{_includedir}/va/va_dec_vp8.h
306 %{_includedir}/va/va_dec_vp9.h
307 %{_includedir}/va/va_drmcommon.h
308 %{_includedir}/va/va_egl.h
309 %{_includedir}/va/va_enc_hevc.h
310 %{_includedir}/va/va_enc_h264.h
311 %{_includedir}/va/va_enc_jpeg.h
312 %{_includedir}/va/va_enc_mpeg2.h
313 %{_includedir}/va/va_enc_vp8.h
314 %{_includedir}/va/va_enc_vp9.h
315 %{_includedir}/va/va_fei*.h
316 %{_includedir}/va/va_str.h
317 %{_includedir}/va/va_tpi.h
318 %{_includedir}/va/va_version.h
319 %{_includedir}/va/va_vpp.h
320 %{_pkgconfigdir}/libva.pc
321
322 %if %{with static_libs}
323 %files static
324 %defattr(644,root,root,755)
325 %{_libdir}/libva.a
326 %endif
327
328 %files drm
329 %defattr(644,root,root,755)
330 %attr(755,root,root) %{_libdir}/libva-drm.so.*.*.*
331 %attr(755,root,root) %ghost %{_libdir}/libva-drm.so.2
332
333 %files drm-devel
334 %defattr(644,root,root,755)
335 %attr(755,root,root) %{_libdir}/libva-drm.so
336 %{_includedir}/va/va_drm.h
337 %{_pkgconfigdir}/libva-drm.pc
338
339 %if %{with static_libs}
340 %files drm-static
341 %defattr(644,root,root,755)
342 %{_libdir}/libva-drm.a
343 %endif
344
345 %files glx
346 %defattr(644,root,root,755)
347 %attr(755,root,root) %{_libdir}/libva-glx.so.*.*.*
348 %attr(755,root,root) %ghost %{_libdir}/libva-glx.so.2
349
350 %files glx-devel
351 %defattr(644,root,root,755)
352 %attr(755,root,root) %{_libdir}/libva-glx.so
353 %{_includedir}/va/va_backend_glx.h
354 %{_includedir}/va/va_glx.h
355 %{_pkgconfigdir}/libva-glx.pc
356
357 %if %{with static_libs}
358 %files glx-static
359 %defattr(644,root,root,755)
360 %{_libdir}/libva-glx.a
361 %endif
362
363 %files wayland
364 %defattr(644,root,root,755)
365 %attr(755,root,root) %{_libdir}/libva-wayland.so.*.*.*
366 %attr(755,root,root) %ghost %{_libdir}/libva-wayland.so.2
367
368 %files wayland-devel
369 %defattr(644,root,root,755)
370 %attr(755,root,root) %{_libdir}/libva-wayland.so
371 %{_includedir}/va/va_backend_wayland.h
372 %{_includedir}/va/va_wayland.h
373 %{_pkgconfigdir}/libva-wayland.pc
374
375 %if %{with static_libs}
376 %files wayland-static
377 %defattr(644,root,root,755)
378 %{_libdir}/libva-wayland.a
379 %endif
380
381 %files x11
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_libdir}/libva-x11.so.*.*.*
384 %attr(755,root,root) %ghost %{_libdir}/libva-x11.so.2
385
386 %files x11-devel
387 %defattr(644,root,root,755)
388 %attr(755,root,root) %{_libdir}/libva-x11.so
389 %{_includedir}/va/va_dri2.h
390 %{_includedir}/va/va_dricommon.h
391 %{_includedir}/va/va_x11.h
392 %{_pkgconfigdir}/libva-x11.pc
393
394 %if %{with static_libs}
395 %files x11-static
396 %defattr(644,root,root,755)
397 %{_libdir}/libva-x11.a
398 %endif
This page took 0.143954 seconds and 2 git commands to generate.