## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name py-solc-ast Name: python-solc-ast Version: 1.2.10 Release: %autorelease BuildArch: noarch Summary: A tool for exploring the solc abstract syntax tree License: MIT URL: https://github.com/iamdefinitelyahuman/%{pypi_name} VCS: git:%{url}.git Source0: %{pypi_source %{pypi_name}} Patch1: python-solc-ast-0001-Remove-all-shebangs.patch BuildRequires: python3-devel %description %{summary}. %package -n python3-solc-ast Summary: %{summary} %description -n python3-solc-ast %{summary}. %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l solcast %check %pyproject_check_import # FIXME Unfortunately tests requires 30+ mbytes data file #%%pytest %files -n python3-solc-ast -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Fri Jan 10 2025 Peter Lemenkov - 1.2.10-1 - Initial build ## END: Generated by rpmautospec