# Created by pyp2rpm-3.0.2 %global pypi_name sockjs-tornado Name: python-%{pypi_name} Version: 1.0.3 Release: 1%{?dist} Summary: SockJS python server implementation on top of Tornado framework License: MIT URL: http://github.com/mrjoes/sockjs-tornado/ Source0: https://pypi.python.org/packages/63/4e/986818006b7177cfe3f8ee67145748740e3f81c134d6430a2dcd04d2a40d/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python-setuptools BuildRequires: python2-devel BuildRequires: python3-setuptools BuildRequires: python3-devel %description SockJS-tornado is a Python server side counterpart of SockJS-client browser library running on top of Tornado framework. %package -n python2-%{pypi_name} Summary: SockJS python server implementation on top of Tornado framework %{?python_provide:%python_provide python2-%{pypi_name}} Requires: python-tornado >= 2.1.1 %description -n python2-%{pypi_name} SockJS-tornado is a Python server side counterpart of SockJS-client browser library running on top of Tornado framework. %package -n python3-%{pypi_name} Summary: SockJS python server implementation on top of Tornado framework %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3-tornado >= 2.1.1 %description -n python3-%{pypi_name} SockJS-tornado is a Python server side counterpart of SockJS-client browser library running on top of Tornado framework. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py2_build %py3_build %install # Must do the subpackages' install first because the scripts in /usr/bin are # overwritten with every setup.py install. %py3_install %py2_install %files -n python2-%{pypi_name} %doc README.rst LICENSE %{python2_sitelib}/sockjs %{python2_sitelib}/sockjs_tornado-%{version}-py?.?.egg-info %{python2_sitelib}/sockjs_tornado-%{version}-py?.?-nspkg.pth %files -n python3-%{pypi_name} %doc README.rst LICENSE %{python3_sitelib}/sockjs %{python3_sitelib}/sockjs_tornado-%{version}-py?.?.egg-info %{python3_sitelib}/sockjs_tornado-%{version}-py?.?-nspkg.pth %changelog * Tue May 10 2016 "Ben Rosser " - 1.0.3-1 - Initial package.