Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-rtslib-fb for
openSUSE:Factory checked in at 2021-10-25 15:16:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-rtslib-fb (Old)
and /work/SRC/openSUSE:Factory/.python-rtslib-fb.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-rtslib-fb"
Mon Oct 25 15:16:49 2021 rev:28 rq:923332 version:2.1.74
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-rtslib-fb/python-rtslib-fb.changes
2020-11-12 22:37:24.262017317 +0100
+++
/work/SRC/openSUSE:Factory/.python-rtslib-fb.new.1890/python-rtslib-fb.changes
2021-10-25 15:17:09.853665534 +0200
@@ -1,0 +2,5 @@
+Thu Sep 30 19:14:14 UTC 2021 - Stefan Schubert <[email protected]>
+
+- Use libalternatives instead of update-alternatives.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-rtslib-fb.spec ++++++
--- /var/tmp/diff_new_pack.xg6FYQ/_old 2021-10-25 15:17:10.401665877 +0200
+++ /var/tmp/diff_new_pack.xg6FYQ/_new 2021-10-25 15:17:10.401665877 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-rtslib-fb
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,12 @@
#
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
%define dbdir %{_sysconfdir}/target
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-rtslib-fb
@@ -33,13 +39,18 @@
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
-BuildRequires: python-rpm-macros
+BuildRequires: python-rpm-macros >= 20210929
Requires: python-pyudev
%define oldpython python
%define cpkg %{oldpython}-rtslib-fb-common
Requires: %{cpkg}
+%if %{with libalternatives}
+Requires: alts
+BuildRequires: alts
+%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
+%endif
Provides: python-rtslib = %{version}-%{release}
Obsoletes: python-rtslib < %{version}
%if 0%{?sle_version} >= 150000
@@ -103,6 +114,8 @@
%pre
%{service_add_pre target.service}
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative targetctl
%preun
%{stop_on_removal target}