1
0

- Clean up SPEC file, make rpmlint happy.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SocketIO?expand=0&rev=5
This commit is contained in:
Matej Cepl 2023-06-21 21:36:12 +00:00 committed by Git OBS Bridge
parent 3763eb85e7
commit 27c738c87e
2 changed files with 15 additions and 10 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 21 21:36:05 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Clean up SPEC file, make rpmlint happy.
-------------------------------------------------------------------
Wed Jun 21 19:56:26 UTC 2023 - Axel Braun <axel.braun@gmx.de>

View File

@ -16,25 +16,24 @@
#
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-Flask-SocketIO
Version: 5.3.4
Release: 0
License: MIT
Summary: SocketIO integration for Flask applications
URL: http://github.com/miguelgrinberg/Flask-SocketIO/
License: MIT
Group: Development/Languages/Python
URL: https://github.com/miguelgrinberg/Flask-SocketIO/
Source: https://files.pythonhosted.org/packages/source/F/Flask-SocketIO/Flask-SocketIO-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/miguelgrinberg/Flask-SocketIO/v%{version}/test_socketio.py
BuildRequires: %{python_module Flask >= 0.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module python-socketio >= 5.0.2}
BuildRequires: %{python_module redis}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
Requires: python-Flask >= 0.9
Requires: python-python-socketio >= 5.0.2
BuildArch: noarch
%python_subpackages
@ -43,13 +42,13 @@ Socket.IO integration for Flask applications.
%prep
%setup -q -n Flask-SocketIO-%{version}
cp %{S:1} .
cp %{SOURCE1} .
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@ -58,6 +57,7 @@ cp %{S:1} .
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/flask_socketio
%{python_sitelib}/Flask_SocketIO-%{version}*-info
%changelog