forked from pool/python-websocket-client
- Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websocket-client?expand=0&rev=36
This commit is contained in:
committed by
Git OBS Bridge
parent
efa3eefa36
commit
559035008f
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user