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