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 #Source0Download: http://code.google.com/p/webm/downloads/list
13 #Source0: https://webm.googlecode.com/files/%{name}-v%{version}.tar.bz2
14 Source0: https://chromium.googlesource.com/webm/libvpx/+archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
15 # Source0-md5: dcf436a5dc8b56bdfb4aec63b2fe6729
16 URL: http://www.webmproject.org/
17 BuildRequires: /usr/bin/php
18 BuildRequires: doxygen
19 BuildRequires: php-common >= 4:5.0.0
20 BuildRequires: php-pcre
21 BuildRequires: sed >= 4.0
22 %ifarch %{ix86} %{x8664}
23 %{?with_asm:BuildRequires: yasm >= 0.8}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define generic_target generic-gnu
28 %define vpxtarget %{generic_target}
30 %define vpxtarget x86_64-linux-gcc
33 %define vpxtarget x86-linux-gcc
36 %define vpxtarget ppc32-linux-gcc
39 %define vpxtarget ppc64-linux-gcc
43 VP8, a high-quality video codec.
45 %description -l pl.UTF-8
46 VP8 - kodek obrazu wysokiej jakości.
49 Summary: Header files for libvpx
50 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libvpx
51 Group: Development/Libraries
52 Requires: %{name} = %{version}-%{release}
55 Header files for libvpx library.
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe biblioteki libvpx.
61 Summary: Static libvpx library
62 Summary(pl.UTF-8): Statyczna biblioteka libvpx
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
67 Static libvpx library.
69 %description static -l pl.UTF-8
70 Statyczna biblioteka libvpx.
73 #%setup -q -n %{name}-v%{version}
79 # not autoconf configure
80 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
85 --target=%{vpxtarget} \
86 %if "%{vpxtarget}" != "%{generic_target}"
89 --disable-optimizations \
92 --enable-runtime-cpu-detect
94 %{__make} verbose=true target=libs \
98 LDFLAGS="%{rpmldflags}"
100 %{__make} verbose=true target=examples \
103 LDFLAGS="%{rpmldflags} -L."
104 %{__make} verbose=true target=docs
107 rm -rf $RPM_BUILD_ROOT
108 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/vpx,%{_libdir}}
110 %{__make} -C obj verbose=true install \
112 DIST_DIR=$RPM_BUILD_ROOT%{_prefix}
114 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvpx.so.1.3
116 # adjust prefix and libdir
117 %{__sed} -i -e 's,^prefix=.*,prefix=%{_prefix},;s,^libdir=.*,libdir=%{_libdir},' $RPM_BUILD_ROOT%{_pkgconfigdir}/vpx.pc
120 rm -rf $RPM_BUILD_ROOT
122 %post -p /sbin/ldconfig
123 %postun -p /sbin/ldconfig
126 %defattr(644,root,root,755)
127 %doc AUTHORS CHANGELOG LICENSE PATENTS README
128 %attr(755,root,root) %{_bindir}/vp8_scalable_patterns
129 %attr(755,root,root) %{_bindir}/vp9_spatial_scalable_encoder
130 %attr(755,root,root) %{_bindir}/vpxdec
131 %attr(755,root,root) %{_bindir}/vpxenc
132 %attr(755,root,root) %{_libdir}/libvpx.so.*.*.*
133 %attr(755,root,root) %ghost %{_libdir}/libvpx.so.1
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/libvpx.so
139 %{_pkgconfigdir}/vpx.pc
142 %defattr(644,root,root,755)