File libvpx.spec of Package libvpx
Name: libvpx
License: BSD-style license
Group: Productivity/Graphics/Other
Summary: VP8 codec library
Url: http://www.webmproject.org/
Version: 0.9.0
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: libvpx.tar.gz
#Patch0: upstream.diff
%if %suse_version <= 1120
#Patch1: buildfix.diff
%endif
BuildRequires: yasm
%description
%package devel
Group: Productivity/Graphics/Other
Summary: VP8 codec library
%description devel
%prep
%setup -q -n libvpx-%version
#%patch0 -p1
%if %suse_version <= 1120
#%patch1 -p0
%endif
%build
cd build
export CFLAGS="$RPM_OPT_FLAGS"
../configure --prefix=/usr --libdir=%_libdir
make %{?jobs:-j%jobs}
%install
cd build
%makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
%if 0
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%endif
%files
%defattr(-,root,root)
%doc LICENSE CHANGELOG AUTHORS README vp8_api1_migration.txt
/usr/bin/*
%files devel
%defattr(-,root,root)
%dir /usr/include/vpx
/usr/include/vpx/*
%_libdir/libvpx.a