3 %bcond_without asm # x86 assembler
4 %bcond_without ssse3 # use SSSE3 instructions (Intel since Core2, Via Nano)
6 %if "%{pld_release}" == "ac"
7 # not supported by compiler
11 Summary: VP8, a high-quality video codec
12 Summary(pl.UTF-8): VP8 - kodek obrazu wysokiej jakości
18 #Source0Download: http://code.google.com/p/webm/downloads/list
19 #Source0: https://webm.googlecode.com/files/%{name}-v%{version}.tar.bz2
20 # source, but regenerated on each fetch
21 #Source0: https://chromium.googlesource.com/webm/libvpx/+archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
22 Source0: %{name}-%{version}.tar.gz
23 # Source0-md5: dcf436a5dc8b56bdfb4aec63b2fe6729
24 URL: http://www.webmproject.org/
25 BuildRequires: /usr/bin/php
26 BuildRequires: doxygen
27 BuildRequires: php-common >= 4:5.0.0
28 BuildRequires: php-pcre
29 BuildRequires: sed >= 4.0
30 %ifarch %{ix86} %{x8664}
31 %{?with_asm:BuildRequires: yasm >= 0.8}
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define generic_target generic-gnu
36 %define vpxtarget %{generic_target}
38 %define vpxtarget x86_64-linux-gcc
41 %define vpxtarget x86-linux-gcc
44 %define vpxtarget ppc32-linux-gcc
47 %define vpxtarget ppc64-linux-gcc
51 VP8, a high-quality video codec.
53 %description -l pl.UTF-8
54 VP8 - kodek obrazu wysokiej jakości.
57 Summary: Header files for libvpx
58 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libvpx
59 Group: Development/Libraries
60 Requires: %{name} = %{version}-%{release}
63 Header files for libvpx library.
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe biblioteki libvpx.
69 Summary: Static libvpx library
70 Summary(pl.UTF-8): Statyczna biblioteka libvpx
71 Group: Development/Libraries
72 Requires: %{name}-devel = %{version}-%{release}
75 Static libvpx library.
77 %description static -l pl.UTF-8
78 Statyczna biblioteka libvpx.
81 #%setup -q -n %{name}-v%{version}
87 # not autoconf configure
88 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
93 --target=%{vpxtarget} \
94 %if "%{vpxtarget}" != "%{generic_target}"
97 %{!?with_ssse3:--disable-ssse3} \
98 --disable-optimizations \
101 --enable-runtime-cpu-detect
103 %{__make} verbose=true target=libs \
107 LDFLAGS="%{rpmldflags}"
109 %{__make} verbose=true target=examples \
112 LDFLAGS="%{rpmldflags} -L."
113 %{__make} verbose=true target=docs
116 rm -rf $RPM_BUILD_ROOT
117 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/vpx,%{_libdir}}
119 %{__make} -C obj verbose=true install \
121 DIST_DIR=$RPM_BUILD_ROOT%{_prefix}
123 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvpx.so.1.3
125 # adjust prefix and libdir
126 %{__sed} -i -e 's,^prefix=.*,prefix=%{_prefix},;s,^libdir=.*,libdir=%{_libdir},' $RPM_BUILD_ROOT%{_pkgconfigdir}/vpx.pc
129 rm -rf $RPM_BUILD_ROOT
131 %post -p /sbin/ldconfig
132 %postun -p /sbin/ldconfig
135 %defattr(644,root,root,755)
136 %doc AUTHORS CHANGELOG LICENSE PATENTS README
137 %attr(755,root,root) %{_bindir}/vp8_scalable_patterns
138 %attr(755,root,root) %{_bindir}/vp9_spatial_scalable_encoder
139 %attr(755,root,root) %{_bindir}/vpxdec
140 %attr(755,root,root) %{_bindir}/vpxenc
141 %attr(755,root,root) %{_libdir}/libvpx.so.*.*.*
142 %attr(755,root,root) %ghost %{_libdir}/libvpx.so.1
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_libdir}/libvpx.so
148 %{_pkgconfigdir}/vpx.pc
151 %defattr(644,root,root,755)