]> git.pld-linux.org Git - packages/libva.git/blob - libva.spec
- added dirs for dependend packages
[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:        2
10 License:        MIT
11 Group:          Libraries
12 Source0:        https://github.com/intel/libva/releases/download/%{version}/%{name}-%{version}.tar.bz2
13 # Source0-md5:  2555c46075ab2f6128f39902ba1c6183
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 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/dri
259
260 %{__make} install \
261         DESTDIR=$RPM_BUILD_ROOT
262
263 echo "#LIBVA_DRIVER_NAME=vdpau" > $RPM_BUILD_ROOT/etc/libva.conf
264
265 #%{__rm} $RPM_BUILD_ROOT%{_libdir}/{%{name}/dri/*.{a,la},libva*.la}
266
267 %clean
268 rm -rf $RPM_BUILD_ROOT
269
270 %post   -p /sbin/ldconfig
271 %postun -p /sbin/ldconfig
272
273 %post   drm -p /sbin/ldconfig
274 %postun drm -p /sbin/ldconfig
275
276 %post   glx -p /sbin/ldconfig
277 %postun glx -p /sbin/ldconfig
278
279 %post   wayland -p /sbin/ldconfig
280 %postun wayland -p /sbin/ldconfig
281
282 %post   x11 -p /sbin/ldconfig
283 %postun x11 -p /sbin/ldconfig
284
285 %files
286 %defattr(644,root,root,755)
287 %doc COPYING NEWS
288 %attr(755,root,root) %{_libdir}/libva.so.*.*.*
289 %attr(755,root,root) %ghost %{_libdir}/libva.so.2
290 %dir %{_libdir}/%{name}
291 %dir %{_libdir}/%{name}/dri
292 #%attr(755,root,root) %{_libdir}/%{name}/dri/dummy_drv_video.so
293 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libva.conf
294
295 %files devel
296 %defattr(644,root,root,755)
297 %attr(755,root,root) %{_libdir}/libva.so
298 %dir %{_includedir}/va
299 %{_includedir}/va/va.h
300 %{_includedir}/va/va_backend.h
301 #%{_includedir}/va/va_backend_tpi.h
302 %{_includedir}/va/va_backend_vpp.h
303 %{_includedir}/va/va_compat.h
304 %{_includedir}/va/va_dec_hevc.h
305 %{_includedir}/va/va_dec_jpeg.h
306 %{_includedir}/va/va_dec_vp8.h
307 %{_includedir}/va/va_dec_vp9.h
308 %{_includedir}/va/va_drmcommon.h
309 %{_includedir}/va/va_egl.h
310 %{_includedir}/va/va_enc_hevc.h
311 %{_includedir}/va/va_enc_h264.h
312 %{_includedir}/va/va_enc_jpeg.h
313 %{_includedir}/va/va_enc_mpeg2.h
314 %{_includedir}/va/va_enc_vp8.h
315 %{_includedir}/va/va_enc_vp9.h
316 %{_includedir}/va/va_fei*.h
317 %{_includedir}/va/va_str.h
318 %{_includedir}/va/va_tpi.h
319 %{_includedir}/va/va_version.h
320 %{_includedir}/va/va_vpp.h
321 %{_pkgconfigdir}/libva.pc
322
323 %if %{with static_libs}
324 %files static
325 %defattr(644,root,root,755)
326 %{_libdir}/libva.a
327 %endif
328
329 %files drm
330 %defattr(644,root,root,755)
331 %attr(755,root,root) %{_libdir}/libva-drm.so.*.*.*
332 %attr(755,root,root) %ghost %{_libdir}/libva-drm.so.2
333
334 %files drm-devel
335 %defattr(644,root,root,755)
336 %attr(755,root,root) %{_libdir}/libva-drm.so
337 %{_includedir}/va/va_drm.h
338 %{_pkgconfigdir}/libva-drm.pc
339
340 %if %{with static_libs}
341 %files drm-static
342 %defattr(644,root,root,755)
343 %{_libdir}/libva-drm.a
344 %endif
345
346 %files glx
347 %defattr(644,root,root,755)
348 %attr(755,root,root) %{_libdir}/libva-glx.so.*.*.*
349 %attr(755,root,root) %ghost %{_libdir}/libva-glx.so.2
350
351 %files glx-devel
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_libdir}/libva-glx.so
354 %{_includedir}/va/va_backend_glx.h
355 %{_includedir}/va/va_glx.h
356 %{_pkgconfigdir}/libva-glx.pc
357
358 %if %{with static_libs}
359 %files glx-static
360 %defattr(644,root,root,755)
361 %{_libdir}/libva-glx.a
362 %endif
363
364 %files wayland
365 %defattr(644,root,root,755)
366 %attr(755,root,root) %{_libdir}/libva-wayland.so.*.*.*
367 %attr(755,root,root) %ghost %{_libdir}/libva-wayland.so.2
368
369 %files wayland-devel
370 %defattr(644,root,root,755)
371 %attr(755,root,root) %{_libdir}/libva-wayland.so
372 %{_includedir}/va/va_backend_wayland.h
373 %{_includedir}/va/va_wayland.h
374 %{_pkgconfigdir}/libva-wayland.pc
375
376 %if %{with static_libs}
377 %files wayland-static
378 %defattr(644,root,root,755)
379 %{_libdir}/libva-wayland.a
380 %endif
381
382 %files x11
383 %defattr(644,root,root,755)
384 %attr(755,root,root) %{_libdir}/libva-x11.so.*.*.*
385 %attr(755,root,root) %ghost %{_libdir}/libva-x11.so.2
386
387 %files x11-devel
388 %defattr(644,root,root,755)
389 %attr(755,root,root) %{_libdir}/libva-x11.so
390 %{_includedir}/va/va_dri2.h
391 %{_includedir}/va/va_dricommon.h
392 %{_includedir}/va/va_x11.h
393 %{_pkgconfigdir}/libva-x11.pc
394
395 %if %{with static_libs}
396 %files x11-static
397 %defattr(644,root,root,755)
398 %{_libdir}/libva-x11.a
399 %endif
This page took 0.086535 seconds and 3 git commands to generate.