# Created by pyp2rpm-3.3.2 %global pypi_name selectors34 Name: python-%{pypi_name} Version: 1.2 Release: 2%{?dist} Summary: Backport of the selectors module from Python 3.4 License: Python Software Foundation License URL: https://github.com/berkerpeksag/selectors34 Source0: https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python2-six %description selectors34 *selectors34* is a backport of the selectors module from Python 3.4. The selectors module written by Charles-François Natali. This port is based on Victor Stinner's trollius/selectors.py port.Installation and Usage -To install *selectors34* via pip:: $ pip install selectors34For best compatibility for Python 3.4, import *selectors34* like:: try: import selectors except... %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} Requires: python2-six %description -n python2-%{pypi_name} selectors34 *selectors34* is a backport of the selectors module from Python 3.4. The selectors module written by Charles-François Natali. This port is based on Victor Stinner's trollius/selectors.py port.Installation and Usage -To install *selectors34* via pip:: $ pip install selectors34For best compatibility for Python 3.4, import *selectors34* like:: try: import selectors except... selectors34 *selectors34* is a backport of the selectors module from Python 3.4. The selectors module written by Charles-François Natali. This port is based on Victor Stinner's trollius/selectors.py port.Installation and Usage -To install *selectors34* via pip:: $ pip install selectors34For best compatibility for Python 3.4, import *selectors34* like:: try: import selectors except... %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py2_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 %check %{__python2} setup.py test %files -n python2-%{pypi_name} %doc README.rst %{python2_sitelib}/%{pypi_name}.py* %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Tue Nov 20 2018 Izhmash - 1.2-1 - Initial package.