Iñaki Úcar 2020-07-25 16:27:02 +02:00
parent 6a38f2a556
commit 3ea9017031

View File

@ -4,7 +4,7 @@
Name: SuperLU Name: SuperLU
Version: 5.2.1 Version: 5.2.1
Release: 11%{?dist} Release: 12%{?dist}
Summary: Subroutines to solve sparse linear systems Summary: Subroutines to solve sparse linear systems
License: BSD and GPLv2+ License: BSD and GPLv2+
URL: https://portal.nersc.gov/project/sparse/superlu/ URL: https://portal.nersc.gov/project/sparse/superlu/
@ -15,17 +15,21 @@ Patch1: %{genname}-removemc64.patch
# Patch soname (5 -> 5.2) of shared library # Patch soname (5 -> 5.2) of shared library
Patch2: %{name}-%{version}-set_soname.patch Patch2: %{name}-%{version}-set_soname.patch
%if 0%{?fedora} >= 33
BuildRequires: pkgconfig(flexiblas)
%else
%ifarch %{openblas_arches} %ifarch %{openblas_arches}
BuildRequires: openblas-devel, openblas-srpm-macros BuildRequires: openblas-devel, openblas-srpm-macros
%else %else
BuildRequires: blas-devel BuildRequires: blas-devel
%endif %endif
BuildRequires: atlas-devel, gcc BuildRequires: atlas-devel
%if 0%{?epel} %if 0%{?epel}
BuildRequires: epel-rpm-macros BuildRequires: epel-rpm-macros
%endif %endif
%endif
BuildRequires: cmake3 BuildRequires: cmake3
BuildRequires: gcc-gfortran BuildRequires: gcc, gcc-gfortran
BuildRequires: csh BuildRequires: csh
%description %description
@ -64,12 +68,14 @@ sed -i.bak '/NOOPTS/d' make.inc.in
sed -e 's|-O0|-O2|g' -i SRC/CMakeLists.txt sed -e 's|-O0|-O2|g' -i SRC/CMakeLists.txt
%build %build
mkdir -p build; pushd build
# Do not use bundled CBLAS code # Do not use bundled CBLAS code
%cmake3 -Denable_blaslib:BOOL=OFF -DCMAKE_BUILD_TYPE:STRING=Release .. %cmake3 -B build \
%make_build -Denable_blaslib:BOOL=OFF \
popd %if 0%{?fedora} >= 33
-DBLAS_LIBRARIES=-lflexiblas \
%endif
-DCMAKE_BUILD_TYPE:STRING=Release
%make_build -C build
# Compile Fortran example interface to use the C routines in SuperLU # Compile Fortran example interface to use the C routines in SuperLU
make -C FORTRAN make -C FORTRAN
@ -113,6 +119,9 @@ popd
%doc DOC %doc DOC
%changelog %changelog
* Sat Jul 25 2020 Iñaki Úcar <iucar@fedoraproject.org> - 5.2.1-12
- https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager
* Tue Jul 21 2020 Merlin Mathesius <mmathesi@redhat.com> - 5.2.1-11 * Tue Jul 21 2020 Merlin Mathesius <mmathesi@redhat.com> - 5.2.1-11
- Minor conditional fix for ELN - Minor conditional fix for ELN
- Stick to cmake in-source building - Stick to cmake in-source building