5 Summary: VP8, a high-quality video codec
11 Source0: http://webm.googlecode.com/files/%{name}-%{version}.tar.bz2
12 # Source0-md5: e1442e74d0cca228785083fa520735a2
14 Patch0: %{name}-0.9.0-no-explicit-dep-on-static-lib.patch
15 URL: http://www.webmproject.org/
16 BuildRequires: /usr/bin/php
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: doxygen
20 BuildRequires: php-common >= 4:5.0.0
21 BuildRequires: php-pcre
22 %{?with_asm:BuildRequires: yasm}
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 VP8, a high-quality video codec.
29 Summary: Header files and develpment documentation for libvpx
30 Group: Development/Libraries
31 Requires: %{name} = %{epoch}:%{version}-%{release}
34 Header files and documentation for libvpx.
37 Summary: Static libvpx library
38 Group: Development/Libraries
39 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
42 Static libvpx library.
51 # not autoconf configure
55 --target=x86_64-linux-gcc \
58 --target=x86-linux-gcc \
61 --target=generic-gnu \
64 --disable-optimizations \
67 --enable-runtime-cpu-detect
69 # Hack our optflags in.
70 sed -i "s|\"vpx_config.h\"|\"vpx_config.h\" %{rpmcflags} %{rpmcppflags} -fPIC|g" {libs,examples,docs}-*.mk
71 sed -i "s|STRIP=.*|STRIP=|g" {libs,examples,docs}-*.mk
73 %{__make} verbose=true target=libs \
80 %{__cc} %{rpmldflags} -fPIC -shared \
81 -Wl,--no-undefined -Wl,-soname,libvpx.so.0 -Wl,--version-script,%{SOURCE1} -Wl,-z,noexecstack \
82 -o libvpx.so.0.0.0 tmp/*.o \
86 # Temporarily dance the static libs out of the way
87 mv libvpx.a libNOTvpx.a
88 mv libvpx_g.a libNOTvpx_g.a
90 # We need to do this so the examples can link against it.
91 ln -sf libvpx.so.0.0.0 libvpx.so
93 %{__make} verbose=true target=examples \
95 %{__make} verbose=true target=docs
97 # Put them back so the install doesn't fail
98 mv libNOTvpx.a libvpx.a
99 mv libNOTvpx_g.a libvpx_g.a
102 rm -rf $RPM_BUILD_ROOT
103 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/vpx,%{_libdir}}
106 %{__make} -C build install \
107 DIST_DIR=$(pwd)/outdir
109 install -p outdir/bin/* $RPM_BUILD_ROOT%{_bindir}
110 install -p build/libvpx.so.* $RPM_BUILD_ROOT%{_libdir}
111 ln -s libvpx.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libvpx.so.0
112 ln -s libvpx.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libvpx.so
114 cp -a outdir/include/vpx/*.h $RPM_BUILD_ROOT%{_includedir}/vpx
115 cp -a outdir/lib/*.a $RPM_BUILD_ROOT%{_libdir}
118 rm -rf $RPM_BUILD_ROOT
120 %post -p /sbin/ldconfig
121 %postun -p /sbin/ldconfig
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_bindir}/*
126 %attr(755,root,root) %{_libdir}/libvpx.so.*.*.*
127 %attr(755,root,root) %ghost %{_libdir}/libvpx.so.0
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/libvpx.so
135 %defattr(644,root,root,755)