%global pkgvers 0 %global scdate0 20251006 %global schash0 8c706f6a424e9f3907042ce55d8e9da5833c1a78 %global branch0 development %global source0 https://github.com/UCSBarchlab/PyRTL.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} %define with_doc 0 Name: pyrtl Version: 0.12 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: A collection of classes for pythonic register-transfer level License: Python BuildArch: noarch URL: https://ucsbarchlab.github.io/PyRTL BuildRequires: git make python3 python3-rpm-macros python3-setuptools BuildRequires: python3-pip python3-wheel python3-pytest python3-pyparsing BuildRequires: python3-hatch-vcs pyproject-rpm-macros %if %{with_doc} BuildRequires: graphviz python3-sphinx python3-sphinx-hoverxref python3-sphinx_rtd_theme BuildRequires: config(latexmk) tex(tex) tex(latex) tex(fncychap.sty) tex(wrapfig.sty) BuildRequires: tex(capt-of.sty) tex(framed.sty) tex(upquote.sty) tex(needspace.sty) BuildRequires: tex(tabulary.sty) tex(tgtermes.sty) %endif %description PyRTL provides a collection of classes for pythonic register-transfer level design, simulation, tracing, and testing suitable for teaching and research. %generate_buildrequires %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 %pyproject_wheel %if %{with_doc} pushd docs %if 0%{?fedora} make html make latexpdf %endif popd %endif %install %pyproject_install rm -rf %{buildroot}/%{python3_sitelib}/tests %check %if 0%{?fedora} || "%{_arch}" == "x86_64" export PYTHONPATH=%{buildroot}%{python3_sitelib} python3 -m pytest -vv tests || true %endif %files %doc README.md %license LICENSE.md %if %{with_doc} %if 0%{?fedora} %doc docs/_build/html %doc docs/_build/latex/pyrtl.pdf %else %doc docs %endif %endif %{python3_sitelib}/* %changelog * Fri Feb 21 2020 Cristian Balint - update github releases