| |
@@ -1,6 +1,12 @@
|
| |
+ %if 0%{?fedora} >= 33 || 0%{?rhel} >= 9
|
| |
+ %global blaslib flexiblas
|
| |
+ %else
|
| |
+ %global blaslib openblas
|
| |
+ %endif
|
| |
+
|
| |
Name: igraph
|
| |
Version: 0.9.2
|
| |
- Release: 1%{?dist}
|
| |
+ Release: 2%{?dist}
|
| |
Summary: Library for creating and manipulating graphs
|
| |
|
| |
License: GPLv2+
|
| |
@@ -11,9 +17,10 @@
|
| |
BuildRequires: gcc-c++
|
| |
BuildRequires: libxml2-devel
|
| |
BuildRequires: gmp-devel
|
| |
- BuildRequires: openblas-devel
|
| |
+ BuildRequires: %{blaslib}-devel
|
| |
BuildRequires: arpack-devel
|
| |
BuildRequires: glpk-devel
|
| |
+ BuildRequires: suitesparse-devel
|
| |
BuildRequires: cmake
|
| |
|
| |
%description
|
| |
@@ -38,13 +45,17 @@
|
| |
%setup -q
|
| |
|
| |
%build
|
| |
- %cmake -DIGRAPH_USE_INTERNAL_BLAS=0 \
|
| |
+ %cmake \
|
| |
+ -DIGRAPH_ENABLE_LTO=AUTO \
|
| |
+ -DIGRAPH_ENABLE_TLS=1 \
|
| |
+ -DIGRAPH_USE_INTERNAL_BLAS=0 \
|
| |
-DIGRAPH_USE_INTERNAL_LAPACK=0 \
|
| |
-DIGRAPH_USE_INTERNAL_ARPACK=0 \
|
| |
-DIGRAPH_USE_INTERNAL_GLPK=0 \
|
| |
- -DIGRAPH_USE_INTERNAL_CXSPARSE=1 \
|
| |
+ -DIGRAPH_USE_INTERNAL_CXSPARSE=0 \
|
| |
-DIGRAPH_USE_INTERNAL_GMP=0 \
|
| |
- -DBLA_VENDOR=OpenBLAS \
|
| |
+ -DBLAS_LIBRARIES=-l%{blaslib} \
|
| |
+ -DLAPACK_LIBRARIES=-l%{blaslib} \
|
| |
-DIGRAPH_GRAPHML_SUPPORT=1 \
|
| |
-DCMAKE_INSTALL_INCLUDEDIR=include/
|
| |
%cmake_build
|
| |
@@ -56,7 +67,7 @@
|
| |
find . -name '.arch-ids' | xargs rm -rf
|
| |
|
| |
%check
|
| |
- make check || :
|
| |
+ %ctest
|
| |
|
| |
|
| |
%files
|
| |
@@ -73,6 +84,11 @@
|
| |
%doc %{_mandir}/man3/igraph.3*
|
| |
|
| |
%changelog
|
| |
+ * Sun Apr 18 2021 Iñaki Úcar <iucar@fedoraproject.org> - 0.9.2-2
|
| |
+ - https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager
|
| |
+ - Enable LTO and TLS
|
| |
+ - Use system suitesparse
|
| |
+
|
| |
* Thu Apr 15 2021 Gwyn Ciesla <gwync@protonmail.com> - 0.9.2-1
|
| |
- 0.9.2
|
| |
|
| |
This PR should have been part of https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager, but somehow I missed this package.
This PR also enables LTO and thread-local storage (safer if any consumer uses igraph from threads), and switches to system CXSparse.