From 6ef17d3406be005ff59839d46b7f07b1ac968c6e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 3 Apr 2019 12:24:27 +0200 Subject: use openjpeg2-static --- ImageMagick7.spec | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit