169 lines
4.2 KiB
RPMSpec
169 lines
4.2 KiB
RPMSpec
|
%ifarch %{ix86}
|
||
|
%define vpxtarget x86-linux-gcc
|
||
|
%else
|
||
|
%ifarch x86_64
|
||
|
%define vpxtarget x86_64-linux-gcc
|
||
|
%else
|
||
|
%ifarch arm
|
||
|
%define vpxtarget armv6-linux-gcc
|
||
|
%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: libvpx3
|
||
|
Version: 1.5.0
|
||
|
Release: 2mamba
|
||
|
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
|
||
|
Source0: http://storage.googleapis.com/downloads.webmproject.org/releases/webm/libvpx-%{version}.tar.bz2
|
||
|
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
|
||
|
BuildRequires: doxygen
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
%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
|
||
|
%setup -q -n libvpx-%{version}
|
||
|
|
||
|
%build
|
||
|
CROSS=%{_host}- \
|
||
|
./configure \
|
||
|
--prefix=%{_prefix} \
|
||
|
--libdir=%{_libdir} \
|
||
|
--enable-pic \
|
||
|
--disable-install-srcs \
|
||
|
%if "%{stage1}" !="1"
|
||
|
--enable-install-docs \
|
||
|
%endif
|
||
|
--enable-shared \
|
||
|
--target=%{vpxtarget}
|
||
|
|
||
|
%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)
|
||
|
#%{_bindir}/vp8_scalable_patterns
|
||
|
#%{_bindir}/vp9_spatial_scalable_encoder
|
||
|
%{_bindir}/vpxdec
|
||
|
%{_bindir}/vpxenc
|
||
|
|
||
|
#%if "%{stage1}" !="1"
|
||
|
#%files docs
|
||
|
#%defattr(-,root,root)
|
||
|
##%doc docs/html/
|
||
|
#%endif
|
||
|
|
||
|
%changelog
|
||
|
* Wed Aug 10 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-2mamba
|
||
|
- legacy package
|
||
|
|
||
|
* Thu Nov 12 2015 Automatic Build System <autodist@mambasoft.it> 1.5.0-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Thu Apr 30 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-1mamba
|
||
|
- update to 1.4.0
|
||
|
|
||
|
* 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
|