%global pkgvers 0 %global scdate0 20231104 %global schash0 16e8662c34917be0065110bfcd9cc27d30f52fdf %global branch0 master %global source0 https://github.com/google/gemmlowp.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: gemmlowp Version: 0 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Low-precision GEMM library License: BSD BuildArch: noarch URL: https://github.com/google/gemmlowp BuildRequires: cmake gcc-c++ git %global __cmake_in_source_build 1 %description A small self-contained low-precision GEMM library %package devel Summary: Development files %description devel This package contains the development files for %{name}. %prep %setup -T -c -n %{name} git clone --depth 1 -n -b %{branch0} %{source0} . git fetch --depth 1 origin %{schash0} git reset --hard %{schash0} git log --format=fuller %build %install rm -rf %{buildroot} for f in `find -type f -name '*.h'`; do install -D -pm 644 $f %{buildroot}/%{_includedir}/%{name}/$f done %files devel %license LICENSE %doc doc README.md %{_includedir}/* %changelog * Fri Sep 25 2020 Cristian Balint - github update releases