%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 %autochangelog