From d1f802a32a2347a05fe64f1ab8a7a0547265a4ca Mon Sep 17 00:00:00 2001 From: Iñaki Úcar Date: Sep 01 2020 20:07:37 +0000 Subject: https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager --- diff --git a/eigen3.spec b/eigen3.spec index 6c84d21..d509bf0 100644 --- a/eigen3.spec +++ b/eigen3.spec @@ -4,9 +4,15 @@ # debuginfo package for the empty main package. %global debug_package %{nil} +%if 0%{?fedora} >= 33 +%global blaslib flexiblas +%else +%global blaslib openblas +%endif + Name: eigen3 Version: 3.3.7 -Release: 6%{?dist} +Release: 7%{?dist} Summary: A lightweight C++ template library for vector and matrix math License: MPLv2.0 and LGPLv2+ and BSD @@ -22,7 +28,7 @@ Patch1: eigen_pkgconfig.patch # Fix the include paths in the new Eigen3Config.cmake file Patch2: eigen3-3.3.1-fixcmake.patch -BuildRequires: atlas-devel +BuildRequires: %{blaslib}-devel BuildRequires: fftw-devel BuildRequires: glew-devel BuildRequires: gmp-devel @@ -74,7 +80,7 @@ Developer documentation for Eigen. %build %cmake \ -DINCLUDE_INSTALL_DIR=%{_includedir}/eigen3 \ - -DBLAS_LIBRARIES="cblas" \ + -DBLAS_LIBRARIES="-l%{blaslib}" \ -DSUPERLU_INCLUDES=%{_includedir}/SuperLU \ -DSCOTCH_INCLUDES=%{_includedir} -DSCOTCH_LIBRARIES="scotch" \ -DMETIS_INCLUDES=%{_includedir} -DMETIS_LIBRARIES="metis" \ @@ -110,6 +116,9 @@ rm -f %{_vpath_builddir}/doc/html/unsupported/installdox %changelog +* Tue Sep 01 2020 Iñaki Úcar - 3.3.7-7 +- https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager + * Sat Aug 29 2020 Fabio Valentini - 3.3.7-6 - Adapt to CMake macros changes in fedora 33+.