From 4e99ab821d0f9517936816d1e59e777bcfcf1c71 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 18 Mar 2019 10:05:30 +0100 Subject: use libwebp7 only on EL-7 --- gd.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gd.spec b/gd.spec index 63735e7..66bf99d 100644 --- a/gd.spec +++ b/gd.spec @@ -56,8 +56,11 @@ BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel %if %{with_webp} -# Ensure we use libwebp5 on EL -BuildRequires: libwebp-devel > 1 +%if 0%{?rhel} == 7 +BuildRequires: libwebp7-devel +%else +BuildRequires: libwebp-devel +%endif %endif %if %{with_liq} BuildRequires: libimagequant-devel @@ -235,7 +238,7 @@ grep %{version} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gdlib.pc %changelog * Mon Mar 18 2019 Remi Collet - 2.2.5-8 -- rebuild using libwebp7 +- rebuild using libwebp7 on EL-7 * Fri Sep 07 2018 mskalick@redhat.com - 2.2.5-7 - Add missing requires to libimagequent-devel -- cgit