%global pkgvers 1 %global scdate0 20230424 %global schash0 ed894304a34ce28254779ea5215afe942a0d5b31 %global branch0 master %global source0 https://github.com/capnproto/pycapnp.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: pycapnp Version: 1.3.0 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Python module for pcapnp License: BSD URL: https://github.com/capnproto/pycapnp BuildRequires: cmake gcc-c++ git capnproto-devel python3-Cython BuildRequires: python3-devel python3-pkgconfig python3-setuptools zlib-devel %description Python module for pcapnp %prep %setup -T -c -n %{name} find %{_builddir} -name SPECPARTS -exec rm -rf {} + git clone --depth 1 -n -b %{branch0} %{source0} . git fetch --depth 1 origin %{schash0} git reset --hard %{schash0} git log --format=fuller %build %py3_build %install %py3_install %files %license LICENSE.md %doc README.md %{_bindir}/* %{python3_sitearch}/* %changelog * Fri Jul 02 2021 Cristian Balint - github upstream releases