%bcond_with check Name: svt-av1-psy Version: 2.2.1.B Release: %autorelease Summary: SVT-AV1 with perceptual enhancements optimal AV1 encoding License: LicenseRef-BSD-3-Clause-Clear-WITH-AdditionRef-AOMPL-1.0 AND MIT AND ISC AND LicenseRef-Fedora-Public-Domain 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 # Main library: BSD-3-Clause-Clear and AOMPL # https://gitlab.com/fedora/legal/fedora-license-data/-/issues/383 # Source/Lib/Common/Codec/EbHmCode.c: BSD # Source/App/EncApp/EbAppString.* # Source/Lib/Common/Codec/EbString.* # Source/Lib/Encoder/Codec/vector.*: MIT # Source/Lib/Common/ASM_SSE2/x86inc.asm: ISC # Source/App/DecApp/EbMD5Utility.*: PublicDomain BuildRequires: cmake BuildRequires: nasm BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: libdovi-devel BuildRequires: ninja-build #ninja-build is faster BuildRequires: cpuinfo-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 #TODO: investigate -DSVT_AV1_PGO=ON , -DENABLE_AVX512=ON REPRODUCIBLE_BUILDS EXCLUDE_HASH # DSVT_AV1_PGO - implication of it seem quite complicated # DENABLE_AVX512 is wrongly defined %cmake -DLIBDOVI_FOUND=1 \ -DSVT_AV1_LTO=ON \ -DUSE_EXTERNAL_CPUINFO=ON \ -G Ninja %cmake_build %install %cmake_install %if %{with check} %check %ctest %endif %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