%global pkgvers 0 %global scdate0 20241118 %global schash0 fec537c473fc6400b2a68de931d67db5ad8bf143 %global branch0 develop %global source0 https://github.com/CastXML/pygccxml.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: pygccxml Version: 2.6.0 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Reader that reads the output from CastXML License: Boost BuildArch: noarch URL: https://github.com/CastXML/pygccxml BuildRequires: make git python3-devel python3-setuptools %description A specialized XML reader that reads the output from CastXML. It provides a simple framework to navigate C++ declarations, using Python classes. %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 # setuptools compat echo "import setuptools; setuptools.setup()" > setup.py %build %py3_build %install %py3_install %files %doc README.rst %license LICENSE.rst %{python3_sitelib}/* %changelog * Mon Apr 11 2022 Cristian Balint - update github release