Name: svt-av1-psy Version: 2.2.1.B Release: %autorelease Summary: SVT-AV1 with perceptual enhancements optimal AV1 encoding License: BSD-3-Clause-Clear AND BSD-2-Clause URL: https://github.com/gianni-rosato/svt-av1-psy Source0: https://github.com/gianni-rosato/svt-av1-psy/archive/refs/tags/v2.2.1-B.tar.gz BuildRequires: cmake BuildRequires: nasm BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: libdovi-devel BuildRequires: ninja-build #ninja-build is faster BuildRequires: cpuinfo-devel BuildRequires: valgrind-devel Provides: bundled("fastfeat") Provides: bundled("safestringlib") Conflicts: svt-av1 # same install dir, same file names... just without the Decoder files... "Use Dav1d" they said # the psy version is just svt + extra speccial sauce to make it better %description NOTE: not compiled with hdr10plus SVT-AV1-PSY is the Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) with perceptual enhancements for psychovisually optimal AV1 encoding. applications that use %{name}. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} %description devel The %{name}-devel package contains header files for developing %prep %autosetup -n %{name}-2.2.1-B #mitigate name collisions mv third_party/safestringlib/LICENSE third_party/safestringlib/LICENSE.safestringlib mv third_party/fastfeat/LICENSE third_party/fastfeat/LICENSE.fastfeat mv Docs/README.md Docs/Docs.README.md #sanitize third_party rm -rf third_party/cpuinfo rm -rf third_party/aom* rm -rf third_party/googletest %build # # Not doing tests as it will cause build to time out and crash the build %cmake -DLIBDOVI_FOUND=1 \ -DSVT_AV1_LTO=ON \ -DUSE_EXTERNAL_CPUINFO=ON \ -DSVT_AV1_PGO=ON \ -DENABLE_AVX512=ON \ -DBUILD_DEC=OFF \ -G Ninja %cmake_build %install %cmake_install %check %ctest %files %license LICENSE.md PATENTS.md third_party/fastfeat/LICENSE.fastfeat third_party/safestringlib/LICENSE.safestringlib %doc CHANGELOG.md README.md Docs/ %{_libdir}/libSvtAv1Enc.so.2{,.*} %{_bindir}/SvtAv1EncApp %files devel %{_includedir}/svt-av1/ %{_libdir}/pkgconfig/*.pc %{_libdir}/libSvtAv1Enc.so %changelog %autochangelog