Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-hardware for openSUSE:Factory
checked in at 2026-04-28 11:55:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-hardware (Old)
and /work/SRC/openSUSE:Factory/.python-hardware.new.11940 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hardware"
Tue Apr 28 11:55:58 2026 rev:3 rq:1349431 version:0.32.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-hardware/python-hardware.changes
2024-12-09 21:13:43.754382247 +0100
+++
/work/SRC/openSUSE:Factory/.python-hardware.new.11940/python-hardware.changes
2026-04-28 11:59:54.474325357 +0200
@@ -1,0 +2,5 @@
+Sun Apr 26 19:24:04 UTC 2026 - Dirk Müller <[email protected]>
+
+- reset alternative for TW
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-hardware.spec ++++++
--- /var/tmp/diff_new_pack.BTXkgn/_old 2026-04-28 11:59:55.022348378 +0200
+++ /var/tmp/diff_new_pack.BTXkgn/_new 2026-04-28 11:59:55.026348546 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-hardware
#
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 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,12 @@
#
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
%{?sle15_python_module_pythons}
Name: python-hardware
Version: 0.32.0
@@ -41,6 +47,13 @@
BuildRequires: fdupes
Requires: python-pexpect
BuildArch: noarch
+%if %{with libalternatives}
+BuildRequires: alts
+Requires: alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
%python_subpackages
%description
@@ -60,6 +73,9 @@
%check
%python_exec -m stestr.cli run --test-path hardware/tests
+%pre
+%python_reset_alternative hardware-detect
+
%post
%python_install_alternative hardware-detect