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