Hello community,

here is the log from the commit of package python-jsbeautifier for 
openSUSE:Factory checked in at 2020-05-26 17:49:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jsbeautifier (Old)
 and      /work/SRC/openSUSE:Factory/.python-jsbeautifier.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jsbeautifier"

Tue May 26 17:49:02 2020 rev:8 rq:808780 version:1.11.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jsbeautifier/python-jsbeautifier.changes  
2020-04-16 23:05:50.731813236 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jsbeautifier.new.2738/python-jsbeautifier.changes
        2020-05-26 17:49:05.639850781 +0200
@@ -1,0 +2,5 @@
+Mon May 25 10:59:33 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-jsbeautifier.spec ++++++
--- /var/tmp/diff_new_pack.AoENCl/_old  2020-05-26 17:49:07.695855287 +0200
+++ /var/tmp/diff_new_pack.AoENCl/_new  2020-05-26 17:49:07.699855296 +0200
@@ -32,6 +32,8 @@
 Requires:       python-EditorConfig >= 0.12.2
 Requires:       python-setuptools
 Requires:       python-six >= 1.13.0
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module EditorConfig >= 0.12.2}
@@ -52,15 +54,22 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/js-beautify
 %{python_expand %fdupes %{buildroot}%{$python_sitelib}}
 
 %check
 %pytest jsbeautifier/tests/testindentation.py
 %pytest jsbeautifier/tests/generated/tests.py
 
+%post
+%python_install_alternative js-beautify
+
+%postun
+%python_uninstall_alternative js-beautify
+
 %files %{python_files}
 %license LICENSE
-%python3_only %{_bindir}/js-beautify
+%python_alternative %{_bindir}/js-beautify
 %{python_sitelib}/jsbeautifier
 %{python_sitelib}/jsbeautifier-%{version}-py*.egg-info
 


Reply via email to