From c4eb4636c2f19cc5c15c972528bc6df7168ab79f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 17 Mar 2021 11:43:16 +0100 Subject: improve condition usage --- gd.spec | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gd.spec b/gd.spec index 957caa4..832c51f 100644 --- a/gd.spec +++ b/gd.spec @@ -200,6 +200,21 @@ export CFLAGS="$CFLAGS -ffp-contract=off" %configure \ --with-tiff=%{_prefix} \ +%if %{with raqm} + --with-raqm \ +%else + --without-raqm \ +%endif +%if %{with liq} + --with-liq \ +%else + --without-liq \ +%endif +%if %{with webp} + --with-webp \ +%else + --without-webp \ +%endif %if %{with avif} --with-avif \ %else @@ -222,7 +237,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libgd.a %check # minor diff in size +%if %{with raqm} XFAIL_TESTS="gdimagestringft/gdimagestringft_bbox" +%endif %if 0%{?fedora} <= 28 && 0%{?rhel} <= 7 %ifarch %{ix86} # See https://github.com/libgd/libgd/issues/359 -- cgit