!2 Upgrade package version to 3.8.0
From: @misaka00251 Reviewed-by: @weidongkl, @open-bot Signed-off-by: @open-bot
This commit is contained in:
commit
0f55f22238
Binary file not shown.
BIN
aom-b681eac.tar.gz
Normal file
BIN
aom-b681eac.tar.gz
Normal file
Binary file not shown.
52
aom.spec
52
aom.spec
@ -1,15 +1,23 @@
|
|||||||
%global sover 0
|
%global sover 3
|
||||||
# git describe
|
# git describe
|
||||||
%global aom_version 1.0.0-2227-gcfd59e96a
|
%global aom_version v3.8.0
|
||||||
|
|
||||||
|
# No libvmaf on openEuler
|
||||||
|
#ifarch x86_64
|
||||||
|
#bcond_without vmaf
|
||||||
|
#endif
|
||||||
|
|
||||||
|
# No highway & jpegxl on openEuler
|
||||||
|
#bcond_without jpegxl
|
||||||
|
|
||||||
# Use commit with updated changelog for correct versioning
|
# Use commit with updated changelog for correct versioning
|
||||||
%global commit 9666276accea505cd14cbcb9e3f7ff5033da9172
|
%global commit b681eac83963950afc7be55df56c22fa5210aaa2
|
||||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||||
%global snapshotdate 20190810
|
%global snapshotdate 20231130
|
||||||
%global prerelease 1
|
%global prerelease 1
|
||||||
|
|
||||||
Name: aom
|
Name: aom
|
||||||
Version: 1.0.0
|
Version: 3.8.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Royalty-free next-generation video format
|
Summary: Royalty-free next-generation video format
|
||||||
|
|
||||||
@ -18,8 +26,15 @@ URL: http://aomedia.org/
|
|||||||
Source0: https://aomedia.googlesource.com/%{name}/+archive/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz
|
Source0: https://aomedia.googlesource.com/%{name}/+archive/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc-c++ gcc cmake3
|
BuildRequires: gcc-c++ gcc cmake3
|
||||||
BuildRequires: doxygen git-core graphviz
|
BuildRequires: doxygen git-core
|
||||||
BuildRequires: perl-interpreter perl(Getopt::Long) perl-interpreter python3-devel yasm
|
BuildRequires: perl-interpreter perl(Getopt::Long) perl-interpreter python3-devel yasm
|
||||||
|
%if %{with jpegxl}
|
||||||
|
BuildRequires: pkgconfig(libjxl)
|
||||||
|
BuildRequires: pkgconfig(libhwy)
|
||||||
|
%endif
|
||||||
|
%if %{with vmaf}
|
||||||
|
BuildRequires: pkgconfig(libvmaf)
|
||||||
|
%endif
|
||||||
|
|
||||||
Provides: av1 = %{version}-%{release}
|
Provides: av1 = %{version}-%{release}
|
||||||
Requires: libaom%{?_isa} = %{version}-%{release}
|
Requires: libaom%{?_isa} = %{version}-%{release}
|
||||||
@ -57,24 +72,36 @@ 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
|
||||||
|
# Disable buggy PDF generation
|
||||||
|
sed -i "s@GENERATE_LATEX = YES@GENERATE_LATEX = NO@" libs.doxy_template
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%ifarch %{arm}
|
||||||
|
%global optflags %{__global_compiler_flags} -march=armv7-a -mfpu=neon -mtune=cortex-a8 -mabi=aapcs-linux -mfloat-abi=hard
|
||||||
|
%endif
|
||||||
|
|
||||||
mkdir _build && cd _build
|
mkdir _build && cd _build
|
||||||
%cmake3 ../ -DENABLE_CCACHE=1 \
|
%cmake3 ../ -DENABLE_CCACHE=1 \
|
||||||
-DCMAKE_SKIP_RPATH=1 \
|
-DCMAKE_SKIP_RPATH=1 \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
%ifarch %{arm}
|
|
||||||
-DAOM_NEON_INTRIN_FLAG=-mfpu=neon \
|
|
||||||
%endif
|
|
||||||
-DCONFIG_WEBM_IO=1 \
|
-DCONFIG_WEBM_IO=1 \
|
||||||
-DENABLE_DOCS=1 \
|
-DENABLE_DOCS=1 \
|
||||||
-DCONFIG_ANALYZER=0 \
|
-DCONFIG_ANALYZER=0 \
|
||||||
-DCONFIG_LOWBITDEPTH=1
|
-DENABLE_TESTS=0 \
|
||||||
|
-DBUILD_SHARED_LIBS=1 \
|
||||||
|
%if %{with jpegxl}
|
||||||
|
-DCONFIG_TUNE_BUTTERAUGLI=1 \
|
||||||
|
%endif
|
||||||
|
%if %{with vmaf}
|
||||||
|
-DCONFIG_TUNE_VMAF=1 \
|
||||||
|
%endif
|
||||||
|
%{nil}
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd _build
|
cd _build
|
||||||
%make_install
|
%make_install
|
||||||
|
rm -rvf %{buildroot}%{_libdir}/libaom.a
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS CHANGELOG README.md
|
%doc AUTHORS CHANGELOG README.md
|
||||||
@ -84,7 +111,7 @@ cd _build
|
|||||||
|
|
||||||
%files -n libaom
|
%files -n libaom
|
||||||
%license LICENSE PATENTS
|
%license LICENSE PATENTS
|
||||||
%{_libdir}/libaom.so.%{sover}
|
%{_libdir}/libaom.so.%{sover}*
|
||||||
|
|
||||||
%files -n libaom-devel
|
%files -n libaom-devel
|
||||||
%doc _build/docs/html/
|
%doc _build/docs/html/
|
||||||
@ -93,5 +120,8 @@ cd _build
|
|||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 20 2023 misaka00251 <liuxin@iscas.ac.cn> - 3.8.0-1
|
||||||
|
- Upgrade package version to 3.8.0
|
||||||
|
|
||||||
* Fri May 07 2021 weidong <weidong@uniontech.com> - 1.0.0-1
|
* Fri May 07 2021 weidong <weidong@uniontech.com> - 1.0.0-1
|
||||||
- Initial package.
|
- Initial package.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user