Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-websocket-client for 
openSUSE:Factory checked in at 2021-11-09 23:53:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-websocket-client (Old)
 and      /work/SRC/openSUSE:Factory/.python-websocket-client.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-websocket-client"

Tue Nov  9 23:53:54 2021 rev:15 rq:929841 version:0.58.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-websocket-client/python-websocket-client.changes
  2021-05-20 19:23:47.874257373 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-websocket-client.new.1890/python-websocket-client.changes
        2021-11-09 23:54:06.619937331 +0100
@@ -1,0 +2,5 @@
+Tue Aug 24 08:34:34 UTC 2021 - Stefan Schubert <[email protected]>
+
+- Use libalternatives instead of update-alternatives.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-websocket-client.spec ++++++
--- /var/tmp/diff_new_pack.Zd1XL2/_old  2021-11-09 23:54:07.063937558 +0100
+++ /var/tmp/diff_new_pack.Zd1XL2/_new  2021-11-09 23:54:07.067937560 +0100
@@ -16,6 +16,12 @@
 #
 
 
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
 %bcond_without python2
 Name:           python-websocket-client
 Version:        0.58.0
@@ -27,10 +33,15 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
 BuildRequires:  fdupes
-BuildRequires:  python-rpm-macros
+BuildRequires:  python-rpm-macros >= 20210929
 Requires:       python-six
+%if %{with libalternatives}
+Requires:       alts
+BuildRequires:  alts
+%else
 Requires(post): update-alternatives
 Requires(postun):update-alternatives
+%endif
 Provides:       python-websocket-client-test = %{version}
 Obsoletes:      python-websocket-client-test < %{version}
 BuildArch:      noarch
@@ -63,6 +74,10 @@
 %check
 %python_exec websocket/tests/test_websocket.py
 
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative wsdump.py
+
 %post
 %python_install_alternative wsdump.py
 

Reply via email to