From 1407a066130fbe0d63b3b2e8b81abba730adfea7788fabe90e4ccb61b26f5084 Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 23 Aug 2017 16:21:44 +0000 Subject: [PATCH] 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 --- python-websocket-client.changes | 6 ++++++ python-websocket-client.spec | 11 ++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/python-websocket-client.changes b/python-websocket-client.changes index 25e5853..b3d6e0c 100644 --- a/python-websocket-client.changes +++ b/python-websocket-client.changes @@ -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 diff --git a/python-websocket-client.spec b/python-websocket-client.spec index bbedd01..f32b8c5 100644 --- a/python-websocket-client.spec +++ b/python-websocket-client.spec @@ -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