# Created by pyp2rpm-3.3.2 %global pypi_name python-socketio %global srcname socketio Name: python-%{srcname} Version: 4.4.0 Release: 1%{?dist} Summary: Socket.IO server License: MIT URL: http://github.com/miguelgrinberg/python-socketio/ # pypi source tarball does not contain tests #Source0: https://files.pythonhosted.org/packages/source/p/{pypi_name}/{pypi_name}-{version}.tar.gz Source0: https://github.com/miguelgrinberg/%{name}/archive/v%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(aiohttp) >= 3.4 BuildRequires: python3dist(mock) BuildRequires: python3dist(python-engineio) >= 3.9.0 BuildRequires: python3dist(requests) >= 2.21.0 BuildRequires: python3dist(setuptools) BuildRequires: python3dist(six) >= 1.9.0 BuildRequires: python3dist(websocket-client) >= 0.54.0 BuildRequires: python3dist(websockets) >= 7.0 %description Python implementation of the Socket.IO realtime client and server. %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} Requires: python3dist(aiohttp) >= 3.4 Requires: python3dist(python-engineio) >= 3.9.0 Requires: python3dist(requests) >= 2.21.0 Requires: python3dist(six) >= 1.9.0 Requires: python3dist(websocket-client) >= 0.54.0 Requires: python3dist(websockets) >= 7.0 %description -n python3-%{srcname} Python implementation of the Socket.IO realtime client and server. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %check %{__python3} setup.py test %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/socketio %{python3_sitelib}/python_socketio-%{version}-py?.?.egg-info %changelog * Sun Dec 22 2019 Mukundan Ragavan - 4.4.0-1 - Initial package.