]>
Commit | Line | Data |
---|---|---|
2514cae7 SS |
1 | # TODO: |
2 | # add missing BR | |
3 | # | |
cf8ad706 AM |
4 | Summary: VAAPI (Video Acceleration API) |
5 | Name: libva | |
6 | # see configure.ac | |
3b224f4e | 7 | Version: 1.0.3 |
cf8ad706 AM |
8 | Release: 1 |
9 | License: BSD | |
10 | Group: Libraries | |
11 | # git clone git://anongit.freedesktop.org/git/libva | |
3b224f4e AM |
12 | Source0: http://cgit.freedesktop.org/libva/snapshot/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 5e92b34ec7047479993ac5b02a16491c | |
cf8ad706 AM |
14 | URL: http://www.freedesktop.org/wiki/Software/vaapi |
15 | BuildRequires: autoconf | |
16 | BuildRequires: automake | |
f1646603 | 17 | BuildRequires: libdrm-devel >= 2.4.21 |
cf8ad706 AM |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | The main motivation for VAAPI (Video Acceleration API) is to enable | |
22 | hardware accelerated video decode/encode at various entry-points (VLD, | |
23 | IDCT, Motion Compensation etc.) for the prevailing coding standards | |
24 | today (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3). | |
25 | ||
26 | %package devel | |
27 | Summary: Header files and develpment documentation for libva | |
28 | Group: Development/Libraries | |
29 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
30 | ||
31 | %description devel | |
32 | Header files and documentation for libva. | |
33 | ||
34 | %package static | |
35 | Summary: Static libva library | |
36 | Group: Development/Libraries | |
37 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
38 | ||
39 | %description static | |
40 | Static 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 | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | install -d $RPM_BUILD_ROOT%{_bindir} | |
57 | ||
58 | %{__make} install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT | |
60 | ||
3b224f4e AM |
61 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}/dri/*.{a,la} |
62 | rm $RPM_BUILD_ROOT%{_bindir}/test_* | |
63 | ||
cf8ad706 AM |
64 | %clean |
65 | rm -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 |