The package rpms/scalapack.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/scalapack.git/commit/?id=8cd54f1d....
Change:
-%ifarch %{openblas_arches}
Thanks.
Full change:
============
commit 8cd54f1dd1cf69dec4b9b2879b67466dd94d91d3
Author: Iñaki Úcar <iucar(a)fedoraproject.org>
Date: Fri Aug 28 19:31:46 2020 +0200
https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager
diff --git a/scalapack.spec b/scalapack.spec
index fa1be07..eb43f14 100644
--- a/scalapack.spec
+++ b/scalapack.spec
@@ -24,23 +24,25 @@
%bcond_without mpich
%endif
-%{!?openblas_arches:%global openblas_arches x86_64 %{ix86} armv7hl %{power64} aarch64}
-%ifarch %{openblas_arches}
-# matches openblas ExclusiveArch
-%bcond_without openblas
+%bcond_without optimized_blas
+
+%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9
+%global blaslib flexiblas
+%else
+%global blaslib openblas
%endif
Summary: A subset of LAPACK routines redesigned for heterogeneous computing
Name: scalapack
Version: 2.1.0
-Release: 6%{?dist}
+Release: 7%{?dist}
# This is freely distributable without any restrictions.
License: Public Domain
URL:
http://www.netlib.org/scalapack/
Source0:
https://github.com/Reference-ScaLAPACK/scalapack/archive/v%{version}.tar.gz
BuildRequires: cmake
-%if %{with openblas}
-BuildRequires: openblas-devel
+%if %{with optimized_blas}
+BuildRequires: %{blaslib}-devel
%else
BuildRequires: lapack-devel
BuildRequires: blas-devel
@@ -323,20 +325,18 @@ for i in %{?with_mpich:mpich} %{?with_openmpi:openmpi}
%{?with_openmpi3:openmpi3
done
%build
+%if %{with optimized_blas}
+%global blasflags -DLAPACK_LIBRARIES=-l%{blaslib} -DBLAS_LIBRARIES=-l%{blaslib}
+%else
+%global blasflags -DLAPACK_LIBRARIES=-llapack -DBLAS_LIBRARIES=-lblas
+%endif
+
%global build_fflags %(echo %build_fflags -fallow-argument-mismatch| sed
's|-Werror=format-security||g')
%global dobuild() \
cd %{name}-%{version}-$MPI_COMPILER_NAME ; \
-%if %{with openblas} \
-%cmake -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_STATIC_LIBS:BOOL=ON
-DMPI_BASE_DIR=%{_libdir}/$MPI_COMPILER_NAME -DLAPACK_LIBRARIES=-lopenblas
-DBLAS_LIBRARIES=-lopenblas ; \
-%else \
-%cmake -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_STATIC_LIBS:BOOL=ON
-DMPI_BASE_DIR=%{_libdir}/$MPI_COMPILER_NAME -DLAPACK_LIBRARIES=-llapack
-DBLAS_LIBRARIES=-lblas ; \
-%endif \
+%cmake -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_STATIC_LIBS:BOOL=ON
-DMPI_BASE_DIR=%{_libdir}/$MPI_COMPILER_NAME %{blasflags} ; \
%cmake_build ;\
-%if %{with openblas} \
-%cmake -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF
-DMPI_BASE_DIR=%{_libdir}/$MPI_COMPILER_NAME -DLAPACK_LIBRARIES=-lopenblas
-DBLAS_LIBRARIES=-lopenblas ; \
-%else \
-%cmake -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF
-DMPI_BASE_DIR=%{_libdir}/$MPI_COMPILER_NAME -DLAPACK_LIBRARIES=-llapack
-DBLAS_LIBRARIES=-lblas ; \
-%endif \
+%cmake -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF
-DMPI_BASE_DIR=%{_libdir}/$MPI_COMPILER_NAME %{blasflags} ; \
%cmake_build ;\
cd ..
@@ -438,6 +438,9 @@ sed -i 's|mpi|ompi|g'
%{buildroot}%{_libdir}/openmpi/lib/pkgconfig/scalapack.pc
%endif
%changelog
+* Fri Aug 28 2020 Iñaki Úcar <iucar(a)fedoraproject.org> - 2.1.0-7
+-
https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager
+
* Thu Aug 6 2020 Tom Callaway <spot(a)fedoraproject.org> - 2.1.0-6
- use new cmake macros