Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-snimpy for openSUSE:Factory 
checked in at 2021-02-18 20:40:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-snimpy (Old)
 and      /work/SRC/openSUSE:Factory/.python-snimpy.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-snimpy"

Thu Feb 18 20:40:06 2021 rev:3 rq:867027 version:0.8.14

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-snimpy/python-snimpy.changes      
2020-11-29 12:26:54.709910152 +0100
+++ /work/SRC/openSUSE:Factory/.python-snimpy.new.28504/python-snimpy.changes   
2021-02-18 20:52:24.931439652 +0100
@@ -1,0 +2,6 @@
+Wed Jan 27 04:21:34 UTC 2021 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Switch from python3_only to python_alternative for the snimpy script
+  and its manual page.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-snimpy.spec ++++++
--- /var/tmp/diff_new_pack.f98ens/_old  2021-02-18 20:52:25.355440050 +0100
+++ /var/tmp/diff_new_pack.f98ens/_new  2021-02-18 20:52:25.363440058 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-snimpy
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 # Copyright (c) 2016-2020, Martin Hauke <mar...@gmx.de>
 #
 # All modifications and additions to the file contributed by third parties
@@ -45,6 +45,8 @@
 Requires:       python-pycryptodomex
 Requires:       python-pysnmp >= 4
 Requires:       python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 %python_subpackages
 
 %description
@@ -80,15 +82,23 @@
 %install
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
+%python_clone -a %{buildroot}%{_bindir}/snimpy
+%python_clone -a %{buildroot}%{_mandir}/man1/snimpy.1
 
 %check
 %python_exec -m unittest discover tests -v
 
+%post
+%python_install_alternative snimpy snimpy.1
+
+%postun
+%python_uninstall_alternative snimpy snimpy.1
+
 %files %{python_files}
 %license docs/license.rst
 %doc AUTHORS.rst README.rst
-%python3_only %{_bindir}/snimpy
-%python3_only %{_mandir}/man1/snimpy.1%{ext_man}
+%python_alternative %{_bindir}/snimpy
+%python_alternative %{_mandir}/man1/snimpy.1%{ext_man}
 %{python_sitearch}/snimpy*
 
 %changelog

Reply via email to