Name: cnmatrix Version: 0.0 Release: %autorelease Summary: C interface to a few matrix backends License: MIT URL: https://github.com/cntools/cnmatrix Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # Build as a shared library Patch: cnmatrix-shared.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: blas-devel BuildRequires: eigen3-devel BuildRequires: lapack-devel BuildRequires: openblas-devel %description This library provides a consistent C interface to a few matrix backends. The interface itself is a little more sane than raw lapack / blas calls, and is meant to be reasonably performant for medium to large matrices. It should also be cross platform and work reasonably well on embedded low latency systems; as it consistently tries to avoid heap allocations. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: blas-devel Requires: eigen3-devel Requires: lapack-devel Requires: openblas-devel %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -p1 %build %cmake -DENABLE_TESTS=ON %cmake_build %install %cmake_install %check %ctest %files %license LICENSE %doc README.md %{_libdir}/lib%{name}.so.0* %files devel %{_includedir}/%{name} %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc %changelog %autochangelog