2024-01-06 06:05:29 +01:00
|
|
|
%ifarch %{ix86}
|
|
|
|
%define vpxtarget x86-linux-gcc
|
|
|
|
%else
|
|
|
|
%ifarch x86_64
|
|
|
|
%define vpxtarget x86_64-linux-gcc
|
|
|
|
%else
|
|
|
|
%ifarch arm
|
2024-01-06 06:05:30 +01:00
|
|
|
%define vpxtarget armv7-linux-gcc
|
2024-01-06 06:05:29 +01:00
|
|
|
%else
|
|
|
|
%define vpxtarget generic-gnu
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%define majver %(echo %version | cut -d. -f 1-2)
|
|
|
|
%define major %(echo %version | cut -d. -f -1)
|
|
|
|
|
|
|
|
Name: libvpx
|
2024-01-06 06:05:30 +01:00
|
|
|
Version: 1.6.1
|
|
|
|
Release: 1mamba
|
2024-01-06 06:05:29 +01:00
|
|
|
Summary: VP8 Video Codec SDK
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://code.google.com/p/webm
|
2024-01-06 06:05:30 +01:00
|
|
|
Source0: http://storage.googleapis.com/downloads.webmproject.org/releases/webm/libvpx-%{version}.tar.bz2
|
2024-01-06 06:05:29 +01:00
|
|
|
Source1: libvpx.pc
|
|
|
|
# from debian
|
|
|
|
Source2: libvpx.ver
|
|
|
|
Patch0: libvpx-0.9.0-no-explicit-dep-on-static-lib.patch
|
|
|
|
Patch1: libvpx-0.9.5-I6266aba7.patch
|
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-06 06:05:30 +01:00
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libstdc++6-devel
|
2024-01-06 06:05:29 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 06:05:30 +01:00
|
|
|
BuildRequires: doxygen
|
2024-01-06 06:05:29 +01:00
|
|
|
%if "%{stage1}" != "1"
|
|
|
|
BuildRequires: php
|
|
|
|
# TODO BuildRequires: %{_bindir}/php-cli
|
|
|
|
%endif
|
|
|
|
BuildRequires: yasm
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
libvpx provides the VP8 SDK, which allows you to integrate your applications with the VP8 video codec, a high quality, royalty free, open source codec deployed on millions of computers and devices worldwide.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Static libraries and headers for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
libvpx - VP8 Video Codec SDK.
|
|
|
|
|
|
|
|
This package contains static libraries and header files need for development.
|
|
|
|
|
|
|
|
%package utils
|
|
|
|
Group: Development/Tools
|
|
|
|
Summary: Utility applications for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description utils
|
|
|
|
libvpx - VP8 Video Codec SDK.
|
|
|
|
|
|
|
|
The %{name}-tools package contains a selection of utilities and
|
|
|
|
tools for VP8, including a sample encoder and decoder.
|
|
|
|
|
|
|
|
%package docs
|
|
|
|
Group: Documentation
|
|
|
|
Summary: libvpx API documentation
|
|
|
|
|
|
|
|
%description docs
|
|
|
|
libvpx - VP8 Video Codec SDK.
|
|
|
|
|
|
|
|
This package contains libvpx API documentation.
|
|
|
|
|
|
|
|
%prep
|
2024-01-06 06:05:30 +01:00
|
|
|
%setup -q
|
2024-01-06 06:05:29 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
CROSS=%{_host}- \
|
|
|
|
./configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--enable-pic \
|
|
|
|
--disable-install-srcs \
|
|
|
|
%if "%{stage1}" !="1"
|
|
|
|
--enable-install-docs \
|
|
|
|
%endif
|
|
|
|
--enable-shared \
|
2024-01-06 06:05:30 +01:00
|
|
|
--target=%{vpxtarget} \
|
|
|
|
--enable-runtime-cpu-detect \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-pic \
|
|
|
|
--enable-vp8 \
|
|
|
|
--enable-postproc \
|
|
|
|
--enable-vp9 \
|
|
|
|
--enable-vp9-highbitdepth \
|
|
|
|
--enable-experimental \
|
|
|
|
--enable-spatial-svc
|
2024-01-06 06:05:29 +01:00
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
# fix permissions
|
|
|
|
chmod 644 %{buildroot}%{_includedir}/vpx/*.h
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libvpx.so.*
|
|
|
|
%doc AUTHORS LICENSE
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/vpx
|
|
|
|
%{_includedir}/vpx/*.h
|
|
|
|
%{_libdir}/libvpx.a
|
|
|
|
%{_libdir}/libvpx.so
|
|
|
|
%{_libdir}/pkgconfig/vpx.pc
|
|
|
|
%doc CHANGELOG README
|
|
|
|
|
|
|
|
%files utils
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 06:05:30 +01:00
|
|
|
#%{_bindir}/vp8_scalable_patterns
|
|
|
|
#%{_bindir}/vp9_spatial_scalable_encoder
|
2024-01-06 06:05:29 +01:00
|
|
|
%{_bindir}/vpxdec
|
|
|
|
%{_bindir}/vpxenc
|
|
|
|
|
|
|
|
#%if "%{stage1}" !="1"
|
|
|
|
#%files docs
|
|
|
|
#%defattr(-,root,root)
|
|
|
|
##%doc docs/html/
|
|
|
|
#%endif
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 06:05:30 +01:00
|
|
|
* Sun Jan 15 2017 Automatic Build System <autodist@mambasoft.it> 1.6.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:05:30 +01:00
|
|
|
* Sun Dec 11 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-2mamba
|
|
|
|
- added many configure options for chromium
|
|
|
|
|
2024-01-06 06:05:30 +01:00
|
|
|
* Fri Aug 05 2016 Automatic Build System <autodist@mambasoft.it> 1.6.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:05:30 +01:00
|
|
|
* Thu Nov 12 2015 Automatic Build System <autodist@mambasoft.it> 1.5.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:05:30 +01:00
|
|
|
* Thu Apr 30 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-1mamba
|
|
|
|
- update to 1.4.0
|
|
|
|
|
2024-01-06 06:05:29 +01:00
|
|
|
* Sun Jan 12 2014 Automatic Build System <autodist@mambasoft.it> 1.3.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Oct 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-2mamba
|
|
|
|
- fix permissions of header files
|
|
|
|
|
|
|
|
* Wed Sep 04 2013 Automatic Build System <autodist@mambasoft.it> 1.2.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Nov 14 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.0-1mamba
|
|
|
|
- update to 1.1.0
|
|
|
|
|
|
|
|
* Tue Aug 02 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.6-3mamba
|
|
|
|
- rebuilt in devel
|
|
|
|
|
|
|
|
* Fri Mar 18 2011 gil <puntogil@libero.it> 0.9.6-2mamba
|
|
|
|
- fix broken header files
|
|
|
|
|
|
|
|
* Fri Mar 18 2011 gil <puntogil@libero.it> 0.9.6-1mamba
|
|
|
|
- update to 0.9.6
|
|
|
|
|
|
|
|
* Fri Feb 25 2011 gil <puntogil@libero.it> 0.9.5-1mamba
|
|
|
|
- package created by autospec
|