%global pkgvers 1 %global scdate0 20220927 %global schash0 82a0e75cf201ed4e9f9c2ec3e56e54b6ec93c11a %global branch0 master %global source0 https://github.com/wallento/wavedrompy.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: wavedrompy Version: 2.0.3 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: WaveDromPy converts WaveDrom JSON into SVG format BuildArch: noarch License: MIT URL: https://github.com/wallento/wavedrompy BuildRequires: git python3-devel python3-rpm-macros python3-setuptools BuildRequires: python3-setuptools_scm %if ! (0%{?rhel} == 9) BuildRequires: python3-matplotlib %endif %description The tool WaveDromPy directly converts WaveDrom compatible JSON files into SVG format. %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 %doc README.md %doc doc %license LICENSE %{_bindir}/* %{python3_sitelib}/* %changelog * Tue Apr 19 2022 Cristian Balint - git update releases