14
0
2018-12-04 17:25:37 +00:00
committed by Git OBS Bridge
parent c969001cc8
commit e61fc88665

View File

@@ -16,14 +16,13 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# RHEL provides this backport in its own repository
%if 0%{?rhel} == 7
%define ssl_match_hostname python-backports-ssl_match_hostname
%else
%define ssl_match_hostname python-backports.ssl_match_hostname
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-websocket-client
Version: 0.46.0
@@ -31,25 +30,24 @@ 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
URL: https://github.com/liris/websocket-client/releases
Source0: https://files.pythonhosted.org/packages/source/w/websocket_client/websocket_client-%{version}.tar.gz
# PATCH-FIX-OPENSUSE use_system_cabundle.patch bnc#1076519
Patch0: use_system_cabundle.patch
BuildRequires: %ssl_match_hostname
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{ssl_match_hostname}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six
Requires(post): update-alternatives
Requires(postun): update-alternatives
%ifpython2
Requires: %ssl_match_hostname
%endif
Provides: python-websocket-client-test = %{version}
Obsoletes: python-websocket-client-test < %{version}
BuildArch: noarch
%ifpython2
Requires: %{ssl_match_hostname}
%endif
%python_subpackages
%description
@@ -83,8 +81,8 @@ Websocket-client supports only hybi-13.
%python_uninstall_alternative wsdump.py
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%license LICENSE
%doc README.rst
%python_alternative %{_bindir}/wsdump.py
%{python_sitelib}/websocket/
%{python_sitelib}/websocket_client-%{version}-py*.egg-info