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 # source, but regenerated on each fetch
15 #Source0: https://chromium.googlesource.com/webm/libvpx/+archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
16 Source0: %{name}-%{version}.tar.gz
17 # Source0-md5: dcf436a5dc8b56bdfb4aec63b2fe6729
18 URL: http://www.webmproject.org/
19 BuildRequires: /usr/bin/php
20 BuildRequires: doxygen
21 BuildRequires: php-common >= 4:5.0.0
22 BuildRequires: php-pcre
23 BuildRequires: sed >= 4.0
24 %ifarch %{ix86} %{x8664}
25 %{?with_asm:BuildRequires: yasm >= 0.8}
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define generic_target generic-gnu
30 %define vpxtarget %{generic_target}
32 %define vpxtarget x86_64-linux-gcc
35 %define vpxtarget x86-linux-gcc
38 %define vpxtarget ppc32-linux-gcc
41 %define vpxtarget ppc64-linux-gcc
45 VP8, a high-quality video codec.
47 %description -l pl.UTF-8
48 VP8 - kodek obrazu wysokiej jakości.
51 Summary: Header files for libvpx
52 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libvpx
53 Group: Development/Libraries
54 Requires: %{name} = %{version}-%{release}
57 Header files for libvpx library.
59 %description devel -l pl.UTF-8
60 Pliki nagłówkowe biblioteki libvpx.
63 Summary: Static libvpx library
64 Summary(pl.UTF-8): Statyczna biblioteka libvpx
65 Group: Development/Libraries
66 Requires: %{name}-devel = %{version}-%{release}
69 Static libvpx library.
71 %description static -l pl.UTF-8
72 Statyczna biblioteka libvpx.
75 #%setup -q -n %{name}-v%{version}
81 # not autoconf configure
82 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
87 --target=%{vpxtarget} \
88 %if "%{vpxtarget}" != "%{generic_target}"
91 --disable-optimizations \
94 --enable-runtime-cpu-detect
96 %{__make} verbose=true target=libs \
100 LDFLAGS="%{rpmldflags}"
102 %{__make} verbose=true target=examples \
105 LDFLAGS="%{rpmldflags} -L."
106 %{__make} verbose=true target=docs
109 rm -rf $RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/vpx,%{_libdir}}
112 %{__make} -C obj verbose=true install \
114 DIST_DIR=$RPM_BUILD_ROOT%{_prefix}
116 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvpx.so.1.3
118 # adjust prefix and libdir
119 %{__sed} -i -e 's,^prefix=.*,prefix=%{_prefix},;s,^libdir=.*,libdir=%{_libdir},' $RPM_BUILD_ROOT%{_pkgconfigdir}/vpx.pc
122 rm -rf $RPM_BUILD_ROOT
124 %post -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
128 %defattr(644,root,root,755)
129 %doc AUTHORS CHANGELOG LICENSE PATENTS README
130 %attr(755,root,root) %{_bindir}/vp8_scalable_patterns
131 %attr(755,root,root) %{_bindir}/vp9_spatial_scalable_encoder
132 %attr(755,root,root) %{_bindir}/vpxdec
133 %attr(755,root,root) %{_bindir}/vpxenc
134 %attr(755,root,root) %{_libdir}/libvpx.so.*.*.*
135 %attr(755,root,root) %ghost %{_libdir}/libvpx.so.1
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/libvpx.so
141 %{_pkgconfigdir}/vpx.pc
144 %defattr(644,root,root,755)