Accepting request 1219257 from science
OBS-URL: https://build.opensuse.org/request/show/1219257 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/superlu?expand=0&rev=33
This commit is contained in:
commit
5c0279d15f
@ -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>
|
||||
|
||||
|
28
superlu.spec
28
superlu.spec
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user