%global pkgvers 0 %global scdate0 20230106 %global schash0 3577d3f180f56499bcf13e00bfdfa8181f203791 %global branch0 master %global source0 https://github.com/olofk/edalize.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: edalize Version: 0.4.1 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Library for interfacing EDA tools BuildArch: noarch License: GPLv3 URL: https://edalize.readthedocs.io Patch0: edalize-py36.patch BuildRequires: git python3-devel python3-setuptools %description Edalize is a library for interfacing EDA tools, primarily for FPGA development. %package python3 Summary: %{summary} Provides: edalize %description python3 Edalize is a library for interfacing EDA tools, primarily for FPGA development. %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 %if 0%{?rhel} == 8 %patch0 -p1 -b .py36~ %endif %build %py3_build %install %py3_install %files python3 %license LICENSE %doc README.rst %{_bindir}/* %{python3_sitelib}/* %changelog * Sun Dec 05 2021 Cristian Balint - github upstream releases