# Created by pyp2rpm-3.3.7 %global pypi_name pyupgrade %global pypi_version 2.29.0 Name: python-%{pypi_name} Version: %{pypi_version} Release: 1%{?dist} Summary: A tool to automatically upgrade syntax for newer versions License: MIT URL: https://github.com/asottile/pyupgrade Source0: %{pypi_name}-%{pypi_version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(tokenize-rt) >= 3.2 %description A tool to automatically upgrade syntax for newer versions %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(setuptools) Requires: python3dist(tokenize-rt) >= 3.2 %description -n python3-%{pypi_name} A tool to automatically upgrade syntax for newer versions %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}/pyupgrade %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info %changelog * Sun Oct 03 2021 Leigh Scott - 2.29.0-1 - Initial package.