3 %bcond_without asm # x86 assembler
4 %bcond_without doc # don't build doc
5 %bcond_with tests # build tests (not useful, creates libgtest.a)
6 %bcond_without ssse3 # use SSSE3 instructions (Intel since Core2, Via Nano)
8 %ifnarch %{ix86} %{x8664} x32
12 %if "%{pld_release}" == "ac"
13 # not supported by compiler
17 Summary: VP8, a high-quality video codec
18 Summary(pl.UTF-8): VP8 - kodek obrazu wysokiej jakości
24 #Source0Download: http://downloads.webmproject.org/releases/webm/index.html
25 Source0: https://storage.googleapis.com/downloads.webmproject.org/releases/webm/%{name}-%{version}.tar.bz2
26 # Source0-md5: 49e59dd184caa255886683facea56fca
27 URL: http://www.webmproject.org/
28 BuildRequires: doxygen
29 %{?with_tests:BuildRequires: libstdc++-devel}
30 BuildRequires: pkgconfig
31 BuildRequires: rpmbuild(macros) >= 1.673
32 BuildRequires: sed >= 4.0
33 %{?with_asm:BuildRequires: yasm >= 0.8}
35 BuildRequires: %{php_name}-pcre
36 BuildRequires: %{php_name}-program
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 %define generic_target generic-gnu
41 %define vpxtarget %{generic_target}
43 %define vpxtarget x86_64-linux-gcc
46 %define vpxtarget x86-linux-gcc
49 %define vpxtarget ppc32-linux-gcc
52 %define vpxtarget ppc64-linux-gcc
56 VP8, a high-quality video codec.
58 %description -l pl.UTF-8
59 VP8 - kodek obrazu wysokiej jakości.
62 Summary: Header files for libvpx
63 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libvpx
64 Group: Development/Libraries
65 Requires: %{name} = %{version}-%{release}
68 Header files for libvpx library.
70 %description devel -l pl.UTF-8
71 Pliki nagłówkowe biblioteki libvpx.
74 Summary: Static libvpx library
75 Summary(pl.UTF-8): Statyczna biblioteka libvpx
76 Group: Development/Libraries
77 Requires: %{name}-devel = %{version}-%{release}
80 Static libvpx library.
82 %description static -l pl.UTF-8
83 Statyczna biblioteka libvpx.
91 # not autoconf configure
94 CFLAGS="%{rpmcflags} %{rpmcppflags} %{!?with_asm:-DYUV_DISABLE_ASM}" \
99 --target=%{vpxtarget} \
101 %{!?with_ssse3:--disable-ssse3} \
102 --disable-optimizations \
103 --%{!?with_tests:dis}%{?with_tests:en}able-unit-tests \
104 --%{!?with_doc:dis}%{?with_doc:en}able-docs \
105 --%{!?with_doc:dis}%{?with_doc:en}able-install-docs \
109 --enable-runtime-cpu-detect
111 %{__make} verbose=true target=libs \
113 LDFLAGS="%{rpmldflags}"
115 %{__make} verbose=true target=examples \
116 LDFLAGS="%{rpmldflags} -L."
119 %{__make} verbose=true target=docs
123 rm -rf $RPM_BUILD_ROOT
124 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/vpx,%{_libdir}}
126 %{__make} -C obj verbose=true install \
128 DIST_DIR=$RPM_BUILD_ROOT%{_prefix}
130 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvpx.so.3.0
132 # adjust prefix and libdir
133 %{__sed} -i -e 's,^prefix=.*,prefix=%{_prefix},;s,^libdir=.*,libdir=%{_libdir},' $RPM_BUILD_ROOT%{_pkgconfigdir}/vpx.pc
136 rm -rf $RPM_BUILD_ROOT
138 %post -p /sbin/ldconfig
139 %postun -p /sbin/ldconfig
142 %defattr(644,root,root,755)
143 %doc AUTHORS CHANGELOG LICENSE PATENTS README
144 %attr(755,root,root) %{_bindir}/vpxdec
145 %attr(755,root,root) %{_bindir}/vpxenc
146 %attr(755,root,root) %{_libdir}/libvpx.so.*.*.*
147 %attr(755,root,root) %ghost %{_libdir}/libvpx.so.3
150 %defattr(644,root,root,755)
151 %attr(755,root,root) %{_libdir}/libvpx.so
153 %{_pkgconfigdir}/vpx.pc
156 %defattr(644,root,root,755)