%global pkgvers 4 %global scdate0 20220725 %global schash0 ffafe821bae68637fe46e36bcfd2a01b97cdf6f2 %global branch0 master %global source0 https://github.com/chipsalliance/fasm.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: fasm Version: 0.0.2 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: FPGA Assembly (FASM) Parser and Generation library BuildArch: noarch License: ISC URL: https://github.com/chipsalliance/fasm BuildRequires: git python3-devel python3-setuptools python3-Cython Requires: textx-python3 %description FASM file format and provides parsing libraries and simple tooling for working with FASM files. %package python3 Summary: FPGA Assembly (FASM) Parser and Generation library %description python3 FPGA Assembly (FASM) Parser and Generation library %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 %doc README.md %license LICENSE %{_bindir}/* %{python3_sitearch}/* %changelog * Sat Feb 06 2021 Cristian Balint - github usptream releases