]>
Commit | Line | Data |
---|---|---|
cf8ad706 | 1 | Summary: VAAPI (Video Acceleration API) |
7a7f6185 | 2 | Summary(pl.UTF-8): VAAPI (Video Acceleration API) - API akceleracji filmów |
cf8ad706 | 3 | Name: libva |
1dedad5d | 4 | Version: 1.0.14 |
cf8ad706 AM |
5 | Release: 1 |
6 | License: BSD | |
7 | Group: Libraries | |
7b9231e8 | 8 | #Source0Download: http://cgit.freedesktop.org/libva/ |
3b224f4e | 9 | Source0: http://cgit.freedesktop.org/libva/snapshot/%{name}-%{version}.tar.bz2 |
1dedad5d | 10 | # Source0-md5: 9a7eba239bffa3b40d7a49e3bb4fb6fb |
cf8ad706 | 11 | URL: http://www.freedesktop.org/wiki/Software/vaapi |
154de1a7 | 12 | BuildRequires: Mesa-libGL-devel |
7a7f6185 | 13 | BuildRequires: autoconf >= 2.57 |
cf8ad706 | 14 | BuildRequires: automake |
7b9231e8 | 15 | BuildRequires: libdrm-devel >= 2.4.23 |
154de1a7 KK |
16 | BuildRequires: libtool |
17 | BuildRequires: pkgconfig | |
7a7f6185 | 18 | BuildRequires: xorg-lib-libXext-devel |
154de1a7 | 19 | BuildRequires: xorg-lib-libXfixes-devel |
7b9231e8 | 20 | Requires: libdrm >= 2.4.23 |
cf8ad706 AM |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | The main motivation for VAAPI (Video Acceleration API) is to enable | |
25 | hardware accelerated video decode/encode at various entry-points (VLD, | |
26 | IDCT, Motion Compensation etc.) for the prevailing coding standards | |
27 | today (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3). | |
28 | ||
7a7f6185 JB |
29 | %description -l pl.UTF-8 |
30 | Głównym celem API akceleracji filmów VAAPI (Video Acceleration API) | |
31 | jest umożliwienie sprzętowej akceleracji dekodowania/kodowania filmów | |
32 | na różnych etapach (VLD, IDCT, kompensacja ruchu itp.) dla obecnie | |
33 | przeważających standardów kodowania (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 | |
34 | AVC/H.264, VC-1/VMW3). | |
35 | ||
cf8ad706 | 36 | %package devel |
7a7f6185 JB |
37 | Summary: Header files for libva libraries |
38 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libva | |
cf8ad706 | 39 | Group: Development/Libraries |
7a7f6185 | 40 | Requires: %{name} = %{version}-%{release} |
cf8ad706 AM |
41 | |
42 | %description devel | |
7a7f6185 JB |
43 | Header files for libva libraries. |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki nagłówkowe bibliotek libva. | |
cf8ad706 AM |
47 | |
48 | %package static | |
7a7f6185 JB |
49 | Summary: Static libva libraries |
50 | Summary(pl.UTF-8): Statyczne biblioteki libva | |
cf8ad706 | 51 | Group: Development/Libraries |
7a7f6185 | 52 | Requires: %{name}-devel = %{version}-%{release} |
cf8ad706 AM |
53 | |
54 | %description static | |
7a7f6185 JB |
55 | Static libva libraries. |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Statyczne biblioteki libva. | |
cf8ad706 AM |
59 | |
60 | %prep | |
3b224f4e | 61 | %setup -q |
cf8ad706 AM |
62 | |
63 | %build | |
7a7f6185 JB |
64 | %{__libtoolize} |
65 | %{__aclocal} | |
66 | %{__autoconf} | |
67 | %{__autoheader} | |
68 | %{__automake} | |
cf8ad706 | 69 | %configure \ |
7275dddd | 70 | --disable-silent-rules \ |
cf8ad706 AM |
71 | --enable-static \ |
72 | --enable-i965-driver \ | |
73 | --with-drivers-path=%{_libdir}/%{name}/dri | |
74 | ||
75 | %{__make} | |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
cf8ad706 AM |
79 | |
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
7a7f6185 | 83 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/dri/*.{a,la} |
3b224f4e | 84 | |
cf8ad706 AM |
85 | %clean |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
ae7422c9 | 93 | %attr(755,root,root) %{_bindir}/avcenc |
3b224f4e AM |
94 | %attr(755,root,root) %{_bindir}/h264encode |
95 | %attr(755,root,root) %{_bindir}/mpeg2vldemo | |
96 | %attr(755,root,root) %{_bindir}/putsurface | |
cf8ad706 | 97 | %attr(755,root,root) %{_bindir}/vainfo |
7a7f6185 JB |
98 | %attr(755,root,root) %{_libdir}/libva.so.*.*.* |
99 | %attr(755,root,root) %ghost %{_libdir}/libva.so.1 | |
d7316b22 JB |
100 | %attr(755,root,root) %{_libdir}/libva-egl.so.*.*.* |
101 | %attr(755,root,root) %ghost %{_libdir}/libva-egl.so.1 | |
7a7f6185 JB |
102 | %attr(755,root,root) %{_libdir}/libva-glx.so.*.*.* |
103 | %attr(755,root,root) %ghost %{_libdir}/libva-glx.so.1 | |
104 | %attr(755,root,root) %{_libdir}/libva-tpi.so.*.*.* | |
105 | %attr(755,root,root) %ghost %{_libdir}/libva-tpi.so.1 | |
106 | %attr(755,root,root) %{_libdir}/libva-x11.so.*.*.* | |
107 | %attr(755,root,root) %ghost %{_libdir}/libva-x11.so.1 | |
cf8ad706 AM |
108 | %dir %{_libdir}/%{name} |
109 | %dir %{_libdir}/%{name}/dri | |
7a7f6185 JB |
110 | %attr(755,root,root) %{_libdir}/%{name}/dri/dummy_drv_video.so |
111 | %attr(755,root,root) %{_libdir}/%{name}/dri/i965_drv_video.so | |
cf8ad706 AM |
112 | |
113 | %files devel | |
114 | %defattr(644,root,root,755) | |
7a7f6185 | 115 | %attr(755,root,root) %{_libdir}/libva.so |
d7316b22 | 116 | %attr(755,root,root) %{_libdir}/libva-egl.so |
7a7f6185 JB |
117 | %attr(755,root,root) %{_libdir}/libva-glx.so |
118 | %attr(755,root,root) %{_libdir}/libva-tpi.so | |
119 | %attr(755,root,root) %{_libdir}/libva-x11.so | |
120 | %{_libdir}/libva.la | |
d7316b22 | 121 | %{_libdir}/libva-egl.la |
7a7f6185 JB |
122 | %{_libdir}/libva-glx.la |
123 | %{_libdir}/libva-tpi.la | |
124 | %{_libdir}/libva-x11.la | |
cf8ad706 | 125 | %{_includedir}/va |
7a7f6185 | 126 | %{_pkgconfigdir}/libva.pc |
d7316b22 | 127 | %{_pkgconfigdir}/libva-egl.pc |
7a7f6185 JB |
128 | %{_pkgconfigdir}/libva-glx.pc |
129 | %{_pkgconfigdir}/libva-tpi.pc | |
130 | %{_pkgconfigdir}/libva-x11.pc | |
cf8ad706 AM |
131 | |
132 | %files static | |
133 | %defattr(644,root,root,755) | |
7a7f6185 | 134 | %{_libdir}/libva.a |
d7316b22 | 135 | %{_libdir}/libva-egl.a |
7a7f6185 JB |
136 | %{_libdir}/libva-glx.a |
137 | %{_libdir}/libva-tpi.a | |
138 | %{_libdir}/libva-x11.a |