%global pkgvers 1 %global scdate0 20230619 %global schash0 f613631778b869e0403187c2d413e7e129f4264b %global branch0 master %global source0 https://github.com/westerndigitalcorporation/pyvcd.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: pyvcd Summary: Python Value Change Dump (VCD) files Version: 0.4.0 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} License: BSD BuildArch: noarch URL: https://github.com/westerndigitalcorporation/pyvcd BuildRequires: git python3-devel python3-setuptools python3-setuptools_scm %description The PyVCD package writes Value Change Dump (VCD) files as specified in IEEE 1364-2005. %package python3 Summary: %{summary} Provides: %{name} %description python3 The PyVCD package writes Value Change Dump (VCD) files as specified in IEEE 1364-2005. %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 python3 %doc README.rst %doc docs %license LICENSE.txt %{python3_sitelib}/* %changelog * Sun Dec 05 2021 Cristian Balint - github usptream releases