summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-03-17 11:43:16 +0100
committerRemi Collet <remi@remirepo.net>2021-03-17 11:43:16 +0100
commitc4eb4636c2f19cc5c15c972528bc6df7168ab79f (patch)
treea980ddb21efc566fa7ee67e8f23eff926db659c7
parent7f5322115f7e575839b59d7b414a7afde021b83c (diff)
improve condition usage
-rw-r--r--gd.spec17
1 files changed, 17 insertions, 0 deletions
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