forked from pool/python-websocket-client
Accepting request 923299 from home:schubi2
- Use libalternatives instead of update-alternatives. OBS-URL: https://build.opensuse.org/request/show/923299 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websocket-client?expand=0&rev=40
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 24 08:34:34 UTC 2021 - Stefan Schubert <schubi@suse.de>
|
||||||
|
|
||||||
|
- Use libalternatives instead of update-alternatives.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 29 19:50:49 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
Thu Apr 29 19:50:49 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,12 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
|
|
||||||
%bcond_without python2
|
%bcond_without python2
|
||||||
Name: python-websocket-client
|
Name: python-websocket-client
|
||||||
Version: 0.58.0
|
Version: 0.58.0
|
||||||
@@ -27,10 +33,15 @@ Source0: https://files.pythonhosted.org/packages/source/w/websocket_clien
|
|||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros >= 20210929
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
|
%if %{with libalternatives}
|
||||||
|
Requires: alts
|
||||||
|
BuildRequires: alts
|
||||||
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
|
%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
|
||||||
@@ -63,6 +74,10 @@ sed -i '1 i #!/usr/bin/python' bin/wsdump.py
|
|||||||
%check
|
%check
|
||||||
%python_exec websocket/tests/test_websocket.py
|
%python_exec websocket/tests/test_websocket.py
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# If libalternatives is used: Removing old update-alternatives entries.
|
||||||
|
%python_libalternatives_reset_alternative wsdump.py
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative wsdump.py
|
%python_install_alternative wsdump.py
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user