summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}