%global pkgvers 0 %global scdate0 20230202 %global schash0 1ffa6a3fc074909fbabae51260e272d25f135b60 %global branch0 main %global source0 https://github.com/ics-jku/wal.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: wal Version: 0.6.3 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Waveform Analysis Language License: BSD BuildArch: noarch URL: https://github.com/ics-jku/wal BuildRequires: git python3-devel python3-setuptools Requires: %{name}-python3 %global _binaries_in_noarch_packages_terminate_build 0 %description A Novel Waveform Analysis Language for Advanced Design Understanding and Debugging. %package python3 Summary: Python files for %{name} %description python3 WAL: A Novel Waveform Analysis Language for Advanced Design Understanding and Debugging. %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 sed -i 's|vcdvcd==2.1|vcdvcd|' setup.py %py3_build %install rm -rf %{buildroot} %py3_install rm -rf %{buildroot}%{python3_sitelib}/tests %files %license LICENSE %doc README.md %doc examples tests %{_bindir}/* %files python3 %{python3_sitelib}/* %changelog * Wed Dec 04 2019 Balint Cristian - github build releases