diff --git a/libcint.spec b/libcint.spec index a35446c..7a8d2a8 100644 --- a/libcint.spec +++ b/libcint.spec @@ -1,16 +1,17 @@ -%if 0%{?fedora} >= 33 +%if 0%{?fedora} >= 33 || 0%{?rhel} >= 8 %global blaslib flexiblas -%global blasvar %{nil} +%global cmake_blas_flags -DBLA_VENDOR=FlexiBLAS %else %global blaslib openblas %global blasvar o +%global cmake_blas_flags -DBLAS_LIBRARIES=%{_libdir}/lib%{blaslib}%{blasvar}.so %endif %global soversion 4 Name: libcint Version: 4.4.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General Gaussian-type orbitals integrals for quantum chemistry License: BSD @@ -58,7 +59,7 @@ developing applications that use %{name}. %build export CFLAGS="%{optflags} -Wl,--as-needed" -%cmake -DENABLE_EXAMPLE=1 -DWITH_F12=1 -DWITH_COULOMB_ERF=1 -DWITH_RANGE_COULOMB=1 -DENABLE_TEST=1 -DQUICK_TEST=1 -DBLAS_LIBRARIES=%{_libdir}/lib%{blaslib}%{blasvar}.so -S . -B %{_host} +%cmake -DENABLE_EXAMPLE=1 -DWITH_F12=1 -DWITH_COULOMB_ERF=1 -DWITH_RANGE_COULOMB=1 -DENABLE_TEST=1 -DQUICK_TEST=1 %{cmake_blas_flags} -S . -B %{_host} %make_build -C %{_host} # Build documentation @@ -83,6 +84,9 @@ make -C %{_host} test ARGS=-V %{_libdir}/libcint.so %changelog +* Tue Jul 13 2021 Björn Esser - 4.4.2-2 +- Properly set BLA_VENDOR to FlexiBLAS for cmake >= 3.19 + * Mon Jul 12 2021 Susi Lehtola - 4.4.2-1 - Update to 4.4.2.