|
|
@ -1,45 +1,39 @@
|
|
|
|
%global somajor 6
|
|
|
|
%global somajor 9
|
|
|
|
%global sominor 0
|
|
|
|
%global sominor 0
|
|
|
|
%global sotiny 0
|
|
|
|
%global sotiny 0
|
|
|
|
%global soversion %{somajor}.%{sominor}.%{sotiny}
|
|
|
|
%global soversion %{somajor}.%{sominor}.%{sotiny}
|
|
|
|
|
|
|
|
|
|
|
|
Name: libvpx
|
|
|
|
Name: libvpx
|
|
|
|
Summary: VP8/VP9 Video Codec SDK
|
|
|
|
Summary: VP8/VP9 Video Codec SDK
|
|
|
|
Version: 1.9.0
|
|
|
|
Version: 1.14.1
|
|
|
|
Release: 8%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
License: BSD
|
|
|
|
License: BSD-3-Clause
|
|
|
|
#Source0: http://downloads.webmproject.org/releases/webm/%{name}-%{version}.tar.bz2
|
|
|
|
URL: http://www.webmproject.org/code/
|
|
|
|
Source0: https://github.com/webmproject/libvpx/archive/v%{version}.tar.gz
|
|
|
|
Source0: https://github.com/webmproject/libvpx/archive/v%{version}.tar.gz
|
|
|
|
Source1: vpx_config.h
|
|
|
|
Source1: vpx_config.h
|
|
|
|
# Thanks to debian.
|
|
|
|
# Thanks to debian.
|
|
|
|
Source2: libvpx.ver
|
|
|
|
Source2: libvpx.ver
|
|
|
|
URL: http://www.webmproject.org/code/
|
|
|
|
# Do not disable FORTIFY_SOURCE=2
|
|
|
|
BuildRequires: make
|
|
|
|
Patch0: libvpx-1.7.0-leave-fortify-source-on.patch
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
BuildRequires: yasm
|
|
|
|
BuildRequires: nasm
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: doxygen, php-cli, perl(Getopt::Long)
|
|
|
|
BuildRequires: doxygen, php-cli, perl(Getopt::Long)
|
|
|
|
# Do not disable FORTIFY_SOURCE=2
|
|
|
|
|
|
|
|
Patch0: libvpx-1.7.0-leave-fortify-source-on.patch
|
|
|
|
|
|
|
|
Patch1: 0001-Fix-bug-with-smaller-width-bigger-size.patch
|
|
|
|
|
|
|
|
Patch2: 0001-VP8-disallow-thread-count-changes.patch
|
|
|
|
|
|
|
|
Patch3: 0001-Fix-integer-overflows-in-calc-of-stride_in_bytes.patch
|
|
|
|
|
|
|
|
Patch4: 0002-Apply-stride_align-to-byte-count-not-pixel-count.patch
|
|
|
|
|
|
|
|
Patch5: 0003-Fix-a-bug-in-alloc_size-for-high-bit-depths.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
libvpx provides the VP8/VP9 SDK, which allows you to integrate your applications
|
|
|
|
libvpx provides the VP8/VP9 SDK, which allows you to integrate your applications
|
|
|
|
with the VP8 and VP9 video codecs, high quality, royalty free, open source codecs
|
|
|
|
with the VP8 and VP9 video codecs, high quality, royalty free, open source codecs
|
|
|
|
deployed on millions of computers and devices worldwide.
|
|
|
|
deployed on millions of computers and devices worldwide.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libvpx
|
|
|
|
Summary: Development files for libvpx
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
Development libraries and headers for developing software against
|
|
|
|
Development libraries and headers for developing software against
|
|
|
|
libvpx.
|
|
|
|
libvpx.
|
|
|
|
|
|
|
|
|
|
|
|
%package utils
|
|
|
|
%package utils
|
|
|
@ -52,19 +46,9 @@ and decoder.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n libvpx-%{version}
|
|
|
|
%setup -q -n libvpx-%{version}
|
|
|
|
%patch0 -p1 -b .leave-fs-on
|
|
|
|
%patch -P0 -p1 -b .fortify-source-on
|
|
|
|
%patch1 -p1 -b .p1
|
|
|
|
|
|
|
|
%patch2 -p1 -b .p2
|
|
|
|
|
|
|
|
%patch3 -p1 -b .0003
|
|
|
|
|
|
|
|
%patch4 -p1 -b .0004
|
|
|
|
|
|
|
|
%patch5 -p1 -b .0005
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# This package fails to build with LTO due to undefined symbols. LTO
|
|
|
|
|
|
|
|
# was disabled in OpenSuSE as well, but with no real explanation why
|
|
|
|
|
|
|
|
# beyond the undefined symbols. It really shold be investigated further.
|
|
|
|
|
|
|
|
# Disable LTO
|
|
|
|
|
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch %{ix86}
|
|
|
|
%ifarch %{ix86}
|
|
|
|
%global vpxtarget x86-linux-gcc
|
|
|
|
%global vpxtarget x86-linux-gcc
|
|
|
@ -72,9 +56,6 @@ and decoder.
|
|
|
|
%ifarch x86_64
|
|
|
|
%ifarch x86_64
|
|
|
|
%global vpxtarget x86_64-linux-gcc
|
|
|
|
%global vpxtarget x86_64-linux-gcc
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%ifarch armv7hl
|
|
|
|
|
|
|
|
%global vpxtarget armv7-linux-gcc
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%ifarch aarch64
|
|
|
|
%ifarch aarch64
|
|
|
|
%global vpxtarget arm64-linux-gcc
|
|
|
|
%global vpxtarget arm64-linux-gcc
|
|
|
|
%else
|
|
|
|
%else
|
|
|
@ -82,7 +63,6 @@ and decoder.
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# History: The configure script used to reject the shared flag on the generic target.
|
|
|
|
# History: The configure script used to reject the shared flag on the generic target.
|
|
|
|
# This meant that we needed to fall back to manual shared lib creation.
|
|
|
|
# This meant that we needed to fall back to manual shared lib creation.
|
|
|
@ -98,39 +78,21 @@ and decoder.
|
|
|
|
|
|
|
|
|
|
|
|
%set_build_flags
|
|
|
|
%set_build_flags
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch armv7hl
|
|
|
|
|
|
|
|
CROSS=armv7hl-redhat-linux-gnueabi- CHOST=armv7hl-redhat-linux-gnueabi-hardfloat ./configure \
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
./configure --target=%{vpxtarget} \
|
|
|
|
./configure --target=%{vpxtarget} \
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch %{arm}
|
|
|
|
|
|
|
|
--disable-neon --disable-neon_asm \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
--enable-pic --disable-install-srcs \
|
|
|
|
--enable-pic --disable-install-srcs \
|
|
|
|
--enable-vp9-decoder --enable-vp9-encoder \
|
|
|
|
--enable-vp9-decoder --enable-vp9-encoder \
|
|
|
|
--enable-experimental \
|
|
|
|
--enable-experimental \
|
|
|
|
--enable-vp9-highbitdepth \
|
|
|
|
--enable-vp9-highbitdepth \
|
|
|
|
|
|
|
|
--enable-debug \
|
|
|
|
%if ! %{generic_target}
|
|
|
|
%if ! %{generic_target}
|
|
|
|
--enable-shared \
|
|
|
|
--enable-shared \
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
|
|
|
|
--as=nasm \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
--enable-install-srcs \
|
|
|
|
--enable-install-srcs \
|
|
|
|
--prefix=%{_prefix} --libdir=%{_libdir} --size-limit=16384x16384
|
|
|
|
--prefix=%{_prefix} --libdir=%{_libdir} --size-limit=16384x16384
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch armv7hl
|
|
|
|
|
|
|
|
#hackety hack hack
|
|
|
|
|
|
|
|
sed -i "s|AR=armv7hl-redhat-linux-gnueabi-ar|AR=ar|g" libs-%{vpxtarget}.mk
|
|
|
|
|
|
|
|
sed -i "s|AR=armv7hl-redhat-linux-gnueabi-ar|AR=ar|g" examples-%{vpxtarget}.mk
|
|
|
|
|
|
|
|
sed -i "s|AR=armv7hl-redhat-linux-gnueabi-ar|AR=ar|g" docs-%{vpxtarget}.mk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sed -i "s|AS=armv7hl-redhat-linux-gnueabi-as|AS=as|g" libs-%{vpxtarget}.mk
|
|
|
|
|
|
|
|
sed -i "s|AS=armv7hl-redhat-linux-gnueabi-as|AS=as|g" examples-%{vpxtarget}.mk
|
|
|
|
|
|
|
|
sed -i "s|AS=armv7hl-redhat-linux-gnueabi-as|AS=as|g" docs-%{vpxtarget}.mk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sed -i "s|NM=armv7hl-redhat-linux-gnueabi-nm|NM=nm|g" libs-%{vpxtarget}.mk
|
|
|
|
|
|
|
|
sed -i "s|NM=armv7hl-redhat-linux-gnueabi-nm|NM=nm|g" examples-%{vpxtarget}.mk
|
|
|
|
|
|
|
|
sed -i "s|NM=armv7hl-redhat-linux-gnueabi-nm|NM=nm|g" docs-%{vpxtarget}.mk
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%make_build verbose=true
|
|
|
|
%make_build verbose=true
|
|
|
|
|
|
|
|
|
|
|
|
# Manual shared library creation
|
|
|
|
# Manual shared library creation
|
|
|
@ -159,10 +121,6 @@ rm -rf tmp
|
|
|
|
# mv libNOTvpx_g.a libvpx_g.a
|
|
|
|
# mv libNOTvpx_g.a libvpx_g.a
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%ifarch armv7hl
|
|
|
|
|
|
|
|
export CROSS=armv7hl-redhat-linux-gnueabi-
|
|
|
|
|
|
|
|
export CHOST=armv7hl-redhat-linux-gnueabi-hardfloat
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
make DIST_DIR=%{buildroot}%{_prefix} dist
|
|
|
|
make DIST_DIR=%{buildroot}%{_prefix} dist
|
|
|
|
|
|
|
|
|
|
|
|
# Simpler to label the dir as %%doc.
|
|
|
|
# Simpler to label the dir as %%doc.
|
|
|
@ -197,9 +155,6 @@ chmod 755 .%{_bindir}/*
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
# Get the vpx_config.h file
|
|
|
|
# Get the vpx_config.h file
|
|
|
|
%ifarch %{arm}
|
|
|
|
|
|
|
|
cp -a vpx_config.h %{buildroot}%{_includedir}/vpx/vpx_config-arm.h
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
# Does ppc64le need its own?
|
|
|
|
# Does ppc64le need its own?
|
|
|
|
%ifarch ppc64 ppc64le
|
|
|
|
%ifarch ppc64 ppc64le
|
|
|
|
cp -a vpx_config.h %{buildroot}%{_includedir}/vpx/vpx_config-ppc64.h
|
|
|
|
cp -a vpx_config.h %{buildroot}%{_includedir}/vpx/vpx_config-ppc64.h
|
|
|
@ -214,7 +169,6 @@ cp -a vpx_config.h %{buildroot}%{_includedir}/vpx/vpx_config-%{_arch}.h
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
cp %{SOURCE1} %{buildroot}%{_includedir}/vpx/vpx_config.h
|
|
|
|
cp %{SOURCE1} %{buildroot}%{_includedir}/vpx/vpx_config.h
|
|
|
|
# for timestamp sync
|
|
|
|
# for timestamp sync
|
|
|
|
touch -r AUTHORS %{buildroot}%{_includedir}/vpx/vpx_config.h
|
|
|
|
touch -r AUTHORS %{buildroot}%{_includedir}/vpx/vpx_config.h
|
|
|
@ -248,25 +202,74 @@ rm -rf %{buildroot}%{_prefix}/src
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Fri Jul 5 2024 Wim Taymans <wtaymans@redhat.com> - 1.9.0-8
|
|
|
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.14.1-1
|
|
|
|
- Add patch to fix integer overflows.
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
- Disable LTO to fix build
|
|
|
|
|
|
|
|
- Resolves: RHEL-58144
|
|
|
|
* Fri Jul 05 2024 Wim Taymans <wtaymans@redhat.com> - 1.14.1-1
|
|
|
|
|
|
|
|
- Upgrade to 1.14.1
|
|
|
|
|
|
|
|
Resolves: RHEL-40644
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 05 2024 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 1.14.0-3
|
|
|
|
|
|
|
|
- Replace yasm with nasm
|
|
|
|
|
|
|
|
Resolves: RHEL-45221
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.14.0-2
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 06 2024 Pete Walter <pwalter@fedoraproject.org> - 1.14.0-1
|
|
|
|
|
|
|
|
- Update to 1.14.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Oct 1 2023 Tom Callaway <spot@fedoraproject.org> - 1.13.1-1
|
|
|
|
|
|
|
|
- update to 1.13.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 29 2023 Neal Gompa <ngompa@fedoraproject.org> - 1.13.0-5
|
|
|
|
|
|
|
|
- Minor spec cleanups
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Sep 28 2023 Boudhayan Bhattacharya <bbhtt.zn0i8@slmail.me> - 1.13.0-4
|
|
|
|
|
|
|
|
- Patch for CVE-2023-5217
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 5 2023 Wim Taymans <wtaymans@redhat.com> - 1.9.0-7
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.0-3
|
|
|
|
- Add patch for CVE-2023-5217
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
- Resolves: RHEL-10631
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 3 2023 Wim Taymans <wtaymans@redhat.com> - 1.9.0-6
|
|
|
|
* Wed Feb 15 2023 Pete Walter <pwalter@fedoraproject.org> - 1.13.0-2
|
|
|
|
- Add patch for CVE-2023-44488
|
|
|
|
- Fix whitespace in spec file
|
|
|
|
- Resolves: RHEL-11636
|
|
|
|
- Drop 32 bit arm support
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.9.0-5
|
|
|
|
* Wed Feb 15 2023 Tom Callaway <spot@fedoraproject.org> - 1.13.0-1
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- update to 1.13.0
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.9.0-4
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-3
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Dec 6 2022 Florian Weimer <fweimer@redhat.com> - 1.12.0-2
|
|
|
|
|
|
|
|
- Backport upstream commit to improve C99 compatibility
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 17 2022 Pete Walter <pwalter@fedoraproject.org> - 1.12.0-1
|
|
|
|
|
|
|
|
- Update to 1.12.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 27 2022 Tom Callaway <spot@fedoraproject.org> - 1.11.0-1
|
|
|
|
|
|
|
|
- update to 1.11.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 29 2021 Tom Callaway <spot@fedoraproject.org> - 1.10.0-1
|
|
|
|
|
|
|
|
- update to 1.10.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 8 2021 Tom Callaway <spot@fedoraproject.org> - 1.10.0-0.1.rc1
|
|
|
|
|
|
|
|
- update to 1.10.0-rc1
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-3
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
@ -506,3 +509,4 @@ rm -rf %{buildroot}%{_prefix}/src
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 19 2010 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.0-1
|
|
|
|
* Wed May 19 2010 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.0-1
|
|
|
|
- Initial package for Fedora
|
|
|
|
- Initial package for Fedora
|
|
|
|
|
|
|
|
|
|
|
|