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