%global commit 08e4bb339e34017a0835269d4a37c4ea04d15a69 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commitdate 20221409 Name: gemmlowp 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 Patch0: 001-cmakelist.patch 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") %package devel Summary: Small self-contained low-precision GEMM library Requires: %{name}%{?_isa} = %{version}-%{release} %description devel 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") %package docs Summary: Documentation for GEMM library. %description docs Documentation for GEMM library. Small self-contained low-precision GEMM library. %prep %setup -n %{name}-%{commit} %patch -P0 -p1 %build %cmake -S contrib %cmake_build %install %cmake_install %check %ctest --output-on-failure %files %license LICENSE %{_libdir}/libeight_bit_int_gemm.so.* %files devel %doc README.md %{_includedir}/gemmlowp/ %{_libdir}/libeight_bit_int_gemm.so %files docs %doc doc/ %exclude %{_libdir}/cmake/gemmlowp/gemmlowp-config-noconfig.cmake %exclude %{_libdir}/cmake/gemmlowp/gemmlowp-config.cmake %changelog * Mon Oct 23 2023 Cristian Delgado - 0~git20221409.08e4bb3-1 - Initial package