Hello community,

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

Package is "python-cheroot"

Fri Jun  5 19:58:51 2020 rev:14 rq:808801 version:8.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cheroot/python-cheroot.changes    
2020-05-20 18:36:25.268099786 +0200
+++ /work/SRC/openSUSE:Factory/.python-cheroot.new.3606/python-cheroot.changes  
2020-06-05 19:58:54.595667993 +0200
@@ -1,0 +2,5 @@
+Mon May 25 10:59:14 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-cheroot.spec ++++++
--- /var/tmp/diff_new_pack.yAjneE/_old  2020-06-05 19:58:55.247670248 +0200
+++ /var/tmp/diff_new_pack.yAjneE/_new  2020-06-05 19:58:55.251670262 +0200
@@ -48,6 +48,8 @@
 Requires:       python-jaraco.functools
 Requires:       python-more-itertools >= 2.6
 Requires:       python-six >= 1.11.0
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 # the package and distribution name is lowercase-cheroot,
 # but PyPI claims the name is capital-Cheroot
 # *smacks head against desk*
@@ -77,16 +79,23 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/cheroot
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 # Exclusions because of gh#cherrypy/cheroot#200
 %pytest -k 'not test_tls_client_auth'
 
+%post
+%python_install_alternative cheroot
+
+%postun
+%python_uninstall_alternative cheroot
+
 %files %{python_files}
 %license LICENSE.md
 %doc README.rst CHANGES.rst
-%python3_only %{_bindir}/cheroot
+%python_alternative %{_bindir}/cheroot
 %{python_sitelib}/*
 
 %changelog


Reply via email to