Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pycodestyle for openSUSE:Factory checked in at 2025-08-22 17:47:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pycodestyle (Old) and /work/SRC/openSUSE:Factory/.python-pycodestyle.new.29662 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pycodestyle" Fri Aug 22 17:47:15 2025 rev:26 rq:1300830 version:2.14.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pycodestyle/python-pycodestyle.changes 2025-07-21 19:59:37.817412805 +0200 +++ /work/SRC/openSUSE:Factory/.python-pycodestyle.new.29662/python-pycodestyle.changes 2025-08-22 17:47:41.675715603 +0200 @@ -1,0 +2,5 @@ +Thu Aug 21 16:12:39 UTC 2025 - Markéta Machová <mmach...@suse.com> + +- Convert to libalternatives on SLE-16-based and newer systems only + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pycodestyle.spec ++++++ --- /var/tmp/diff_new_pack.OI3CR1/_old 2025-08-22 17:47:43.595794629 +0200 +++ /var/tmp/diff_new_pack.OI3CR1/_new 2025-08-22 17:47:43.615795451 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pycodestyle # -# Copyright (c) 2025 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,7 +16,11 @@ # +%if 0%{?suse_version} > 1500 %bcond_without libalternatives +%else +%bcond_with libalternatives +%endif %{?sle15_python_module_pythons} Name: python-pycodestyle Version: 2.14.0 @@ -30,13 +34,18 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} -BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: alts Provides: python-pep8 = %{version} Obsoletes: python-pep8 < %{version} BuildArch: noarch +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif %python_subpackages %description @@ -59,6 +68,12 @@ %python_clone -a %{buildroot}%{_bindir}/pycodestyle %python_expand %fdupes %{buildroot}/%{$python_sitelib} +%post +%python_install_alternative pycodestyle + +%postun +%python_uninstall_alternative pycodestyle + %pre %python_libalternatives_reset_alternative pycodestyle