14
0

Accepting request 517021 from home:TheBlackCat:branches:devel:languages:python

- Update license to LGPL 3
- Fix rpmlint issues

OBS-URL: https://build.opensuse.org/request/show/517021
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websocket-client?expand=0&rev=21
This commit is contained in:
Todd R
2017-08-23 16:21:44 +00:00
committed by Git OBS Bridge
parent a470bc579b
commit 1407a06613
2 changed files with 14 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Aug 15 15:10:45 UTC 2017 - toddrme2178@gmail.com
- Update license to LGPL 3
- Fix rpmlint issues
-------------------------------------------------------------------
Mon Jul 24 23:55:01 UTC 2017 - jengelh@inai.de

View File

@@ -25,19 +25,20 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%bcond_without test
Name: python-websocket-client
Version: 0.44.0
Release: 0
Summary: WebSocket client implementation
License: LGPL-2.1
License: LGPL-3.0
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: %ssl_match_hostname
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python
Requires: python-six
Requires(post): update-alternatives
Requires(postun): update-alternatives
@@ -67,10 +68,14 @@ Websocket-client supports only hybi-13.
%python_clone -a %{buildroot}%{_bindir}/wsdump.py
# Use the system certs
rm %{buildroot}/%{python_sitelib}/websocket/cacert.pem
%python_expand rm %{buildroot}/%{$python_sitelib}/websocket/cacert.pem
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
%if %{with test}
%check
%python_exec websocket/tests/test_websocket.py
%endif
%post
%python_install_alternative wsdump.py