## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## 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 Name: python-verspec Version: 0.1.0 Release: %autorelease Summary: Flexible version handling BuildArch: noarch License: BSD URL: https://github.com/jimporter/verspec Source: %{pypi_source verspec} BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-pretend %description verspec is a Python library for handling software versions and specifiers, adapted from the packaging package. %package -n python3-verspec Summary: %{summary} %description -n python3-verspec verspec is a Python library for handling software versions and specifiers, adapted from the packaging package. %prep %autosetup -p1 -n verspec-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel #check #pytest %install %pyproject_install %pyproject_save_files verspec %files -n python3-verspec -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Tue May 13 2025 John Doe - 0.1.0-1 - Uncommitted changes ## END: Generated by rpmautospec