Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-sshtunnel for 
openSUSE:Factory checked in at 2025-08-25 20:39:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sshtunnel (Old)
 and      /work/SRC/openSUSE:Factory/.python-sshtunnel.new.30751 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sshtunnel"

Mon Aug 25 20:39:46 2025 rev:10 rq:1301296 version:0.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sshtunnel/python-sshtunnel.changes        
2024-03-28 14:29:49.895652857 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-sshtunnel.new.30751/python-sshtunnel.changes 
    2025-08-25 20:41:56.873767787 +0200
@@ -1,0 +2,5 @@
+Mon Aug 25 13:53:31 UTC 2025 - Markéta Machová <mmach...@suse.com>
+
+- Convert to libalternatives on SLE-16-based and newer systems
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-sshtunnel.spec ++++++
--- /var/tmp/diff_new_pack.klLPFU/_old  2025-08-25 20:41:57.345787561 +0200
+++ /var/tmp/diff_new_pack.klLPFU/_new  2025-08-25 20:41:57.345787561 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-sshtunnel
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,11 @@
 #
 
 
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
 %{?sle15_python_module_pythons}
 Name:           python-sshtunnel
 Version:        0.4.0
@@ -36,9 +41,14 @@
 BuildRequires:  python-rpm-macros
 Requires:       openssh
 Requires:       python-paramiko >= 2.7.2
+BuildArch:      noarch
+%if %{with libalternatives}
+BuildRequires:  alts
+Requires:       alts
+%else
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
-BuildArch:      noarch
+%endif
 %python_subpackages
 
 %description
@@ -65,6 +75,9 @@
 sed -i 's:import mock:from unittest import mock:' tests/test_forwarder.py
 %pytest
 
+%pre
+%python_libalternatives_reset_alternative sshtunnel
+
 %post
 %python_install_alternative sshtunnel
 
@@ -77,5 +90,5 @@
 %python_alternative %{_bindir}/sshtunnel
 %pycache_only %{python_sitelib}/__pycache__/sshtunnel*pyc
 %{python_sitelib}/sshtunnel.py
-%{python_sitelib}/sshtunnel-{%version}.dist-info
+%{python_sitelib}/sshtunnel-%{version}.dist-info
 

Reply via email to