## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## 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 modname autocommand %global projname %{modname} %bcond_without tests Name: python-%{projname} Version: 2.2.2 Release: %autorelease Summary: Generate argparse parsers from function signatures License: LGPL-3.0-or-later URL: https://github.com/Lucretiel/%{projname} Source0: %{pypi_source %{projname}} BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: python3-pytest %endif %global _description %{expand: A library to automatically generate and run simple argparse parsers from function signatures} %description %_description %package -n python3-%{projname} Summary: %{summary} %description -n python3-%{projname} %_description %prep %autosetup -n %{projname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{modname} %check %if %{with tests} %pytest %else %pyproject_check_import %endif %files -n python3-%{projname} -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Wed Aug 16 2023 John Doe - 2.2.2-1 - Uncommitted changes