%global forgeurl https://github.com/DrTimothyAldenDavis/GraphBLAS Version: 8.2.0 %global tag v%{version} %forgemeta Name: suitesparse-graphblas Release: 1%{?dist} Summary: Graph algorithms in the language of linear algebra License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause URL: %forgeurl Source0: %{url}/archive/v%{version}/graphblas-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-gfortran # https://github.com/DrTimothyAldenDavis/GraphBLAS/issues/233 Provides: bundled(lz4) Provides: bundled(xxhash) Provides: bundled(zstd) %global _description %{expand: SuiteSparse:GraphBLAS is a complete implementation of the GraphBLAS standard, which defines a set of sparse matrix operations on an extended algebra of semirings using an almost unlimited variety of operators and types. When applied to sparse adjacency matrices, these algebraic operations are equivalent to computations on graphs. GraphBLAS provides a powerful and expressive framework for creating graph algorithms based on the elegant mathematics of sparse matrix operations on a semiring. SuiteSparse:GraphBLAS is used heavily in production. It appears as the underlying graph engine in the RedisGraph database by Redis, and as the built-in sparse matrix multiply in MATLAB R2021a, where C=A*B is now up to 30x faster than in prior versions of MATLAB (on my 20-core NVIDIA DGX Station). The development of this package is supported by Intel, NVIDIA (including the donation of the 20-core DGX Station), Redis, MIT Lincoln Lab, MathWorks, IBM, and Julia Computing.} %description %_description %package devel Summary: development header files Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %_description %prep %autosetup -n GraphBLAS-%{version}.branch rm -r rmm_wrap %build %cmake -DCOMPACT=OFF -DDEMO=ON -DLOCAL_INSTALL=OFF -DNFORTRAN=OFF \ -DNJIT=OFF -DNOPENMP=OFF -DNSTATIC=ON %cmake_build %install %cmake_install %check # Run some of the demos ls ls %{__cmake_builddir} ./%{__cmake_builddir}/context_demo ./%{__cmake_builddir}/gauss_demo ./%{__cmake_builddir}/openmp_demo ./%{__cmake_builddir}/openmp2_demo ./%{__cmake_builddir}/wathen_demo %files %license LICENSE %doc README.md %doc CITATION.bib %{_libdir}/libgraphblas.so.8* %files devel %{_includedir}/GraphBLAS.h %dir %{_libdir}/cmake/GraphBLAS %{_libdir}/cmake/GraphBLAS/*.cmake %{_libdir}/libgraphblas.so %{_libdir}/pkgconfig/GraphBLAS.pc %changelog * Sat Sep 09 2023 Benson Muite - 8.2.0-1 - Initial package