Hello community,

here is the log from the commit of package python-demjson for openSUSE:Factory 
checked in at 2020-05-28 09:18:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-demjson (Old)
 and      /work/SRC/openSUSE:Factory/.python-demjson.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-demjson"

Thu May 28 09:18:11 2020 rev:4 rq:809424 version:2.2.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-demjson/python-demjson.changes    
2018-12-13 19:42:47.953141473 +0100
+++ /work/SRC/openSUSE:Factory/.python-demjson.new.3606/python-demjson.changes  
2020-05-28 09:18:11.953085720 +0200
@@ -1,0 +2,5 @@
+Tue May 26 07:22:34 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-demjson.spec ++++++
--- /var/tmp/diff_new_pack.JcEFVh/_old  2020-05-28 09:18:12.449086628 +0200
+++ /var/tmp/diff_new_pack.JcEFVh/_new  2020-05-28 09:18:12.453086636 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-demjson
 #
-# Copyright (c) 2018 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
 BuildRequires:  python3-2to3
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -54,6 +56,7 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/jsonlint
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %if %{with tests}3
@@ -67,11 +70,17 @@
 }
 %endif
 
+%post
+%python_install_alternative jsonlint
+
+%postun
+%python_uninstall_alternative jsonlint
+
 %files %{python_files}
 %license LICENSE.txt
 %doc README.txt
 %doc docs/
-%python3_only %{_bindir}/jsonlint
+%python_alternative %{_bindir}/jsonlint
 %{python_sitelib}/*
 
 %changelog


Reply via email to