From fcdfe22e87908838951189157c094b32af4a9892 Mon Sep 17 00:00:00 2001 From: Iñaki Úcar Date: Aug 16 2020 11:03:36 +0000 Subject: https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager --- diff --git a/psi4.spec b/psi4.spec index 8347c62..a9d0f25 100644 --- a/psi4.spec +++ b/psi4.spec @@ -1,7 +1,15 @@ +%if 0%{?fedora} >= 33 +%global blaslib flexiblas +%global blasvar %{nil} +%else +%global blaslib openblas +%global blasvar o +%endif + Name: psi4 Epoch: 1 Version: 1.3.2 -Release: 6%{?dist} +Release: 7%{?dist} Summary: An ab initio quantum chemistry package License: LGPLv3 and MIT URL: http://www.psicode.org/ @@ -25,7 +33,7 @@ BuildRequires: gsl-devel BuildRequires: hdf5-devel BuildRequires: zlib-devel -BuildRequires: openblas-devel +BuildRequires: %{blaslib}-devel BuildRequires: CheMPS2-devel BuildRequires: libint-devel >= 1.1.5-3 BuildRequires: libxc-devel @@ -102,7 +110,7 @@ export FC=gfortran %cmake \ -DENABLE_OPENMP=ON -DENABLE_MPI=OFF -DENABLE_XHOST=OFF \ - -DBLAS_LIBRARIES='-lopenblaso' -DLAPACK_LIBRARIES='-lopenblaso' -DENABLE_AUTO_LAPACK=OFF \ + -DBLAS_LIBRARIES='-l%{blaslib}%{blasvar}' -DLAPACK_LIBRARIES='-l%{blaslib}%{blasvar}' -DENABLE_AUTO_LAPACK=OFF \ -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ \ -DCUSTOM_C_FLAGS='%{optflags} -std=c11 -DNDEBUG' -DCUSTOM_CXX_FLAGS='%{optflags} -std=c++11 -DNDEBUG' \ -DCUSTOM_Fortran_FLAGS='-I%{_libdir}/gfortran/modules %{optflags} -DNDEBUG' \ @@ -147,6 +155,9 @@ ctest -L smoketests %{_libdir}/psi4/ %changelog +* Sun Aug 16 2020 Iñaki Úcar - 1:1.3.2-7 +- https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager + * Wed Aug 05 2020 Susi Lehtola - 1:1.3.2-6 - Adapt to new CMake scripts.