Hello community,
here is the log from the commit of package python-xmldiff for
openSUSE:Leap:15.2 checked in at 2020-05-18 11:00:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-xmldiff (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-xmldiff.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-xmldiff"
Mon May 18 11:00:42 2020 rev:12 rq:806153 version:2.4
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-xmldiff/python-xmldiff.changes
2020-03-02 13:25:06.142606536 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-xmldiff.new.2738/python-xmldiff.changes
2020-05-18 11:00:45.462805765 +0200
@@ -1,0 +2,5 @@
+Fri May 15 12:55:40 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-xmldiff.spec ++++++
--- /var/tmp/diff_new_pack.wvZAzb/_old 2020-05-18 11:00:45.790806444 +0200
+++ /var/tmp/diff_new_pack.wvZAzb/_new 2020-05-18 11:00:45.790806444 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-xmldiff
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -31,6 +31,8 @@
Requires: python-lxml >= 3.1.0
Requires: python-setuptools
Requires: python-six
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
Conflicts: %{oldpython}-xmldiff < %{version}
BuildArch: noarch
# SECTION test requirements
@@ -56,16 +58,26 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/xmlpatch
+%python_clone -a %{buildroot}%{_bindir}/xmldiff
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
+%post
+%python_install_alternative xmlpatch
+%python_install_alternative xmldiff
+
+%postun
+%python_uninstall_alternative xmlpatch
+%python_uninstall_alternative xmldiff
+
%files %{python_files}
%doc CHANGES.rst README.rst README.txt
%license LICENSE.txt
-%python3_only %{_bindir}/xmldiff
-%python3_only %{_bindir}/xmlpatch
+%python_alternative %{_bindir}/xmldiff
+%python_alternative %{_bindir}/xmlpatch
%{python_sitelib}/*
%changelog