Hello community,

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

Package is "python-json5"

Thu May 28 20:08:52 2020 rev:3 rq:809060 version:0.9.4

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-json5/python-json5.changes      
2020-04-18 18:41:09.469969730 +0200
+++ /work/SRC/openSUSE:Leap:15.2/.python-json5.new.3606/python-json5.changes    
2020-05-28 20:08:52.982771629 +0200
@@ -1,0 +2,5 @@
+Mon May 25 10:59:34 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-json5.spec ++++++
--- /var/tmp/diff_new_pack.V0Bsuo/_old  2020-05-28 20:08:53.422772938 +0200
+++ /var/tmp/diff_new_pack.V0Bsuo/_new  2020-05-28 20:08:53.426772950 +0200
@@ -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
 
@@ -52,16 +54,23 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/pyjson5
 %python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %pytest
 
+%post
+%python_install_alternative pyjson5
+
+%postun
+%python_uninstall_alternative pyjson5
+
 %files %{python_files}
 %doc README.md
 %license LICENSE
-%python3_only %{_bindir}/pyjson5
+%python_alternative %{_bindir}/pyjson5
 %{python_sitelib}/*
 
 %changelog


Reply via email to