Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-netaddr for openSUSE:Factory checked in at 2025-07-17 17:17:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-netaddr (Old) and /work/SRC/openSUSE:Factory/.python-netaddr.new.8875 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-netaddr" Thu Jul 17 17:17:03 2025 rev:31 rq:1293667 version:1.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-netaddr/python-netaddr.changes 2024-12-05 17:12:03.574183321 +0100 +++ /work/SRC/openSUSE:Factory/.python-netaddr.new.8875/python-netaddr.changes 2025-07-17 17:17:13.819923010 +0200 @@ -1,0 +2,5 @@ +Wed Jul 16 10:07:02 UTC 2025 - Markéta Machová <mmach...@suse.com> + +- Convert to libalternatives + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-netaddr.spec ++++++ --- /var/tmp/diff_new_pack.f5DK21/_old 2025-07-17 17:17:15.079975293 +0200 +++ /var/tmp/diff_new_pack.f5DK21/_new 2025-07-17 17:17:15.083975459 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-netaddr # -# 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-netaddr Version: 1.3.0 @@ -28,17 +29,17 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: alts +BuildArch: noarch # SECTION test -BuildRequires: %{python_module pytest} BuildRequires: %{python_module iniconfig} BuildRequires: %{python_module packaging} BuildRequires: %{python_module pluggy} +BuildRequires: %{python_module pytest} # /SECTION -BuildRequires: fdupes -BuildRequires: python-rpm-macros -Requires(post): update-alternatives -Requires(postun): update-alternatives -BuildArch: noarch %python_subpackages %description @@ -60,7 +61,7 @@ %prep %autosetup -p1 -n netaddr-%{version} -sed -i "1{\@/usr/bin/env python@d}" netaddr/{cli,ip/iana,eui/ieee}.py # Fix non-executable scripts +sed -i "1{\@%{_bindir}/env python@d}" netaddr/{cli,ip/iana,eui/ieee}.py # Fix non-executable scripts %build %pyproject_wheel @@ -73,11 +74,8 @@ %check %pytest -%post -%python_install_alternative netaddr - -%postun -%python_uninstall_alternative netaddr +%pre +%python_libalternatives_reset_alternative netaddr %files %{python_files} %license LICENSE.rst