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-md5: f8de058e6ba14555144583a2d031fe19
15 URL: http://www.webmproject.org/
16 BuildRequires: /usr/bin/php
17 BuildRequires: doxygen
18 BuildRequires: php-common >= 4:5.0.0
19 BuildRequires: php-pcre
20 BuildRequires: sed >= 4.0
21 %ifarch %{ix86} %{x8664}
22 %{?with_asm:BuildRequires: yasm >= 0.8}
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define generic_target generic-gnu
27 %define vpxtarget %{generic_target}
29 %define vpxtarget x86_64-linux-gcc
32 %define vpxtarget x86-linux-gcc
35 %define vpxtarget ppc32-linux-gcc
38 %define vpxtarget ppc64-linux-gcc
42 VP8, a high-quality video codec.
44 %description -l pl.UTF-8
45 VP8 - kodek obrazu wysokiej jakości.
48 Summary: Header files for libvpx
49 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libvpx
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
54 Header files for libvpx library.
56 %description devel -l pl.UTF-8
57 Pliki nagłówkowe biblioteki libvpx.
60 Summary: Static libvpx library
61 Summary(pl.UTF-8): Statyczna biblioteka libvpx
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}-%{release}
66 Static libvpx library.
68 %description static -l pl.UTF-8
69 Statyczna biblioteka libvpx.
72 %setup -q -n %{name}-v%{version}
77 # not autoconf configure
78 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
83 --target=%{vpxtarget} \
84 %if "%{vpxtarget}" != "%{generic_target}"
87 --disable-optimizations \
90 --enable-runtime-cpu-detect
92 %{__make} verbose=true target=libs \
96 LDFLAGS="%{rpmldflags}"
98 %{__make} verbose=true target=examples \
101 LDFLAGS="%{rpmldflags} -L."
102 %{__make} verbose=true target=docs
105 rm -rf $RPM_BUILD_ROOT
106 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/vpx,%{_libdir}}
108 %{__make} -C obj verbose=true install \
110 DIST_DIR=$RPM_BUILD_ROOT%{_prefix}
112 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvpx.so.1.2
114 # adjust prefix and libdir
115 %{__sed} -i -e 's,^prefix=.*,prefix=%{_prefix},;s,^libdir=.*,libdir=%{_libdir},' $RPM_BUILD_ROOT%{_pkgconfigdir}/vpx.pc
118 rm -rf $RPM_BUILD_ROOT
120 %post -p /sbin/ldconfig
121 %postun -p /sbin/ldconfig
124 %defattr(644,root,root,755)
125 %doc AUTHORS CHANGELOG LICENSE PATENTS README
126 %attr(755,root,root) %{_bindir}/vp8_scalable_patterns
127 %attr(755,root,root) %{_bindir}/vpxdec
128 %attr(755,root,root) %{_bindir}/vpxenc
129 %attr(755,root,root) %{_libdir}/libvpx.so.*.*.*
130 %attr(755,root,root) %ghost %{_libdir}/libvpx.so.1
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/libvpx.so
136 %{_pkgconfigdir}/vpx.pc
139 %defattr(644,root,root,755)