diff --git a/SVT-AV1.spec b/SVT-AV1.spec index cce1c79..e083288 100644 --- a/SVT-AV1.spec +++ b/SVT-AV1.spec @@ -30,6 +30,7 @@ BuildRequires: gcc-c++ >= 5.4.0 BuildRequires: help2man BuildRequires: pkg-config BuildRequires: yasm >= 1.2.0 +BuildRequires: cpuinfo-devel ExclusiveArch: aarch64 riscv64 x86_64 %description @@ -63,8 +64,23 @@ This package contains the header files for svt-av1. %prep %autosetup -p1 -n %name-v%version +#mitigate name collisions +mv third_party/safestringlib/LICENSE third_party/safestringlib/LICENSE.safestringlib +mv third_party/fastfeat/LICENSE third_party/fastfeat/LICENSE.fastfeat + +#sanitize third_party +rm -rf third_party/cpuinfo +rm -rf third_party/aom* +rm -rf third_party/googletest + + %build -%cmake -DNATIVE=OFF +%cmake \ + -DNATIVE=OFF \ + -DUSE_EXTERNAL_CPUINFO=ON \ + -DSVT_AV1_LTO=ON \ + -DENABLE_AVX512=ON \ + -DSVT_AV1_PGO=ON \ %cmake_build %install