Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-ipython715 for
openSUSE:Factory checked in at 2021-10-25 15:16:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ipython715 (Old)
and /work/SRC/openSUSE:Factory/.python-ipython715.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ipython715"
Mon Oct 25 15:16:55 2021 rev:5 rq:923487 version:7.15.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ipython715/python-ipython715.changes
2021-08-06 22:44:49.202066427 +0200
+++
/work/SRC/openSUSE:Factory/.python-ipython715.new.1890/python-ipython715.changes
2021-10-25 15:17:19.977671864 +0200
@@ -1,0 +2,5 @@
+Wed Oct 6 09:54:21 UTC 2021 - Stean Schubert <[email protected]>
+
+- Use libalternatives instead of update-alternatives.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-ipython715.spec ++++++
--- /var/tmp/diff_new_pack.vPtTDe/_old 2021-10-25 15:17:21.681672930 +0200
+++ /var/tmp/diff_new_pack.vPtTDe/_new 2021-10-25 15:17:21.681672930 +0200
@@ -1,5 +1,5 @@
#
-# spec file
+# spec file for package python-ipython715
#
# Copyright (c) 2021 SUSE LLC
#
@@ -16,6 +16,12 @@
#
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
@@ -45,7 +51,7 @@
BuildRequires: %{python_module base >= 3.5}
BuildRequires: %{python_module setuptools >= 18.5}
BuildRequires: fdupes
-BuildRequires: python-rpm-macros
+BuildRequires: python-rpm-macros >= 20210929
Requires: python-Pygments
Requires: python-backcall
Requires: python-base >= 3.5
@@ -88,8 +94,13 @@
BuildRequires: desktop-file-utils
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
+%if %{with libalternatives}
+Requires: alts
+BuildRequires: alts
+%else
Requires(post): update-alternatives
Requires(postun):update-alternatives
+%endif
%if %{with ico}
BuildRequires: icoutils
%endif
@@ -229,6 +240,15 @@
%endif
%if !%{with test}
+
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative ipython
+
+%pre iptest
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative iptest
+
%post
%python_install_alternative ipython ipython3 ipython.1.gz ipython.3.gz
%desktop_database_post