From 6b83cbaf3506994deb97b9432941b9d8f774902e01ef083a51c921303f81f41a Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Sun, 26 Jul 2015 11:58:41 +0000 Subject: [PATCH] Accepting request 318706 from home:seife:OpenStack:Master fix dependencies for RHEL/CentOS 7 OBS-URL: https://build.opensuse.org/request/show/318706 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websocket-client?expand=0&rev=8 --- python-websocket-client.changes | 6 ++++++ python-websocket-client.spec | 11 +++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/python-websocket-client.changes b/python-websocket-client.changes index 98d2fec..c3622f6 100644 --- a/python-websocket-client.changes +++ b/python-websocket-client.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jul 24 08:12:07 UTC 2015 - seife+obs@b1-systems.com + +- fix dependencies for RHEL/CentOS 7: they provide their own + python-backports-ssl_match_hostname + ------------------------------------------------------------------- Thu May 14 13:30:06 UTC 2015 - benoit.monin@gmx.fr diff --git a/python-websocket-client.spec b/python-websocket-client.spec index 17a31c3..51032e0 100644 --- a/python-websocket-client.spec +++ b/python-websocket-client.spec @@ -16,6 +16,13 @@ # +# RHEL provides this backport in its own repository +%if 0%{?rhel} == 7 +%define backports python-backports-ssl_match_hostname +%else +%define backports python-backports.ssl_match_hostname +%endif + Name: python-websocket-client Version: 0.30.0 Release: 0 @@ -24,11 +31,11 @@ License: LGPL-2.1 Group: Development/Languages/Python Url: https://github.com/liris/websocket-client/releases Source0: https://pypi.python.org/packages/source/w/websocket-client/websocket_client-%{version}.tar.gz -BuildRequires: python-backports.ssl_match_hostname +BuildRequires: %backports BuildRequires: python-setuptools BuildRequires: python-six +Requires: %backports Requires: python -Requires: python-backports.ssl_match_hostname Requires: python-six BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110