From 4380f93bf13fb48af2220991eb3dc770d6a2a5dac6e97dd3a96402f836ad30e3 Mon Sep 17 00:00:00 2001 From: yoong jin Date: Fri, 17 Jan 2025 13:25:53 +0100 Subject: [PATCH] Update SVT-AV1.spec --- SVT-AV1.spec | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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