# Created by pyp2rpm-3.3.2 %global pypi_name flask-socketio %global egg_name Flask_SocketIO Name: python-%{pypi_name} Version: 4.2.1 Release: 1%{?dist} Summary: Socket.IO integration for Flask applications License: MIT URL: http://github.com/miguelgrinberg/Flask-SocketIO/ # pypi source tarball does not contain tests #Source0: https://files.pythonhosted.org/packages/source/f/{pypi_name}/Flask-SocketIO-{version}.tar.gz Source0: https://github.com/miguelgrinberg/%{pypi_name}/archive/v%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(coverage) BuildRequires: python3dist(flask) >= 0.9 BuildRequires: python3dist(python-socketio) >= 4.3.0 BuildRequires: python3dist(setuptools) %description Flask-SocketIO --Socket.IO integration for Flask applications. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(flask) >= 0.9 Requires: python3dist(python-socketio) >= 4.3.0 %description -n python3-%{pypi_name} Flask-SocketIO --Socket.IO integration for Flask applications. %prep %autosetup -n Flask-SocketIO-%{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-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/flask_socketio %{python3_sitelib}/%{egg_name}-%{version}-py?.?.egg-info %changelog * Sun Dec 22 2019 Mukundan Ragavan - 4.2.1-1 - Initial package.