%global commit 08e4bb339e34017a0835269d4a37c4ea04d15a69 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commitdate 20221409 Name: libgemmlowp-devel Version: 0~git%{commitdate}.%{shortcommit} Release: 1%{?dist} Summary: Small self-contained low-precision GEMM library License: Apache-2.0 URL: https://github.com/google/gemmlowp Source0: %{url}/-/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires:gcc BuildRequires:gcc-c++ BuildRequires:cmake %description Small self-contained low-precision GEMM library, this is not a full linear algebra library, only a GEMM library, it only does general matrix multiplication("GEMM") %prep %setup %build %cmake -S contrib %cmake_build %install %cmake_install %check %ctest --output-on-failure %files %doc AUTHORS CONTRIBUTING CONTRIBUTORS README.md %doc doc/ %doc todo/ %{_includedir}/gemmlowp/ %{_libdir}/ %changelog * Mon Oct 23 2023 Cristian Delgado - 0~git20221409.08e4bb3-1 - Initial package