14
0
Tomáš Chvátal
2020-03-12 07:49:38 +00:00
committed by Git OBS Bridge
parent efa3eefa36
commit 559035008f
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 12 07:49:24 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build without python2
-------------------------------------------------------------------
Thu Feb 6 13:48:44 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -23,17 +23,16 @@
%else
%define ssl_match_hostname python-backports.ssl_match_hostname
%endif
%bcond_without python2
Name: python-websocket-client
Version: 0.57.0
Release: 0
Summary: WebSocket client implementation
License: LGPL-2.1-only
Group: Development/Languages/Python
URL: https://github.com/liris/websocket-client/releases
Source0: https://files.pythonhosted.org/packages/source/w/websocket_client/websocket_client-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{ssl_match_hostname}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six
@@ -42,6 +41,9 @@ Requires(postun): update-alternatives
Provides: python-websocket-client-test = %{version}
Obsoletes: python-websocket-client-test < %{version}
BuildArch: noarch
%if %{with python2}
BuildRequires: %{ssl_match_hostname}
%endif
%ifpython2
Requires: %{ssl_match_hostname}
%endif