%global pypi_name typing %if 0%{?fedora} %global with_python3 1 %endif Name: python-%{pypi_name} Version: 3.5.2.2 Release: 1%{?dist} Summary: Type Hints for Python License: Python URL: https://docs.python.org/3.5/library/typing.html Source0: https://files.pythonhosted.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python3-devel BuildRequires: python3-setuptools %description Typing Type Hints for PythonThis is a backport of the standard library typing module to Python versions older than 3.5.Typing defines a standard notation for Python function and variable type annotations. The notation can be used for documenting code in a concise, standard format, and it has been designed to also be used by static and runtime type checkers, static analyzers, IDEs and other %package -n python2-%{pypi_name} Summary: Type Hints for Python %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} Typing Type Hints for PythonThis is a backport of the standard library typing module to Python versions older than 3.5.Typing defines a standard notation for Python function and variable type annotations. The notation can be used for documenting code in a concise, standard format, and it has been designed to also be used by static and runtime type checkers, static analyzers, IDEs and other %if 0%{?with_python3} %package -n python3-%{pypi_name} Summary: Type Hints for Python %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} Typing Type Hints for PythonThis is a backport of the standard library typing module to Python versions older than 3.5.Typing defines a standard notation for Python function and variable type annotations. The notation can be used for documenting code in a concise, standard format, and it has been designed to also be used by static and runtime type checkers, static analyzers, IDEs and other %endif %prep %autosetup -n %{pypi_name}-%{version} %build %py2_build %if 0%{?with_python3} %py3_build %endif %install %if 0%{?with_python3} %py3_install %endif %py2_install %files -n python2-%{pypi_name} %license LICENSE %doc README.rst %{python2_sitelib}/%{pypi_name}.py* %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %if 0%{?with_python3} %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %endif %changelog * Fri Oct 21 2016 chandankumar - 3.5.2-1 - Initial package.