Hello community,

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

Package is "python-pyroute2"

Tue May 26 17:18:25 2020 rev:18 rq:807680 version:0.5.11

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyroute2/python-pyroute2.changes  
2020-04-29 20:53:51.033199659 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pyroute2.new.2738/python-pyroute2.changes    
    2020-05-26 17:18:54.679922047 +0200
@@ -1,0 +2,5 @@
+Wed May 20 07:26:42 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pyroute2.spec ++++++
--- /var/tmp/diff_new_pack.1G8zgE/_old  2020-05-26 17:18:55.699924240 +0200
+++ /var/tmp/diff_new_pack.1G8zgE/_new  2020-05-26 17:18:55.703924248 +0200
@@ -28,6 +28,8 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -56,18 +58,28 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/pyroute2-cli
+%python_clone -a %{buildroot}%{_bindir}/ss2
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 # tests require root access
 #%%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} 
nosetests-%{$python_bin_suffix} -v
 
+%post
+%python_install_alternative pyroute2-cli
+%python_install_alternative ss2
+
+%postun
+%python_uninstall_alternative pyroute2-cli
+%python_uninstall_alternative ss2
+
 %files %{python_files}
 %license README.license.md
 %doc README.md CHANGELOG.md README.report.md
 %license LICENSE.Apache.v2 LICENSE.GPL.v2
 %{python_sitelib}/*
-%python3_only %{_bindir}/ss2
-%python3_only %{_bindir}/pyroute2-cli
+%python_alternative %{_bindir}/ss2
+%python_alternative %{_bindir}/pyroute2-cli
 
 %changelog


Reply via email to