# Created by pyp2rpm-3.3.2 %global pypi_name typing-extensions Name: python-%{pypi_name} Version: 3.7.4.1 Release: 1%{?dist} Summary: Backported and Experimental Type Hints for Python 3 License: PSF URL: https://github.com/python/typing/blob/master/typing_extensions/README.rst Source0: https://files.pythonhosted.org/packages/source/t/%{pypi_name}/typing_extensions-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2dist(setuptools) BuildRequires: python2dist(typing) >= 3.7.4 BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(typing) >= 3.7.4 %description Typing Extensions -- Backported and Experimental Type Hints for PythonThe typing module was added to the standard library in Python 3.5 on a provisional basis and will no longer be provisional in Python 3.7. However, this means users of Python 3.5 - 3.6 who are unable to upgrade will not be able to take advantage of new types added to the typing module, such as typing.Text or... %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} Requires: python2dist(typing) >= 3.7.4 %description -n python2-%{pypi_name} Typing Extensions -- Backported and Experimental Type Hints for PythonThe typing module was added to the standard library in Python 3.5 on a provisional basis and will no longer be provisional in Python 3.7. However, this means users of Python 3.5 - 3.6 who are unable to upgrade will not be able to take advantage of new types added to the typing module, such as typing.Text or... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(typing) >= 3.7.4 %description -n python3-%{pypi_name} Typing Extensions -- Backported and Experimental Type Hints for PythonThe typing module was added to the standard library in Python 3.5 on a provisional basis and will no longer be provisional in Python 3.7. However, this means users of Python 3.5 - 3.6 who are unable to upgrade will not be able to take advantage of new types added to the typing module, such as typing.Text or... %prep %autosetup -n typing_extensions-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py2_build %py3_build %install # Must do the default python version install last because # the scripts in /usr/bin are overwritten with every setup.py install. %py2_install %py3_install %check %{__python2} setup.py test %{__python3} setup.py test %files -n python2-%{pypi_name} %license LICENSE %doc README.rst %{python2_sitelib}/typing_extensions.py* %{python2_sitelib}/typing_extensions-%{version}-py?.?.egg-info %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/__pycache__/* %{python3_sitelib}/typing_extensions.py %{python3_sitelib}/typing_extensions-%{version}-py?.?.egg-info %changelog * Sat Mar 07 2020 mockbuilder - 3.7.4.1-1 - Initial package.