[packages/gsl] - added tests bcond

qboosh qboosh at pld-linux.org
Sun Jun 9 13:54:29 CEST 2024


commit 6188151d5a52ec4459783da4f44a4946f3aff216
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jun 9 13:04:02 2024 +0200

    - added tests bcond

 gsl.spec | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/gsl.spec b/gsl.spec
index 5398325..549c370 100644
--- a/gsl.spec
+++ b/gsl.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (multifit_nlinear test fails on x86)
+
 Summary:	The GNU Scientific Library for numerical analysis
 Summary(es.UTF-8):	Biblioteca científica del GNU
 Summary(pl.UTF-8):	GNU Scientific Library do analizy numerycznej
@@ -147,6 +151,10 @@ Narzędzia dla gsl.
 %{__make} -C doc info \
 	SPHINX_BUILD=sphinx-build-3
 
+%if %{with tests}
+%{__make} check
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gsl.git/commitdiff/6188151d5a52ec4459783da4f44a4946f3aff216



More information about the pld-cvs-commit mailing list