Accepting request 659754 from devel:languages:python

Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/659754
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-websocket-client?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2018-12-24 10:46:08 +00:00 committed by Git OBS Bridge
commit def0537849
2 changed files with 16 additions and 14 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Dec 4 12:55:59 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Thu Jan 18 09:55:12 UTC 2018 - sebix+novell.com@sebix.at

View File

@ -12,45 +12,42 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# RHEL provides this backport in its own repository
%if 0%{?rhel} == 7
%define ssl_match_hostname python-backports-ssl_match_hostname
%else
%define ssl_match_hostname python-backports.ssl_match_hostname
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-websocket-client
Version: 0.46.0
Release: 0
Summary: WebSocket client implementation
License: LGPL-2.1
License: LGPL-2.1-only
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
URL: https://github.com/liris/websocket-client/releases
Source0: https://files.pythonhosted.org/packages/source/w/websocket_client/websocket_client-%{version}.tar.gz
# PATCH-FIX-OPENSUSE use_system_cabundle.patch bnc#1076519
Patch0: use_system_cabundle.patch
BuildRequires: %ssl_match_hostname
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{ssl_match_hostname}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six
Requires(post): update-alternatives
Requires(postun): update-alternatives
%ifpython2
Requires: %ssl_match_hostname
%endif
Provides: python-websocket-client-test = %{version}
Obsoletes: python-websocket-client-test < %{version}
BuildArch: noarch
%ifpython2
Requires: %{ssl_match_hostname}
%endif
%python_subpackages
%description
@ -84,8 +81,8 @@ Websocket-client supports only hybi-13.
%python_uninstall_alternative wsdump.py
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%license LICENSE
%doc README.rst
%python_alternative %{_bindir}/wsdump.py
%{python_sitelib}/websocket/
%{python_sitelib}/websocket_client-%{version}-py*.egg-info