build and run demos in check section

This commit is contained in:
Dominik 'Rathann' Mierzejewski 2018-07-17 11:11:38 +02:00
parent f45fce0fe0
commit 262b70710b

View File

@ -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 <releng@fedoraproject.org> - 4.4.6-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild