From 9e3a4ea422af6bff9ab552f93b5bd417d64c71135d3a8022369115f7337a022f Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Mon, 24 Jul 2017 12:22:33 +0000 Subject: [PATCH] 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 --- python-websocket-client.changes | 6 ++++++ python-websocket-client.spec | 28 ++++++++++++++-------------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/python-websocket-client.changes b/python-websocket-client.changes index 12302c7..66aa3a2 100644 --- a/python-websocket-client.changes +++ b/python-websocket-client.changes @@ -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 diff --git a/python-websocket-client.spec b/python-websocket-client.spec index 4d2744f..50d57c7 100644 --- a/python-websocket-client.spec +++ b/python-websocket-client.spec @@ -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