%global srcname types-toml Name: python-%{srcname} Version: 0.10.8.20240310 Release: 1%{?dist} Summary: Typing stubs for toml License: Apache-2.0 URL: https://github.com/python/typeshed Source0: %pypi_source # This package is generated from typeshed and does not include the license file # Pull in the typeshed license from github, using the commit this version of types-toml was created from Source1: https://raw.githubusercontent.com/python/typeshed/f94bbfbcc4c3b2b289425ea793beda0822e702f8/LICENSE BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: This is a PEP 561 type stub package for the toml package. It can be used by type-checking tools like mypy, pyright, pytype, PyCharm, etc. to check code that uses toml.} %description %_description %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %_description %generate_buildrequires %pyproject_buildrequires %prep %autosetup -n %{srcname}-%{version} rm -rf types_toml.egg-info cp %{SOURCE1} . %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L toml-stubs %check %pyproject_check_import toml-stubs %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc CHANGELOG.md %changelog * Mon Jul 8 2024 David Shea - 0.10.8.20240310-1 - Initial package