Accepting request 511933 from home:TheBlackCat:branches:devel:languages:python
- Fix singlespec macro usage - Fix source URL. OBS-URL: https://build.opensuse.org/request/show/511933 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websocket-client?expand=0&rev=19
This commit is contained in:
parent
b73305c999
commit
9e3a4ea422
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 21 17:46:23 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Fix singlespec macro usage
|
||||
- Fix source URL.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 5 05:10:45 UTC 2017 - tbechtold@suse.com
|
||||
|
||||
|
@ -18,11 +18,13 @@
|
||||
|
||||
# RHEL provides this backport in its own repository
|
||||
%if 0%{?rhel} == 7
|
||||
%define backports python-backports-ssl_match_hostname
|
||||
%define ssl_match_hostname python-backports-ssl_match_hostname
|
||||
%else
|
||||
%define backports python-backports.ssl_match_hostname
|
||||
%define ssl_match_hostname python-backports.ssl_match_hostname
|
||||
%endif
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
Name: python-websocket-client
|
||||
Version: 0.44.0
|
||||
Release: 0
|
||||
@ -30,8 +32,8 @@ Summary: WebSocket client implementation
|
||||
License: LGPL-2.1
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/liris/websocket-client/releases
|
||||
Source0: https://file.pythonhosted.org/packages/source/w/websocket-client/websocket_client-%{version}.tar.gz
|
||||
BuildRequires: %backports
|
||||
Source0: https://files.pythonhosted.org/packages/source/w/websocket-client/websocket_client-%{version}.tar.gz
|
||||
BuildRequires: %ssl_match_hostname
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: python-rpm-macros
|
||||
@ -40,20 +42,19 @@ Requires: python-six
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%ifpython2
|
||||
Requires: %backports
|
||||
Provides: python-websocket-client-test = %{version}
|
||||
Obsoletes: python-websocket-client-test < %{version}
|
||||
Requires: %ssl_match_hostname
|
||||
Provides: %{oldpython}-websocket-client-test = %{version}
|
||||
Obsoletes: %{oldpython}-websocket-client-test < %{version}
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
websocket-client module is WebSocket client for python. This provide the
|
||||
The websocket-client module is WebSocket client for python. This provide the
|
||||
low level APIs for WebSocket. All APIs are the synchronous functions.
|
||||
|
||||
websocket-client supports only hybi-13.
|
||||
Websocket-client supports only hybi-13.
|
||||
|
||||
%prep
|
||||
%setup -q -n websocket_client-%{version}
|
||||
@ -64,6 +65,7 @@ websocket-client supports only hybi-13.
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/wsdump.py
|
||||
|
||||
# Use the system certs
|
||||
rm %{buildroot}/%{python_sitelib}/websocket/cacert.pem
|
||||
|
||||
@ -79,10 +81,8 @@ rm %{buildroot}/%{python_sitelib}/websocket/cacert.pem
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README.rst
|
||||
%dir %{python_sitelib}/websocket
|
||||
%dir %{python_sitelib}/websocket_client-%{version}-py*.egg-info
|
||||
%python_alternative %{_bindir}/wsdump.py
|
||||
%{python_sitelib}/websocket/*
|
||||
%{python_sitelib}/*egg-info/*
|
||||
%{python_sitelib}/websocket/
|
||||
%{python_sitelib}/websocket_client-%{version}-py*.egg-info
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user