summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ImageMagick7.spec6
1 files changed, 5 insertions, 1 deletions
diff --git a/ImageMagick7.spec b/ImageMagick7.spec
index c5a2756..75575b5 100644
--- a/ImageMagick7.spec
+++ b/ImageMagick7.spec
@@ -260,7 +260,11 @@ for applications requiring this libraries.
%if %{with_libheif}
%package heic
Summary: HEIC plugin for ImageMagick
-BuildRequires: pkgconfig(libheif) >= 1.4.0
+BuildRequires: pkgconfig(libheif) >= 1.4.0
+%if 0%{?rhel} == 7
+# ensure we use our on EL-7
+Requires: libheif%{?_isa} >= 1.4.0
+%endif
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%if "%{name}" == "%{libname}"
Obsoletes: %{libname}7-heic <= %{version}-%{release}