| |
@@ -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: 1%{?dist}
|
| |
+ Release: 3%{?dist}
|
| |
Summary: Library for creating and manipulating graphs
|
| |
|
| |
License: GPLv2+
|
| |
@@ -12,6 +18,11 @@
|
| |
BuildRequires: gcc-c++
|
| |
BuildRequires: libxml2-devel
|
| |
BuildRequires: gmp-devel
|
| |
+ BuildRequires: %{blaslib}-devel
|
| |
+ BuildRequires: arpack-devel
|
| |
+ BuildRequires: glpk-devel
|
| |
+ BuildRequires: suitesparse-devel
|
| |
+ BuildRequires: make
|
| |
|
| |
%description
|
| |
igraph wants to be an efficient platform for
|
| |
@@ -36,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
|
| |
@@ -68,6 +86,14 @@
|
| |
%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
|
| |
+
|
| |
* Tue Dec 08 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.8.5-1
|
| |
- 0.8.5
|
| |
|
| |
Same as #1 for F33.