%global pypi_name contextlib2 Name: python-%{pypi_name} Version: 0.6.0 Release: 1%{?dist} Summary: contextlib2 is a backport of the standard library’s contextlib module to earlier Python versions. It also serves as a real world proving ground for possible future enhancements to the standard library version. License: GPL-compatible URL: https://github.com/jazzband/contextlib2 Source0: https://github.com/jazzband/contextlib2/%{pypi_name}-%{version}.post1.tar.gz BuildArch: noarch %description contextlib2 is a backport of the standard library’s contextlib module to earlier Python versions. It also serves as a real world proving ground for possible future enhancements to the standard library version. %package -n python2-%{pypi_name} Summary: %{summary} BuildRequires: python2-devel BuildRequires: python2-setuptools %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} contextlib2 is a backport of the standard library’s contextlib module to earlier Python versions. It also serves as a real world proving ground for possible future enhancements to the standard library version. %prep %autosetup -n %{pypi_name}-%{version}.post1 %build %py2_build %install %py2_install %files -n python2-%{pypi_name} %{python2_sitelib}/%{pypi_name}.py* %{python2_sitelib}/%{pypi_name}*.egg-info %changelog * Wed Mar 24 2021 Lei Wang - 0.6.0-1 - Initial package