# Created by pyp2rpm-3.3.7 %global pypi_name tokenize-rt %global pypi_version 4.1.0 Name: python-%{pypi_name} Version: %{pypi_version} Release: 1%{?dist} Summary: A wrapper around the stdlib tokenize which roundtrips License: MIT URL: https://github.com/asottile/tokenize-rt Source0: %url/archive/v%{pypi_version}/%{pypi_name}-%{pypi_version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description The stdlib tokenize module does not properly roundtrip. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(setuptools) %description -n python3-%{pypi_name} The stdlib tokenize module does not properly roundtrip. %prep %autosetup -n %{pypi_name}-%{pypi_version} %build %py3_build %install %py3_install #check #{__python3} setup.py test %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{_bindir}/tokenize-rt %{python3_sitelib}/__pycache__/* %{python3_sitelib}/tokenize_rt.py %{python3_sitelib}/tokenize_rt-%{pypi_version}-py%{python3_version}.egg-info %changelog * Sun Oct 03 2021 Leigh Scott - 4.1.0-1 - Initial package.