## 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 srcname pyregion %global upname pyregion Name: python-%{upname} Version: 2.3.0 Release: %autorelease Summary: ds9 region parser for Python License: MIT URL: https://github.com/astropy/pyregion Source: %{pypi_source %{srcname}} BuildRequires: python3-devel BuildRequires: gcc BuildRequires: tox %global _description %{expand: pyregion is a python astronomy package to parse ds9 region files. It also supports ciao region files.} %description %_description %package -n python3-%{upname} Summary: %{summary} %description -n python3-%{upname} %_description %prep %autosetup -n %{srcname}-%{version} -p1 # Add python 3.13 sed -i -e "s/310,311,312/310,311,312,313/" tox.ini # Drop this line, it causes the build to fail sed -i -e "s/{list_dependencies_command}/#{list_dependencies_command}/" tox.ini %generate_buildrequires %pyproject_buildrequires -e %{toxenv}-test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l pyregion %check %tox %files -n python3-%{upname} -f %{pyproject_files} %doc README.rst %changelog ## START: Generated by rpmautospec * Thu Feb 27 2025 John Doe - 2.3.0-1 - Uncommitted changes ## END: Generated by rpmautospec