%global pkgvers 1 %global scdate0 20211102 %global schash0 35e800d81f28c632956c5a592e3cbe8085ecd430 %global branch0 master %global source0 https://github.com/google/libnop.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: libnop Version: 0 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Library for serializing and deserializing C++ data types License: BSD BuildArch: noarch URL: https://github.com/google/libnop BuildRequires: make git %global __cmake_in_source_build 1 %description A header-only library for serializing and deserializing C++ data types without external code generators or runtime support libraries. %package devel Summary: Development files for %{name} %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 ./include -type f`; do install -D -pm 644 $f %{buildroot}/usr/$f done %files devel %license LICENSE %doc README.md %{_includedir}/* %changelog * Fri Sep 25 2020 Cristian Balint - github update releases