Hello community,

here is the log from the commit of package python-jsondiff for 
openSUSE:Leap:15.2 checked in at 2020-05-28 20:08:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-jsondiff (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-jsondiff.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jsondiff"

Thu May 28 20:08:51 2020 rev:4 rq:809059 version:1.2.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-jsondiff/python-jsondiff.changes        
2020-03-09 18:07:05.848869102 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-jsondiff.new.3606/python-jsondiff.changes  
    2020-05-28 20:08:52.486770152 +0200
@@ -1,0 +2,5 @@
+Mon May 25 10:59:35 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-jsondiff.spec ++++++
--- /var/tmp/diff_new_pack.yUOzDm/_old  2020-05-28 20:08:52.834771188 +0200
+++ /var/tmp/diff_new_pack.yUOzDm/_new  2020-05-28 20:08:52.834771188 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-jsondiff
 #
-# 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
@@ -30,6 +30,8 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -44,16 +46,26 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/jsondiff
+%python_clone -a %{buildroot}%{_bindir}/jdiff
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %python_expand nosetests-%{$python_bin_suffix}
 
+%post
+%python_install_alternative jsondiff
+%python_install_alternative jdiff
+
+%postun
+%python_uninstall_alternative jsondiff
+%python_uninstall_alternative jdiff
+
 %files %{python_files}
 %license LICENSE
 %doc README.rst
 %{python_sitelib}/*
-%python3_only %{_bindir}/jdiff
-%python3_only %{_bindir}/jsondiff
+%python_alternative %{_bindir}/jdiff
+%python_alternative %{_bindir}/jsondiff
 
 %changelog


Reply via email to