summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-03-18 10:07:25 +0100
committerRemi Collet <remi@remirepo.net>2019-03-18 10:07:25 +0100
commit50a7bb65231b2837801ffb737cd583f040c74813 (patch)
treed23393cdbc05484bce3336e8f67bd8217dc1b5f9
parentc233df74e67581be94f0b70da6d8f9ff1b303336 (diff)
use libwebp7 only on EL-7
-rw-r--r--ImageMagick6.spec9
1 files changed, 6 insertions, 3 deletions
diff --git a/ImageMagick6.spec b/ImageMagick6.spec
index 5133234..5757762 100644
--- a/ImageMagick6.spec
+++ b/ImageMagick6.spec
@@ -123,8 +123,11 @@ BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libraw) >= 0.14.8
%endif
%if %{with_webp}
-# Ensure we use libwebp7 on EL
-BuildRequires: pkgconfig(libwebp) > 1
+%if 0%{?rhel} == 7
+BuildRequires: libwebp7-devel%{?_isa}
+%else
+BuildRequires: libwebp-devel%{?_isa}
+%endif
%endif
%if %{with_jbig}
BuildRequires: jbigkit-devel
@@ -204,7 +207,7 @@ Requires: libjpeg-devel%{?_isa}
Requires: OpenEXR-devel%{?_isa}
Requires: lcms2-devel%{?_isa}
%if %{with_webp}
-%if 0%{?rhel}
+%if 0%{?rhel} == 7
Requires: libwebp7-devel%{?_isa}
%else
Requires: libwebp-devel%{?_isa}