Hello community,

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

Package is "python-portpicker"

Tue May 19 14:49:19 2020 rev:3 rq:807043 version:1.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-portpicker/python-portpicker.changes      
2019-05-22 15:42:02.318427055 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-portpicker.new.2738/python-portpicker.changes
    2020-05-19 14:49:21.976187444 +0200
@@ -1,0 +2,5 @@
+Mon May 18 20:33:40 UTC 2020 - Matej Cepl <[email protected]>
+
+- Don't use %python3_only command, but properly use alternatives.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-portpicker.spec ++++++
--- /var/tmp/diff_new_pack.dZr9bm/_old  2020-05-19 14:49:22.924189546 +0200
+++ /var/tmp/diff_new_pack.dZr9bm/_new  2020-05-19 14:49:22.932189565 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-portpicker
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,6 +27,8 @@
 Source0:        
https://files.pythonhosted.org/packages/source/p/portpicker/portpicker-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module mock}
@@ -46,16 +48,23 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/portserver.py
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python 
src/tests/portpicker_test.py
 
+%post
+%python_install_alternative portserver.py
+
+%postun
+%python_uninstall_alternative portserver.py
+
 %files %{python_files}
 %license LICENSE
 %doc CONTRIBUTING.md README.md
 %{python_sitelib}/*
 # import asyncio
-%python3_only %{_bindir}/portserver.py
+%python_alternative %{_bindir}/portserver.py
 
 %changelog


Reply via email to