From 8c3cc7eb71f48f6cf646b05ec522c792c29ade6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Tue, 13 Sep 2022 20:21:33 +0100 Subject: [PATCH] add support to el8 where lpr-1 doesn't exist --- ImageMagick.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ImageMagick.spec b/ImageMagick.spec index d02349d..a7a3080 100644 --- a/ImageMagick.spec +++ b/ImageMagick.spec @@ -41,7 +41,9 @@ BuildRequires: jbigkit-devel BuildRequires: pkgconfig(libopenjp2) >= 2.1.0 BuildRequires: pkgconfig(libcgraph) >= 2.9.0 BuildRequires: pkgconfig(raqm) +%if 0%{?fedora} || 0%{?rhel} > 8 BuildRequires: pkgconfig(lqr-1) +%endif BuildRequires: pkgconfig(libraw) >= 0.14.8 BuildRequires: pkgconfig(libzstd) BuildRequires: autoconf automake gcc gcc-c++ @@ -190,13 +192,12 @@ export CFLAGS="%{optflags} -DIMPNG_SETJMP_IS_THREAD_SAFE" --with-jbig \ --with-openjp2 \ --with-raw \ +%if 0%{?fedora} || 0%{?rhel} > 8 --with-lqr \ +%endif --with-gvc \ --with-raqm -# shoud we enable hdri ? -# --enable-hdri - # Do *NOT* use %%{?_smp_mflags}, this causes PerlMagick to be silently misbuild make