#
# Conditional build:
%bcond_without asm # x86 assembler
-#
+
Summary: VP8, a high-quality video codec
Summary(pl.UTF-8): VP8 - kodek obrazu wysokiej jakości
Name: libvpx
Release: 1
License: BSD
Group: Libraries
-#Source0Download: http://code.google.com/p/webm/downloads/list
+# Source0Download: http://code.google.com/p/webm/downloads/list
Source0: https://webm.googlecode.com/files/%{name}-v%{version}.tar.bz2
# Source0-md5: d987b5140412edd37d2c6b10c29ad484
URL: http://www.webmproject.org/
BuildRequires: php-pcre
BuildRequires: sed >= 4.0
%ifarch %{ix86} %{x8664}
-%{?with_asm:BuildRequires: yasm}
+%{?with_asm:BuildRequires: yasm >= 0.8}
%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libvpx.so.1.0
# adjust prefix and libdir
-sed -i -e 's,^prefix=.*,prefix=%{_prefix},;s,^libdir=.*,libdir=%{_libdir},' $RPM_BUILD_ROOT%{_pkgconfigdir}/vpx.pc
+%{__sed} -i -e 's,^prefix=.*,prefix=%{_prefix},;s,^libdir=.*,libdir=%{_libdir},' $RPM_BUILD_ROOT%{_pkgconfigdir}/vpx.pc
%clean
rm -rf $RPM_BUILD_ROOT