summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ImageMagick7.spec6
1 files changed, 6 insertions, 0 deletions
diff --git a/ImageMagick7.spec b/ImageMagick7.spec
index 310b009..23c9aae 100644
--- a/ImageMagick7.spec
+++ b/ImageMagick7.spec
@@ -121,12 +121,18 @@ BuildRequires: pkgconfig(libwebp)
BuildRequires: jbigkit-devel
%endif
%if %{with_jp2}
+%if 0%{?rhel} == 7
+# See https://github.com/libvips/libvips/issues/764
+# vips pulls poppler (libopenjpeg) and IM (libopenjp2)
+BuildRequires: openjpeg2-static-devel
+%else
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
BuildRequires: pkgconfig(libopenjp2)
%else
BuildRequires: openjpeg2-devel >= 2.1.0
%endif
%endif
+%endif
%if %{with_gvc}
BuildRequires: graphviz-devel >= 2.9.0
%endif