|
|
@ -1,25 +1,23 @@
|
|
|
|
# Force out of source build
|
|
|
|
%global sover 3
|
|
|
|
%undefine __cmake_in_source_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global sover 2
|
|
|
|
|
|
|
|
# git describe
|
|
|
|
# git describe
|
|
|
|
%global aom_version v2.0.1
|
|
|
|
%global aom_version v3.1.1
|
|
|
|
|
|
|
|
|
|
|
|
# Use commit with updated changelog for correct versioning
|
|
|
|
# Use commit with updated changelog for correct versioning
|
|
|
|
%global commit b52ee6d44adaef8a08f6984390de050d64df9faa
|
|
|
|
%global commit 7fadc0e77130efb05f52979b0deaba9b6a1bba6d
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
%global snapshotdate 20201215
|
|
|
|
%global snapshotdate 20210613
|
|
|
|
# %%global prerelease 1
|
|
|
|
# %%global prerelease 1
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} >= 8
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%bcond_with vmaf
|
|
|
|
%ifarch x86_64
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_without vmaf
|
|
|
|
%bcond_without vmaf
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%bcond_without jpegxl
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: aom
|
|
|
|
Name: aom
|
|
|
|
Version: 2.0.1
|
|
|
|
Version: 3.1.1
|
|
|
|
Release: 5%{?prerelease:.%{snapshotdate}git%{shortcommit}}%{?dist}
|
|
|
|
Release: 1%{?prerelease:.%{snapshotdate}git%{shortcommit}}%{?dist}
|
|
|
|
Summary: Royalty-free next-generation video format
|
|
|
|
Summary: Royalty-free next-generation video format
|
|
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
@ -36,11 +34,13 @@ BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: yasm
|
|
|
|
BuildRequires: yasm
|
|
|
|
|
|
|
|
%if %{with jpegxl}
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(libjxl)
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(libhwy)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%if %{with vmaf}
|
|
|
|
%if %{with vmaf}
|
|
|
|
%ifarch x86_64
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(libvmaf)
|
|
|
|
BuildRequires: pkgconfig(libvmaf)
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Provides: av1 = %{version}-%{release}
|
|
|
|
Provides: av1 = %{version}-%{release}
|
|
|
|
Requires: libaom%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: libaom%{?_isa} = %{version}-%{release}
|
|
|
@ -78,8 +78,6 @@ video format.
|
|
|
|
%autosetup -p1 -c %{name}-%{commit}
|
|
|
|
%autosetup -p1 -c %{name}-%{commit}
|
|
|
|
# Set GIT revision in version
|
|
|
|
# Set GIT revision in version
|
|
|
|
sed -i 's@set(aom_version "")@set(aom_version "%{aom_version}")@' build/cmake/version.cmake
|
|
|
|
sed -i 's@set(aom_version "")@set(aom_version "%{aom_version}")@' build/cmake/version.cmake
|
|
|
|
# Fix VMAF detection
|
|
|
|
|
|
|
|
sed -i 's@libvmaf\.a @@' CMakeLists.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%ifarch %{arm}
|
|
|
|
%ifarch %{arm}
|
|
|
@ -93,18 +91,19 @@ sed -i 's@libvmaf\.a @@' CMakeLists.txt
|
|
|
|
-DENABLE_DOCS=1 \
|
|
|
|
-DENABLE_DOCS=1 \
|
|
|
|
-DENABLE_TESTS=0 \
|
|
|
|
-DENABLE_TESTS=0 \
|
|
|
|
-DCONFIG_ANALYZER=0 \
|
|
|
|
-DCONFIG_ANALYZER=0 \
|
|
|
|
-DCONFIG_SHARED=1 \
|
|
|
|
-DBUILD_SHARED_LIBS=1 \
|
|
|
|
|
|
|
|
%if %{with jpegxl}
|
|
|
|
|
|
|
|
-DCONFIG_TUNE_BUTTERAUGLI=1 \
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%if %{with vmaf}
|
|
|
|
%if %{with vmaf}
|
|
|
|
%ifarch x86_64
|
|
|
|
|
|
|
|
-DCONFIG_TUNE_VMAF=1 \
|
|
|
|
-DCONFIG_TUNE_VMAF=1 \
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%{nil}
|
|
|
|
%{nil}
|
|
|
|
%cmake3_build
|
|
|
|
%cmake3_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%cmake3_install
|
|
|
|
%cmake3_install
|
|
|
|
rm -rf %{buildroot}%{_libdir}/libaom.a
|
|
|
|
rm -rvf %{buildroot}%{_libdir}/libaom.a
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%doc AUTHORS CHANGELOG README.md
|
|
|
|
%doc AUTHORS CHANGELOG README.md
|
|
|
@ -123,6 +122,16 @@ rm -rf %{buildroot}%{_libdir}/libaom.a
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sun Jun 13 12:47:37 CEST 2021 Robert-André Mauchin <zebob.m@gmail.com> - 3.1.1-1
|
|
|
|
|
|
|
|
- Update to 3.1.1
|
|
|
|
|
|
|
|
- Close: rhbz#1954337
|
|
|
|
|
|
|
|
- Security fix for CVE-2021-30473
|
|
|
|
|
|
|
|
- Fix: rhbz#1961375
|
|
|
|
|
|
|
|
- Fix: rhbz#1961376
|
|
|
|
|
|
|
|
- Security fix for CVE-2021-30475
|
|
|
|
|
|
|
|
- Fix: rhbz#1968017
|
|
|
|
|
|
|
|
- Fix: rhbz#1968018
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 10 2021 Leigh Scott <leigh123linux@gmail.com> - 2.0.1-5
|
|
|
|
* Wed Mar 10 2021 Leigh Scott <leigh123linux@gmail.com> - 2.0.1-5
|
|
|
|
- Rebuild for new libvmaf version
|
|
|
|
- Rebuild for new libvmaf version
|
|
|
|
|
|
|
|
|
|
|
|