Properly set BLA_VENDOR to FlexiBLAS for cmake >= 3.19

This commit is contained in:
Björn Esser 2021-07-13 20:42:28 +02:00
parent 77cdf3f8e9
commit 7b7c336f32
No known key found for this signature in database
GPG Key ID: F52E98007594C21D

View File

@ -10,10 +10,13 @@
%endif
%if 0%{?fedora} >= 33
%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9
%global blaslib flexiblas
%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
%if 0%{?rhel} >= 8
@ -24,7 +27,7 @@
Name: eigen3
Version: 3.3.9
Release: 5%{?dist}
Release: 6%{?dist}
Summary: A lightweight C++ template library for vector and matrix math
License: MPLv2.0 and LGPLv2+ and BSD and Minpack
@ -89,7 +92,7 @@ Developer documentation for Eigen.
%build
%cmake \
-DINCLUDE_INSTALL_DIR=include/%{name} \
-DBLAS_LIBRARIES="-l%{blaslib}" \
%{cmake_blas_flags} \
-DSUPERLU_INCLUDES=%{_includedir}/SuperLU \
-DSCOTCH_INCLUDES=%{_includedir} -DSCOTCH_LIBRARIES="scotch" \
-DMETIS_INCLUDES=%{_includedir} -DMETIS_LIBRARIES="metis" \
@ -124,6 +127,9 @@ rm -f %{_vpath_builddir}/doc/html/unsupported/installdox
%changelog
* Tue Jul 13 2021 Björn Esser <besser82@fedoraproject.org> - 3.3.9-6
- Properly set BLA_VENDOR to FlexiBLAS for cmake >= 3.19
* Wed Jun 02 2021 Jiri Kucera <jkucera@redhat.com> - 3.3.9-5
- Add missing Minpack license
Resolves: #1965214