%global pkgvers 0 %global scdate0 20240819 %global schash0 a966a40fa720856f55ea2e5724440b8379266a6a %global branch0 master %global source0 https://github.com/google/gin-config.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: gin-config Version: 0.1 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Lightweight configuration framework for Python License: Apache BuildArch: noarch URL: https://github.com/google/gin-config BuildRequires: git python3 python3-setuptools python3-rpm-macros %description Gin provides a lightweight configuration framework for Python, based on dependency injection. %package python3 Summary: %{summary} Provides: gin-config %description python3 Gin provides a lightweight configuration framework for Python, based on dependency injection. %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 %py3_build %install %py3_install %files python3 %license LICENSE %doc README.md %doc docs %{python3_sitelib}/* %changelog * Thu Apr 14 2022 Cristian Balint - git update releases