3 %bcond_without asm # x86 assembler
5 Summary: VP8, a high-quality video codec
6 Summary(pl.UTF-8): VP8 - kodek obrazu wysokiej jakości
12 #Source0-Download: http://code.google.com/p/webm/downloads/list
13 Source0: http://webm.googlecode.com/files/%{name}-v%{version}.tar.bz2
14 # Source0-md5: 4bf2f2c76700202c1fe9201fcb0680e3
16 Patch0: %{name}-0.9.0-no-explicit-dep-on-static-lib.patch
17 URL: http://www.webmproject.org/
18 BuildRequires: /usr/bin/php
19 BuildRequires: doxygen
20 BuildRequires: php-common >= 4:5.0.0
21 BuildRequires: php-pcre
22 %ifarch %{ix86} %{x8664}
23 %{?with_asm:BuildRequires: yasm}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 VP8, a high-quality video codec.
30 %description -l pl.UTF-8
31 VP8 - kodek obrazu wysokiej jakości.
34 Summary: Header files for libvpx
35 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libvpx
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
40 Header files for libvpx library.
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki libvpx.
46 Summary: Static libvpx library
47 Summary(pl.UTF-8): Statyczna biblioteka libvpx
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
52 Static libvpx library.
54 %description static -l pl.UTF-8
55 Statyczna biblioteka libvpx.
58 %setup -q -n %{name}-v%{version}
64 # not autoconf configure
65 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
69 --target=x86_64-linux-gcc \
72 --target=x86-linux-gcc \
75 --target=generic-gnu \
78 --disable-optimizations \
81 --enable-runtime-cpu-detect
83 %{__make} verbose=true target=libs \
86 LDFLAGS="%{rpmldflags}"
88 %{__make} verbose=true target=examples \
90 LDFLAGS="%{rpmldflags}"
91 %{__make} verbose=true target=docs
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/vpx,%{_libdir}}
97 %{__make} -C obj verbose=true install \
99 DIST_DIR=$RPM_BUILD_ROOT%{_prefix}
101 rm $RPM_BUILD_ROOT%{_libdir}/libvpx.so.0.?
104 rm -rf $RPM_BUILD_ROOT
106 %post -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
110 %defattr(644,root,root,755)
111 %doc AUTHORS CHANGELOG LICENSE PATENTS README
112 %attr(755,root,root) %{_bindir}/vpxdec
113 %attr(755,root,root) %{_bindir}/vpxenc
114 %attr(755,root,root) %{_libdir}/libvpx.so.*.*.*
115 %attr(755,root,root) %ghost %{_libdir}/libvpx.so.0
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/libvpx.so
123 %defattr(644,root,root,755)