Hello community,

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

Package is "python-waitress"

Thu May 28 09:07:25 2020 rev:19 rq:806803 version:1.4.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-waitress/python-waitress.changes  
2020-02-15 22:23:11.379237361 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-waitress.new.3606/python-waitress.changes    
    2020-05-28 09:07:30.647733472 +0200
@@ -1,0 +2,5 @@
+Mon May 18 07:25:32 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-waitress.spec ++++++
--- /var/tmp/diff_new_pack.57uIEr/_old  2020-05-28 09:07:32.379738665 +0200
+++ /var/tmp/diff_new_pack.57uIEr/_new  2020-05-28 09:07:32.379738665 +0200
@@ -32,6 +32,8 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 # SECTION documentation requirements
 BuildRequires:  python3-Sphinx
@@ -67,6 +69,7 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/waitress-serve
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -74,10 +77,16 @@
 rm waitress/tests/test_adjustments.py
 %python_exec setup.py test
 
+%post
+%python_install_alternative waitress-serve
+
+%postun
+%python_uninstall_alternative waitress-serve
+
 %files %{python_files}
 %license LICENSE.txt
 %doc COPYRIGHT.txt README.rst
-%python3_only %{_bindir}/waitress-serve
+%python_alternative %{_bindir}/waitress-serve
 %{python_sitelib}/*
 
 %files %{python_files doc}



Reply via email to