Hello community,

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

Package is "python-nwdiag"

Thu May 28 09:12:30 2020 rev:5 rq:808047 version:2.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nwdiag/python-nwdiag.changes      
2020-03-03 10:16:15.926653482 +0100
+++ /work/SRC/openSUSE:Factory/.python-nwdiag.new.3606/python-nwdiag.changes    
2020-05-28 09:13:06.188573109 +0200
@@ -1,0 +2,5 @@
+Thu May 21 10:56:43 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-nwdiag.spec ++++++
--- /var/tmp/diff_new_pack.1A0wuG/_old  2020-05-28 09:13:06.980575024 +0200
+++ /var/tmp/diff_new_pack.1A0wuG/_new  2020-05-28 09:13:06.984575034 +0200
@@ -31,13 +31,12 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-blockdiag >= 1.5.0
 Requires:       python-setuptools
-Suggests:       python-reportlab
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Suggests:       python-docutils
 Suggests:       python-nose
 Suggests:       python-reportlab
-Suggests:       python-docutils
 BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -51,14 +50,27 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/packetdiag
+%python_clone -a %{buildroot}%{_bindir}/rackdiag
+%python_clone -a %{buildroot}%{_bindir}/nwdiag
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%post
+%python_install_alternative packetdiag
+%python_install_alternative rackdiag
+%python_install_alternative nwdiag
+
+%postun
+%python_uninstall_alternative packetdiag
+%python_uninstall_alternative rackdiag
+%python_uninstall_alternative nwdiag
+
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%python3_only %{_bindir}/nwdiag
-%python3_only %{_bindir}/rackdiag
-%python3_only %{_bindir}/packetdiag
+%python_alternative %{_bindir}/nwdiag
+%python_alternative %{_bindir}/rackdiag
+%python_alternative %{_bindir}/packetdiag
 %{python_sitelib}/*
 
 %changelog


Reply via email to