3 %bcond_without asm # x86 assembler
4 %bcond_without doc # don't build doc
5 %bcond_without ssse3 # use SSSE3 instructions (Intel since Core2, Via Nano)
7 %if "%{pld_release}" == "ac"
8 # not supported by compiler
12 Summary: VP8, a high-quality video codec
13 Summary(pl.UTF-8): VP8 - kodek obrazu wysokiej jakości
19 #Source0Download: http://code.google.com/p/webm/downloads/list
20 #Source0: https://webm.googlecode.com/files/%{name}-v%{version}.tar.bz2
21 # source, but regenerated on each fetch
22 #Source0: https://chromium.googlesource.com/webm/libvpx/+archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
23 Source0: %{name}-%{version}.tar.gz
24 # Source0-md5: dcf436a5dc8b56bdfb4aec63b2fe6729
25 URL: http://www.webmproject.org/
26 BuildRequires: doxygen
27 BuildRequires: rpmbuild(macros) >= 1.673
28 BuildRequires: sed >= 4.0
29 %ifarch %{ix86} %{x8664}
30 %{?with_asm:BuildRequires: yasm >= 0.8}
33 BuildRequires: %{php_name}-pcre
34 BuildRequires: %{php_name}-program
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define generic_target generic-gnu
39 %define vpxtarget %{generic_target}
41 %define vpxtarget x86_64-linux-gcc
44 %define vpxtarget x86-linux-gcc
47 %define vpxtarget ppc32-linux-gcc
50 %define vpxtarget ppc64-linux-gcc
54 VP8, a high-quality video codec.
56 %description -l pl.UTF-8
57 VP8 - kodek obrazu wysokiej jakości.
60 Summary: Header files for libvpx
61 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libvpx
62 Group: Development/Libraries
63 Requires: %{name} = %{version}-%{release}
66 Header files for libvpx library.
68 %description devel -l pl.UTF-8
69 Pliki nagłówkowe biblioteki libvpx.
72 Summary: Static libvpx library
73 Summary(pl.UTF-8): Statyczna biblioteka libvpx
74 Group: Development/Libraries
75 Requires: %{name}-devel = %{version}-%{release}
78 Static libvpx library.
80 %description static -l pl.UTF-8
81 Statyczna biblioteka libvpx.
84 #%setup -q -n %{name}-v%{version}
90 # not autoconf configure
91 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
96 --target=%{vpxtarget} \
97 %if "%{vpxtarget}" != "%{generic_target}"
100 %{!?with_ssse3:--disable-ssse3} \
101 --disable-optimizations \
104 --enable-runtime-cpu-detect
106 %{__make} verbose=true target=libs \
110 LDFLAGS="%{rpmldflags}"
112 %{__make} verbose=true target=examples \
115 LDFLAGS="%{rpmldflags} -L."
118 %{__make} verbose=true target=docs
122 rm -rf $RPM_BUILD_ROOT
123 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/vpx,%{_libdir}}
125 %{__make} -C obj verbose=true install \
127 DIST_DIR=$RPM_BUILD_ROOT%{_prefix}
129 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvpx.so.1.3
131 # adjust prefix and libdir
132 %{__sed} -i -e 's,^prefix=.*,prefix=%{_prefix},;s,^libdir=.*,libdir=%{_libdir},' $RPM_BUILD_ROOT%{_pkgconfigdir}/vpx.pc
135 rm -rf $RPM_BUILD_ROOT
137 %post -p /sbin/ldconfig
138 %postun -p /sbin/ldconfig
141 %defattr(644,root,root,755)
142 %doc AUTHORS CHANGELOG LICENSE PATENTS README
143 %attr(755,root,root) %{_bindir}/vp8_scalable_patterns
144 %attr(755,root,root) %{_bindir}/vp9_spatial_scalable_encoder
145 %attr(755,root,root) %{_bindir}/vpxdec
146 %attr(755,root,root) %{_bindir}/vpxenc
147 %attr(755,root,root) %{_libdir}/libvpx.so.*.*.*
148 %attr(755,root,root) %ghost %{_libdir}/libvpx.so.1
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_libdir}/libvpx.so
154 %{_pkgconfigdir}/vpx.pc
157 %defattr(644,root,root,755)