Hello community,

here is the log from the commit of package python-xmldiff for openSUSE:Factory 
checked in at 2020-05-16 22:27:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-xmldiff (Old)
 and      /work/SRC/openSUSE:Factory/.python-xmldiff.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-xmldiff"

Sat May 16 22:27:18 2020 rev:19 rq:805901 version:2.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-xmldiff/python-xmldiff.changes    
2019-10-31 18:18:25.766207667 +0100
+++ /work/SRC/openSUSE:Factory/.python-xmldiff.new.2738/python-xmldiff.changes  
2020-05-16 22:27:20.889397972 +0200
@@ -1,0 +2,5 @@
+Fri May 15 12:55:40 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-xmldiff.spec ++++++
--- /var/tmp/diff_new_pack.rbQQqg/_old  2020-05-16 22:27:21.537399302 +0200
+++ /var/tmp/diff_new_pack.rbQQqg/_new  2020-05-16 22:27:21.541399310 +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


Reply via email to