## 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 donfig Name: python-%{srcname} Version: 0.8.1.post1 Release: %autorelease Summary: Python package for configuring a Python package # Uncertain breakdown # https://github.com/pytroll/donfig/issues/118 License: MIT AND BSD-3-Clause URL: https://github.com/pytroll/donfig Source: %pypi_source %{srcname} Patch: 0001-Allow-newer-versioneer.patch BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: Donfig is a python library meant to make configuration easier for other Python packages. Donfig can be configured programmatically, by environment variables, or from YAML files in standard locations.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{_description} %prep %autosetup -n %{srcname}-%{version} -p1 %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{srcname} %check %{pytest} %files -n python3-%{srcname} -f %{pyproject_files} %doc README.rst %changelog ## START: Generated by rpmautospec * Sun Jan 19 2025 John Doe - 0.8.1.post1-1 - Uncommitted changes ## END: Generated by rpmautospec