public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/svt-av1] epel9-next: Update to 2.3.0
@ 2026-07-20 16:12
0 siblings, 0 replies; only message in thread
From: @ 2026-07-20 16:12 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/svt-av1
Branch : epel9-next
Commit : 4ac10903f7d755c12b978e2d458c4fc92de82120
Author : Robert-André Mauchin <zebob.m@gmail.com>
Date : 2025-02-08T16:29:11+01:00
Stats : +59/-25 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/svt-av1/c/4ac10903f7d755c12b978e2d458c4fc92de82120?branch=epel9-next
Log:
Update to 2.3.0
gstreamer1-svt-av1 subpackage should not be built anymore as it is
now directly maintained by the GStreamer project since 1.24.0.
Contributions by @solomoncyj :
- Remove extra third parties
- Properly add Provides and licenses files for remaining third parties
- Enable LTO and PGO explicitly
- Use Ninja tto build
Close: rhbz#2294259, rhbz#2332382
---
diff --git a/sources b/sources
index c2bbce4..9e6d048 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (SVT-AV1-v2.1.0.tar.bz2) = e0eeb48950455dba5c8f2ba26d38e66b94a77a1042cbf256431e6d0c5c4b312f11f74ee554063daec22b2f2e2a9342a0d36a70974aa3389783f8d54e0d8801fc
+SHA512 (SVT-AV1-v2.3.0.tar.bz2) = 943fb21ef1d9fb3bc3b6ce2c0180c4ce109be76c1a6d703b39eba8b94322fdc99b2f0c101cc6cd839e0c9bfea57dd161c1f10958c84fff10392767b6e1118b85
diff --git a/svt-av1.spec b/svt-av1.spec
index 7caff85..9ae1c73 100644
--- a/svt-av1.spec
+++ b/svt-av1.spec
@@ -1,5 +1,12 @@
+# See rhbz#2332382: gstreamer1-svt-av1 subpackage should not be built anymore
+# as it is now directly maintained by the GStreamer project since 1.24.0.
%bcond gst_plugin %[0%{?rhel}]
+# cpuinfo is only available for %%{x86_64} %%{arm64} on Fedora
+%ifarch %{x86_64} %{arm64}
+%bcond unbundled_cpuinfo 1
+%endif
+
%global _description %{expand:
The Scalable Video Technology for AV1 Encoder (SVT-AV1 Encoder) is an
AV1-compliant encoder library core. The SVT-AV1 development is a
@@ -7,7 +14,7 @@ work-in-progress targeting performance levels applicable to both VOD and Live
encoding / transcoding video applications.}
Name: svt-av1
-Version: 2.1.0
+Version: 2.3.0
Release: %autorelease
Summary: Scalable Video Technology for AV1 Encoder
@@ -19,17 +26,24 @@ Summary: Scalable Video Technology for AV1 Encoder
# Source/Lib/Encoder/Codec/vector.*: MIT
# Source/Lib/Common/ASM_SSE2/x86inc.asm: ISC
# Source/App/DecApp/EbMD5Utility.*: PublicDomain
-License: LicenseRef-BSD-3-Clause-Clear-WITH-AdditionRef-AOMPL-1.0 AND MIT AND ISC AND LicenseRef-Fedora-Public-Domain
+# third_party/cpuinfo : BSD-2-Clause
+# third_party/fastfeat : BSD-3-Clause
+# third_party/safestringlib : MIT
+License: LicenseRef-BSD-3-Clause-Clear-WITH-AdditionRef-AOMPL-1.0 AND MIT AND ISC AND LicenseRef-Fedora-Public-Domain AND BSD-2-Clause
URL: https://gitlab.com/AOMediaCodec/SVT-AV1
-Source0: %url/-/archive/v%{version}/SVT-AV1-v%{version}.tar.bz2
+Source: %url/-/archive/v%{version}/SVT-AV1-v%{version}.tar.bz2
-BuildRequires: cmake
-BuildRequires: gcc
-BuildRequires: gcc-c++
+BuildRequires: cmake >= 3.16
+BuildRequires: gcc >= 5.4.0
+BuildRequires: gcc-c++ >= 5.4.0
BuildRequires: help2man
-BuildRequires: meson
-BuildRequires: nasm
+BuildRequires: nasm >= 2.14
+BuildRequires: ninja-build
+%if %{with unbundled_cpuinfo}
+BuildRequires: pkgconfig(libcpuinfo)
+%endif
%if %{with gst_plugin}
+BuildRequires: meson
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-base-1.0)
BuildRequires: pkgconfig(gstreamer-video-1.0)
@@ -45,6 +59,12 @@ Summary: SVT-AV1 libraries
Obsoletes: gstreamer1-%{name} < %{?epoch:%{epoch}:}%{version}-%{release}
%endif
+%if %{without unbundled_cpuinfo}
+Provides: bundled(cpuinfo) = 0^20201129gita7e1076-1
+%endif
+Provides: bundled(fastfeat) = 0^20191113git391d5e9-1
+Provides: bundled(safestringlib) = 1.0.0-1
+
%description libs %_description
This package contains SVT-AV1 libraries.
@@ -78,6 +98,19 @@ This package provides %{name}-based GStreamer plug-in.
%prep
%autosetup -p1 -n SVT-AV1-v%{version}
+# Mitigate name collisions
+mv third_party/cpuinfo/LICENSE LICENSE.cpuinfo
+mv third_party/fastfeat/LICENSE LICENSE.fastfeat
+mv third_party/safestringlib/LICENSE LICENSE.safestringlib
+
+# Sanitize third_party
+# cpuinfo is only available for %%{x86_64} %%{arm64} on Fedora
+%if %{with unbundled_cpuinfo}
+rm -rfv third_party/cpuinfo
+%endif
+rm -rfv third_party/aom*
+rm -rfv third_party/googletest
+
%if %{with gst_plugin}
# Patch build gstreamer plugin
sed -e "s|install: true,|install: true, include_directories : [ include_directories('../Source/API') ], link_args : '-lSvtAv1Enc',|" \
@@ -86,8 +119,15 @@ sed -e "s|install: true,|install: true, include_directories : [ include_director
%build
-%cmake \
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
+%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+%if %{with unbundled_cpuinfo}
+ -DUSE_EXTERNAL_CPUINFO=ON \
+%else
+ -DUSE_EXTERNAL_CPUINFO=OFF \
+%endif
+ -DSVT_AV1_LTO=ON \
+ -DSVT_AV1_PGO=ON \
+ -G Ninja
%cmake_build
%if %{with gst_plugin}
@@ -101,12 +141,11 @@ popd
%install
%cmake_install
-rm -f %{buildroot}%{_libdir}/*.{a,la}
+rm -rfv %{buildroot}%{_libdir}/*.{a,la}
-install -d -m0755 %{buildroot}/%{_mandir}/man1
+install -dm0755 %{buildroot}/%{_mandir}/man1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
-help2man -N --help-option=-help --version-string=%{version} %{buildroot}%{_bindir}/SvtAv1DecApp > %{buildroot}%{_mandir}/man1/SvtAv1DecApp.1
-help2man -N --help-option=-help --no-discard-stderr --version-string=%{version} %{buildroot}%{_bindir}/SvtAv1EncApp > %{buildroot}%{_mandir}/man1/SvtAv1EncApp.1
+help2man -N --help-option=--help --no-discard-stderr --version-string=%{version} %{buildroot}%{_bindir}/SvtAv1EncApp > %{buildroot}%{_mandir}/man1/SvtAv1EncApp.1
%if %{with gst_plugin}
pushd gstreamer-plugin
@@ -116,31 +155,26 @@ popd
%files
-%{_bindir}/SvtAv1DecApp
%{_bindir}/SvtAv1EncApp
-%{_mandir}/man1/SvtAv1DecApp.1*
%{_mandir}/man1/SvtAv1EncApp.1*
%files libs
-%license LICENSE.md PATENTS.md
+%license LICENSE.md PATENTS.md LICENSE.fastfeat LICENSE.safestringlib LICENSE.cpuinfo
%doc CHANGELOG.md CONTRIBUTING.md README.md
-%{_libdir}/libSvtAv1Dec.so.0*
%{_libdir}/libSvtAv1Enc.so.2*
%files devel
-%{_includedir}/%{name}
-%{_libdir}/libSvtAv1Dec.so
+%{_includedir}/svt-av1
%{_libdir}/libSvtAv1Enc.so
-%{_libdir}/pkgconfig/SvtAv1Dec.pc
%{_libdir}/pkgconfig/SvtAv1Enc.pc
%files devel-docs
-%license LICENSE.md PATENTS.md
+%license LICENSE.md PATENTS.md LICENSE.fastfeat LICENSE.safestringlib LICENSE.cpuinfo
%doc Docs
%if %{with gst_plugin}
-%files -n gstreamer1-%{name}
-%license LICENSE.md PATENTS.md
+%files -n gstreamer1-svt-av1
+%license LICENSE.md PATENTS.md LICENSE.fastfeat LICENSE.safestringlib LICENSE.cpuinfo
%{_libdir}/gstreamer-1.0/libgstsvtav1enc.so
%endif
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-20 16:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-20 16:12 [rpms/svt-av1] epel9-next: Update to 2.3.0
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox