Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-distro for openSUSE:Factory checked in at 2025-01-30 14:49:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-distro (Old) and /work/SRC/openSUSE:Factory/.python-distro.new.2316 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-distro" Thu Jan 30 14:49:19 2025 rev:22 rq:1241241 version:1.9.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-distro/python-distro.changes 2024-02-25 14:04:46.533983049 +0100 +++ /work/SRC/openSUSE:Factory/.python-distro.new.2316/python-distro.changes 2025-01-30 14:49:32.905359231 +0100 @@ -1,0 +2,5 @@ +Fri Jan 24 12:35:25 UTC 2025 - Nico Krapp <nico.kr...@suse.com> + +- Use libalternatives instead of update-alternatives, bsc#1235785 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-distro.spec ++++++ --- /var/tmp/diff_new_pack.ZnGXS3/_old 2025-01-30 14:49:33.617388550 +0100 +++ /var/tmp/diff_new_pack.ZnGXS3/_new 2025-01-30 14:49:33.617388550 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-distro # -# 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,12 @@ # +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + %{?sle15_python_module_pythons} %{!?license: %global license %doc} %bcond_without test @@ -24,15 +30,20 @@ Release: 0 Summary: Linux Distribution - a Linux OS platform information API License: Apache-2.0 -URL: https://github.com/nir0s/distro +URL: https://github.com/python-distro/distro Source: https://files.pythonhosted.org/packages/source/d/distro/distro-%{version}.tar.gz Patch0: assert_locale.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else Requires(post): update-alternatives Requires(postun): update-alternatives +%endif BuildArch: noarch # SECTION test %if %{with test} @@ -65,6 +76,10 @@ %pytest %endif +%pre +# If libalternatives is used: Removing old update-alternatives entries. +%python_libalternatives_reset_alternative distro + %post %python_install_alternative distro