Hello community,

here is the log from the commit of package python-softlayer for 
openSUSE:Factory checked in at 2020-05-19 14:58:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-softlayer (Old)
 and      /work/SRC/openSUSE:Factory/.python-softlayer.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-softlayer"

Tue May 19 14:58:54 2020 rev:9 rq:807293 version:5.8.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-softlayer/python-softlayer.changes        
2020-04-16 23:02:14.271626951 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-softlayer.new.2738/python-softlayer.changes  
    2020-05-19 14:59:08.813488850 +0200
@@ -1,0 +2,5 @@
+Tue May 19 09:28:05 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-softlayer.spec ++++++
--- /var/tmp/diff_new_pack.26Zgku/_old  2020-05-19 14:59:09.913491290 +0200
+++ /var/tmp/diff_new_pack.26Zgku/_new  2020-05-19 14:59:09.917491298 +0200
@@ -47,6 +47,8 @@
 Requires:       python-setuptools
 Requires:       python-six >= 1.7.0
 Requires:       python-urllib3 >= 1.24
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 %python_subpackages
 
 %description
@@ -60,6 +62,8 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/slcli
+%python_clone -a %{buildroot}%{_bindir}/sl
 # do not install tests
 %python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -67,11 +71,19 @@
 %check
 %pytest
 
+%post
+%python_install_alternative slcli
+%python_install_alternative sl
+
+%postun
+%python_uninstall_alternative slcli
+%python_uninstall_alternative sl
+
 %files %{python_files}
 %license LICENSE
 %doc *.md
 %{python_sitelib}/*
-%python3_only %{_bindir}/sl
-%python3_only %{_bindir}/slcli
+%python_alternative %{_bindir}/sl
+%python_alternative %{_bindir}/slcli
 
 %changelog


Reply via email to