From 0dcf8724966cd86561744be7c7e36cf0e3251052 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Fri, 17 Mar 2023 20:55:41 -0400 Subject: [PATCH] Do not build SVT-AV1 plugin for Fedora < 38 --- libheif.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libheif.spec b/libheif.spec index fada7b0..64270bd 100644 --- a/libheif.spec +++ b/libheif.spec @@ -24,6 +24,8 @@ BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libpng) %if ! (0%{?rhel} && 0%{?rhel} <= 9) BuildRequires: pkgconfig(rav1e) +%endif +%if ! ((0%{?rhel} && 0%{?rhel} <= 9) || (0%{?fedora} && 0%{?fedora} < 38)) BuildRequires: pkgconfig(SvtAv1Enc) %endif @@ -38,6 +40,8 @@ file format decoder and encoder. %dir %{_libdir}/%{name} %if ! (0%{?rhel} && 0%{?rhel} < 9) %{_libdir}/%{name}/%{name}-rav1e.so +%endif +%if ! ((0%{?rhel} && 0%{?rhel} <= 9) || (0%{?fedora} && 0%{?fedora} < 38)) %{_libdir}/%{name}/%{name}-svtenc.so %endif