#2 Build against FlexiBLAS (F34)
Closed 2 years ago by limb. Opened 2 years ago by iucar.
rpms/ iucar/igraph f34  into  f34

file modified
+26 -4
@@ -1,6 +1,12 @@ 

+ %if 0%{?fedora} >= 33 || 0%{?rhel} >= 9

+ %global blaslib flexiblas

+ %else

+ %global blaslib openblas

+ %endif

+ 

  Name:               igraph

  Version:            0.8.5

- Release:            2%{?dist}

+ Release:            3%{?dist}

  Summary:            Library for creating and manipulating graphs

  

  License:             GPLv2+
@@ -12,7 +18,11 @@ 

  BuildRequires:      gcc-c++

  BuildRequires:      libxml2-devel

  BuildRequires:      gmp-devel

- BuildRequires: make

+ BuildRequires:      %{blaslib}-devel

+ BuildRequires:      arpack-devel

+ BuildRequires:      glpk-devel

+ BuildRequires:      suitesparse-devel

+ BuildRequires:      make

  

  %description

  igraph wants to be an efficient platform for 
@@ -37,10 +47,17 @@ 

  

  sed -i -e 's|Cray1 = printf(emptyfmt) < 0 ? 0 : 4617762;|Cray1 = printf("%s", emptyfmt) < 0 ? 0 : 4617762;|' \

      src/f2c/arithchk.c

+ sed -i -e 's|-lblas|-l%{blaslib}|g' configure

+ sed -i -e 's|-llapack|-l%{blaslib}|g' configure

  

  %build

- %configure

- make %{?_smp_mflags}

+ %configure \

+     --enable-lto \

+     --with-external-blas \

+     --with-external-lapack \

+     --with-external-arpack \

+     --with-external-glpk

+  make %{?_smp_mflags}

  

  

  %install
@@ -69,6 +86,11 @@ 

  %doc %{_infodir}/igraph.info*

  

  %changelog

+ * Sun Apr 18 2021 Iñaki Úcar <iucar@fedoraproject.org> - 0.8.5-3

+ - https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager

+ - Enable LTO

+ - Use system arpack, glpk

+ 

  * Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-2

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

  

BTW, I think it makes sense to bring v0.9.2 to F34 too.

I agree, I merged your rawhide patch to f34 to do so.

Pull-Request has been closed by limb

2 years ago
Metadata