%global pkgvers 0 %global scdate0 20231204 %global schash0 f974c9de6874a1d44d53eb98bb9eb07d2a6a8168 %global branch0 master %global source0 https://github.com/cirosantilli/vcdvcd.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: vcdvcd Summary: Value Vhange Dump (VCD) parser library Version: 2.3.6 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} License: Perl BuildArch: noarch URL: https://github.com/cirosantilli/vcdvcd BuildRequires: git python3-devel python3-setuptools Requires: %{name}-python3 %description Python Verilog value change dump (VCD) parser library and the nifty vcdcat VCD command line pretty printer. %package python3 Summary: %{summary} %description python3 Python Verilog value change dump (VCD) parser library and the nifty vcdcat VCD command line pretty printer. %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 find . -type f -exec sed -i '/china/d' {} \; %py3_build %install %py3_install %files %doc README.adoc %license LICENCE.md %{_bindir}/* %files python3 %{python3_sitelib}/* %changelog * Sun Dec 05 2021 Cristian Balint - github upstream releases