From 520db7a71f1f7ecd64f303e30cc59e5a084caae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Sun, 10 Jul 2022 16:31:41 +0200 Subject: [PATCH] Add condition for rav1e for EPEL integration - Close: rhbz#2071940 --- libavif.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavif.spec b/libavif.spec index f4d8bbf..2cb5345 100644 --- a/libavif.spec +++ b/libavif.spec @@ -4,6 +4,9 @@ %ifarch x86_64 %bcond_without svt %endif +%if 0%{?rhel} +%bcond_with rav1e +%endif Name: libavif Version: 0.10.1 @@ -23,7 +26,7 @@ BuildRequires: pkgconfig(aom) BuildRequires: pkgconfig(dav1d) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libpng) -BuildRequires: pkgconfig(rav1e) +%{?with_rav1e:BuildRequires: pkgconfig(rav1e)} %{?with_svt:BuildRequires: pkgconfig(SvtAv1Enc)} BuildRequires: pkgconfig(zlib) @@ -34,7 +37,7 @@ File Format, as described here: https://aomediacodec.github.io/av1-avif/ %package devel -Summary: Development files for libavif +Summary: Development files for libavif~ Requires: %{name}%{?_isa} = %{version}-%{release} %description devel @@ -67,7 +70,7 @@ Avif-pixbuf-loader contains a plugin to load AVIF images in GTK+ applications. -DCMAKE_BUILD_TYPE=RelWithDebInfo \ %{?with_aom:-DAVIF_CODEC_AOM=1} \ -DAVIF_CODEC_DAV1D=1 \ - -DAVIF_CODEC_RAV1E=1 \ + %{?with_rav1e:-DAVIF_CODEC_RAV1E=1} \ %{?with_svt:-DAVIF_CODEC_SVT=1} \ -DAVIF_BUILD_APPS=1 \ -DAVIF_BUILD_GDK_PIXBUF=1