%global git_date 20250213 %global git_hash 9a0d758e %global git_ver 2.3.0 ## Version is from CMakeLists.txt %global rel 1 %global src_name SVT-AV1-%{git_date}-%{git_hash}.tar.xz %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 work-in-progress targeting performance levels applicable to both VOD and Live encoding / transcoding video applications.} Name: svt-av1 Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: Scalable Video Technology for AV1 Encoder # Main library: BSD-2-Clause-Patent # Source/Lib/Common/Codec/EbHmCode.c: BSD # Source/App/EncApp/EbAppString.* # Source/Lib/Common/Codec/EbString.* # Source/Lib/Common/Codec/vector.*: MIT # Source/Lib/Common/ASM_SSE2/x86inc.asm: ISC # Source/App/DecApp/EbMD5Utility.*: PublicDomain License: BSD-2-Clause-Patent and BSD and MIT and ISC and Public Domain URL: https://gitlab.com/AOMediaCodec/SVT-AV1 Source0: %{url}/%{src_name} #Patch1: define.patch # x64inc: mark as noexec #Patch0: https://gitlab.com/1480c1/SVT-AV1/-/commit/8f9acb7a6215c49297f9cb6c574150e48d8f5b76.patch#/0001-mark-as-noexec.patch # 64Bits, 5th Generation Intel® Core™ processor only ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: meson BuildRequires: nasm BuildRequires: help2man ##BuildRequires: pkgconfig(gstreamer-1.0) ##BuildRequires: pkgconfig(gstreamer-base-1.0) ##BuildRequires: pkgconfig(gstreamer-video-1.0) BuildRequires: pkgconfig(libcpuinfo) Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description %_description %package libs Summary: SVT-AV1 libraries %description libs %_description This package contains SVT-AV1 libraries. %package devel Summary: Development files for SVT-AV1 Requires: %{name}-libs = %{version}-%{release} %description devel %_description. This package contains the development files for SVT-AV1. %prep %autosetup -p1 -n SVT-AV1 rm -frv third_party/aom* rm -frv third_party/cpuinfo rm -frv third_party/googletest %build %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_EXTERNAL_CPUINFO=ON -DSVT_AV1_LTO=ON -DSVT_AV1_PGO=ON -G Ninja %cmake_build %install %cmake_install rm -f %{buildroot}%{_libdir}/*.{a,la} install -d -m0755 %{buildroot}/%{_mandir}/man1 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir} help2man -N --help-option=-help --no-discard-stderr --version-string=%{version} %{buildroot}%{_bindir}/SvtAv1EncApp > %{buildroot}%{_mandir}/man1/SvtAv1EncApp.1 %files %{_bindir}/SvtAv1EncApp %{_mandir}/man1/SvtAv1EncApp.1* %files libs %license LICENSE.md PATENTS.md %doc Docs CHANGELOG.md CONTRIBUTING.md README.md STYLE.md %{_libdir}/libSvtAv1Enc.so.* %files devel %{_includedir}/%{name} %{_libdir}/libSvtAv1Enc.so %{_libdir}/pkgconfig/SvtAv1Enc.pc %changelog %autochangelog