From 262b70710b715cc9a7416c3a53b90819722e8a80 Mon Sep 17 00:00:00 2001 From: Dominik 'Rathann' Mierzejewski Date: Tue, 17 Jul 2018 11:11:38 +0200 Subject: [PATCH] build and run demos in check section --- suitesparse.spec | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/suitesparse.spec b/suitesparse.spec index 0addf64..b787910 100644 --- a/suitesparse.spec +++ b/suitesparse.spec @@ -402,6 +402,17 @@ find */ -iname lesser.txt -o -iname license.txt -o -iname gpl.txt -o \ # hardlink duplicate documentation files hardlink -cv Docs/ Licenses/ +%check +TESTDIRS="AMD CAMD CCOLAMD CHOLMOD COLAMD KLU LDL SPQR RBio UMFPACK" +%if "%{?enable_csparse}" == "1" +TESTDIRS="$TESTDIRS CSparse" +%else +TESTDIRS="$TESTDIRS CXSparse" +%endif +for d in $TESTDIRS ; do + make -C $d/Demo CFLAGS="$RPM_OPT_FLAGS" LAPACK="" SPQR_CONFIG=-DHAVE_TBB TBB=-ltbb +done + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -426,6 +437,7 @@ hardlink -cv Docs/ Licenses/ - use openblas instead of atlas (#1506933) - enable parallel make for faster builds and drop duplicate -fPIC - drop non-standard -O3 and duplicate -fexceptions from default CFLAGS +- build and run demos in check section * Sat Jul 14 2018 Fedora Release Engineering - 4.4.6-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild