Properly set BLA_VENDOR to FlexiBLAS for cmake >= 3.19
This commit is contained in:
parent
77cdf3f8e9
commit
7b7c336f32
12
eigen3.spec
12
eigen3.spec
@ -10,10 +10,13 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?fedora} >= 33
|
%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9
|
||||||
%global blaslib flexiblas
|
%global blaslib flexiblas
|
||||||
|
%global cmake_blas_flags -DBLA_VENDOR=FlexiBLAS
|
||||||
%else
|
%else
|
||||||
%global blaslib openblas
|
%global blaslib openblas
|
||||||
|
%global blasvar o
|
||||||
|
%global cmake_blas_flags -DBLAS_LIBRARIES=%{_libdir}/lib%{blaslib}%{blasvar}.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?rhel} >= 8
|
%if 0%{?rhel} >= 8
|
||||||
@ -24,7 +27,7 @@
|
|||||||
|
|
||||||
Name: eigen3
|
Name: eigen3
|
||||||
Version: 3.3.9
|
Version: 3.3.9
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: A lightweight C++ template library for vector and matrix math
|
Summary: A lightweight C++ template library for vector and matrix math
|
||||||
|
|
||||||
License: MPLv2.0 and LGPLv2+ and BSD and Minpack
|
License: MPLv2.0 and LGPLv2+ and BSD and Minpack
|
||||||
@ -89,7 +92,7 @@ Developer documentation for Eigen.
|
|||||||
%build
|
%build
|
||||||
%cmake \
|
%cmake \
|
||||||
-DINCLUDE_INSTALL_DIR=include/%{name} \
|
-DINCLUDE_INSTALL_DIR=include/%{name} \
|
||||||
-DBLAS_LIBRARIES="-l%{blaslib}" \
|
%{cmake_blas_flags} \
|
||||||
-DSUPERLU_INCLUDES=%{_includedir}/SuperLU \
|
-DSUPERLU_INCLUDES=%{_includedir}/SuperLU \
|
||||||
-DSCOTCH_INCLUDES=%{_includedir} -DSCOTCH_LIBRARIES="scotch" \
|
-DSCOTCH_INCLUDES=%{_includedir} -DSCOTCH_LIBRARIES="scotch" \
|
||||||
-DMETIS_INCLUDES=%{_includedir} -DMETIS_LIBRARIES="metis" \
|
-DMETIS_INCLUDES=%{_includedir} -DMETIS_LIBRARIES="metis" \
|
||||||
@ -124,6 +127,9 @@ rm -f %{_vpath_builddir}/doc/html/unsupported/installdox
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Jun 02 2021 Jiri Kucera <jkucera@redhat.com> - 3.3.9-5
|
||||||
- Add missing Minpack license
|
- Add missing Minpack license
|
||||||
Resolves: #1965214
|
Resolves: #1965214
|
||||||
|
Loading…
Reference in New Issue
Block a user