Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-spsdk for openSUSE:Factory checked in at 2025-06-17 18:23:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-spsdk (Old) and /work/SRC/openSUSE:Factory/.python-spsdk.new.19631 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-spsdk" Tue Jun 17 18:23:23 2025 rev:7 rq:1286290 version:2.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-spsdk/python-spsdk.changes 2024-07-19 15:29:42.804864583 +0200 +++ /work/SRC/openSUSE:Factory/.python-spsdk.new.19631/python-spsdk.changes 2025-06-17 18:24:11.867235618 +0200 @@ -1,0 +2,5 @@ +Tue Jun 17 08:03:02 UTC 2025 - Markéta Machová <mmach...@suse.com> + +- Convert to libalternatives + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-spsdk.spec ++++++ --- /var/tmp/diff_new_pack.abCIwM/_old 2025-06-17 18:24:12.467260568 +0200 +++ /var/tmp/diff_new_pack.abCIwM/_new 2025-06-17 18:24:12.471260734 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-spsdk # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-spsdk Version: 2.1.1 @@ -30,9 +31,11 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-asn1crypto Requires: python-astunparse Requires: python-bincopy @@ -63,8 +66,6 @@ # dependency no longer required due to Patch0 # Requires: python-pypemicro BuildArch: noarch -Requires(post): update-alternatives -Requires(postun): update-alternatives %python_subpackages %description @@ -107,11 +108,8 @@ # remove unneccesary *.c and *.bin files %python_expand rm -vf %{buildroot}%{$python_sitelib}/spsdk/data/cpu_data/*.c %{buildroot}%{$python_sitelib}/spsdk/data/cpu_data/*.bin -%post -%python_install_alternative blhost ifr nxpcrypto nxpdebugmbox nxpdevhsm nxpdevscan nxpele nxpimage pfr sdphost sdpshost shadowregs spsdk tpconfig tphost dk6prog nxpmemcfg nxpwpc - -%postun -%python_uninstall_alternative blhost ifr nxpcrypto nxpdebugmbox nxpdevhsm nxpdevscan nxpele nxpimage pfr sdphost sdpshost shadowregs spsdk tpconfig tphost dk6prog nxpmemcfg nxpwpc +%pre +%python_libalternatives_reset_alternative blhost %files %{python_files} %doc README.md