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