Dominique Leuenberger 2024-10-31 15:08:53 +00:00 committed by Git OBS Bridge
commit 5c0279d15f
2 changed files with 19 additions and 15 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 29 21:47:29 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Move manual installation of files from %check section to
%install where they really belong (boo#1232550).
-------------------------------------------------------------------
Wed Oct 23 12:11:46 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>

View File

@ -1,5 +1,5 @@
#
# spec file
# spec file for package superlu
#
# Copyright (c) 2024 SUSE LLC
#
@ -203,23 +203,12 @@ make %{?_smp_mflags}
#fix permissions
chmod 644 MATLAB/* EXAMPLE/*
%check
%if %{with hpc}
%{?hpc_setup}
module load openblas
%endif
%ctest
# remove all build examples
cd EXAMPLE
make clean
rm -rf *itersol* .gitignore
cd ..
mv EXAMPLE examples
cp FORTRAN/README README.fortran
cp -r EXAMPLE examples
cp MAKE_INC/make.linux examples/make.inc
sed -i -e 's&@superlu_home@&%p_prefix&' -e 's&@superlu_lib@&%p_libdir&' examples/make.inc
rm -f examples/.gitignore
cp FORTRAN/README README.fortran
%fdupes -s examples
%if %{with hpc}
@ -265,6 +254,15 @@ setenv %{hpc_PNAME %pname}_LIB %{hpc_libdir}
EOF
%endif
%check
%if %{with hpc}
%{?hpc_setup}
module load openblas
%endif
%ctest
# remove all build examples
rm -fr EXAMPLE
%if %{without hpc}
%post -n %libname -p /sbin/ldconfig
%postun -n %libname -p /sbin/ldconfig