# Created by pyp2rpm-3.3.2 %global pypi_name mypy-extensions Name: python-%{pypi_name} Version: 0.4.3 Release: 1%{?dist} Summary: Experimental type system extensions for programs checked with the mypy typechecker License: MIT License URL: https://github.com/python/mypy_extensions Source0: https://files.pythonhosted.org/packages/source/m/%{pypi_name}/mypy_extensions-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2dist(setuptools) BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description Mypy Extensions The "mypy_extensions" module defines experimental extensions to the standard "typing" module that are supported by the mypy typechecker. %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} Requires: python2dist(typing) >= 3.5.3 %description -n python2-%{pypi_name} Mypy Extensions The "mypy_extensions" module defines experimental extensions to the standard "typing" module that are supported by the mypy typechecker. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(typing) >= 3.5.3 %description -n python3-%{pypi_name} Mypy Extensions The "mypy_extensions" module defines experimental extensions to the standard "typing" module that are supported by the mypy typechecker. %prep %autosetup -n mypy_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 %files -n python2-%{pypi_name} %license LICENSE %doc README.md %{python2_sitelib}/mypy_extensions.py* %{python2_sitelib}/mypy_extensions-%{version}-py?.?.egg-info %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/__pycache__/* %{python3_sitelib}/mypy_extensions.py %{python3_sitelib}/mypy_extensions-%{version}-py?.?.egg-info %changelog * Sat Mar 07 2020 mockbuilder - 0.4.3-1 - Initial package.