From c4463c2b2f47affb45ba3ee63ea76f5dada87498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20=C3=9Acar?= Date: Fri, 7 Aug 2020 17:40:28 +0200 Subject: [PATCH] https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager --- arpack.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arpack.spec b/arpack.spec index 2500943..2168d55 100644 --- a/arpack.spec +++ b/arpack.spec @@ -11,12 +11,16 @@ %endif %endif +%if 0%{?fedora} >= 33 +%bcond_without flexiblas +%endif + # We are linking FORTRAN symbols. Thus we cannot link --as-needed. %undefine _ld_as_needed Name: arpack Version: 3.7.0 -Release: 7%{dist} +Release: 8%{dist} Summary: Fortran 77 subroutines for solving large scale eigenvalue problems License: BSD @@ -29,11 +33,15 @@ Patch1: 239.patch BuildRequires: gcc-c++ BuildRequires: gcc-gfortran +%if %{with flexiblas} +BuildRequires: pkgconfig(flexiblas) +%else %if %{with atlas} BuildRequires: atlas-devel %else BuildRequires: openblas-devel %endif +%endif BuildRequires: libtool >= 2.4.2 Provides: arpack-ng = %{version}-%{release} Provides: arpack-ng%{?_isa} = %{version}-%{release} @@ -97,6 +105,9 @@ cp -pr src src64 %build +%if %{with flexiblas} +%global blaslib -lflexiblas +%else %if %{with atlas} %if 0%{?fedora} || 0%{?rhel} >= 7 %global blaslib -L%{_libdir}/atlas -ltatlas @@ -106,6 +117,7 @@ cp -pr src src64 %else %global blaslib -lopenblasp %endif +%endif pushd src %configure --enable-shared --enable-static \ --with-blas="%{blaslib}" \ @@ -183,6 +195,9 @@ popd %changelog +* Fri Aug 07 2020 Iñaki Úcar - 3.7.0-8 +- https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager + * Mon Jul 27 2020 Fedora Release Engineering - 3.7.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild