]> git.pld-linux.org Git - packages/libva.git/blame - libva.spec
- up to 1.0.5
[packages/libva.git] / libva.spec
CommitLineData
cf8ad706
AM
1Summary: VAAPI (Video Acceleration API)
2Name: libva
a5134b93 3Version: 1.0.5
cf8ad706
AM
4Release: 1
5License: BSD
6Group: Libraries
7# git clone git://anongit.freedesktop.org/git/libva
3b224f4e 8Source0: http://cgit.freedesktop.org/libva/snapshot/%{name}-%{version}.tar.bz2
a5134b93 9# Source0-md5: 676f0bd52844e0f5c03982e739ee1e31
cf8ad706 10URL: http://www.freedesktop.org/wiki/Software/vaapi
154de1a7 11BuildRequires: Mesa-libGL-devel
cf8ad706
AM
12BuildRequires: autoconf
13BuildRequires: automake
f1646603 14BuildRequires: libdrm-devel >= 2.4.21
154de1a7
KK
15BuildRequires: libtool
16BuildRequires: pkgconfig
17BuildRequires: xorg-lib-libXfixes-devel
cf8ad706
AM
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21The main motivation for VAAPI (Video Acceleration API) is to enable
22hardware accelerated video decode/encode at various entry-points (VLD,
23IDCT, Motion Compensation etc.) for the prevailing coding standards
24today (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).
25
26%package devel
27Summary: Header files and develpment documentation for libva
28Group: Development/Libraries
29Requires: %{name} = %{epoch}:%{version}-%{release}
30
31%description devel
32Header files and documentation for libva.
33
34%package static
35Summary: Static libva library
36Group: Development/Libraries
37Requires: %{name}-devel = %{epoch}:%{version}-%{release}
38
39%description static
40Static libva library.
41
42%prep
3b224f4e 43%setup -q
cf8ad706
AM
44
45%build
46./autogen.sh
47%configure \
48 --enable-static \
49 --enable-i965-driver \
50 --with-drivers-path=%{_libdir}/%{name}/dri
51
52%{__make}
53
54%install
55rm -rf $RPM_BUILD_ROOT
56install -d $RPM_BUILD_ROOT%{_bindir}
57
58%{__make} install \
59 DESTDIR=$RPM_BUILD_ROOT
60
3b224f4e
AM
61rm $RPM_BUILD_ROOT%{_libdir}/%{name}/dri/*.{a,la}
62rm $RPM_BUILD_ROOT%{_bindir}/test_*
63
cf8ad706
AM
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%post -p /sbin/ldconfig
68%postun -p /sbin/ldconfig
69
70%files
71%defattr(644,root,root,755)
3b224f4e
AM
72%attr(755,root,root) %{_bindir}/h264encode
73%attr(755,root,root) %{_bindir}/mpeg2vldemo
74%attr(755,root,root) %{_bindir}/putsurface
cf8ad706
AM
75%attr(755,root,root) %{_bindir}/vainfo
76%attr(755,root,root) %{_libdir}/libva*.so.*.*
77%attr(755,root,root) %ghost %{_libdir}/libva*.so.1
78%dir %{_libdir}/%{name}
79%dir %{_libdir}/%{name}/dri
80%attr(755,root,root) %{_libdir}/%{name}/dri/*.so
81
82%files devel
83%defattr(644,root,root,755)
84%attr(755,root,root) %{_libdir}/libva*.so
85%{_includedir}/va
86%{_libdir}/libva*.la
87%{_pkgconfigdir}/*.pc
88
89%files static
90%defattr(644,root,root,755)
91%{_libdir}/libva*.a
This page took 0.081005 seconds and 4 git commands to generate.