From 029ee2ab7d10df92d1bc043c7887220bfbfb3616 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 20 Jun 2022 15:05:17 +0200 Subject: cleanups --- vips.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/vips.spec b/vips.spec index 37d740d..4fbdb32 100644 --- a/vips.spec +++ b/vips.spec @@ -54,6 +54,8 @@ %bcond_without im7 %bcond_with gm +%bcond_with tests + %if 0%{?fedora} >= 33 || 0%{?rhel} >= 9 %bcond_without jxl %else @@ -83,8 +85,6 @@ BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: gettext -# bc command used in test suite -BuildRequires: bc BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(fftw3) @@ -128,6 +128,10 @@ BuildRequires: libimagequant-devel %if %{with libcgif} BuildRequires: pkgconfig(cgif) %endif +%if %{with tests} +# bc command used in test suite +BuildRequires: bc +%endif # Not available as system library # and altered by vips upstream @@ -386,7 +390,7 @@ mv cplusplus/html cplusplus_html %find_lang vips%{vips_version_base} -%if %{with im7} +%if %{with tests} %check make check %endif @@ -462,6 +466,7 @@ make check %changelog * Mon Jun 20 2022 Remi Collet - 8.13.0~rc1-2 - fix EL-7 build using upstream fix + but see https://github.com/libvips/libvips/issues/2878#issuecomment-1160380569 * Mon Jun 20 2022 Remi Collet - 8.13.0~rc1-1 - update to 8.13.0rc1 -- cgit