Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-rpmfile for openSUSE:Factory checked in at 2025-08-18 16:11:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-rpmfile (Old) and /work/SRC/openSUSE:Factory/.python-rpmfile.new.1085 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-rpmfile" Mon Aug 18 16:11:55 2025 rev:4 rq:1300053 version:2.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-rpmfile/python-rpmfile.changes 2025-04-28 16:17:34.552275544 +0200 +++ /work/SRC/openSUSE:Factory/.python-rpmfile.new.1085/python-rpmfile.changes 2025-08-18 16:11:57.260148222 +0200 @@ -1,0 +2,6 @@ +Mon Aug 18 11:34:01 UTC 2025 - Daniel Garcia <daniel.gar...@suse.com> + +- Add %{?sle15_python_module_pythons} +- Fix alternatives, and use update-alternatives in SLE-15 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-rpmfile.spec ++++++ --- /var/tmp/diff_new_pack.XCbfnP/_old 2025-08-18 16:11:57.784169980 +0200 +++ /var/tmp/diff_new_pack.XCbfnP/_new 2025-08-18 16:11:57.788170145 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-rpmfile # -# 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,13 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + +%{?sle15_python_module_pythons} Name: python-rpmfile Version: 2.1.0 Release: 0 @@ -28,10 +34,15 @@ BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} -BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +%if %{with libalternatives} Requires: alts +BuildRequires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif Recommends: python-zstandard >= 0.13.0 Conflicts: rpmdevtools BuildArch: noarch @@ -45,7 +56,7 @@ Tools for inspecting RPM files in python. This module is modeled after the tarfile module. %prep -%setup -q -n rpmfile-%{version} +%autosetup -p1 -n rpmfile-%{version} sed -i '1{/#!/d}' rpmfile/cpiofile.py %build @@ -60,6 +71,12 @@ %pre %python_libalternatives_reset_alternative rpmfile +%post +%python_install_alternative rpmfile + +%postun +%python_uninstall_alternative rpmfile + %check # https://github.com/srossross/rpmfile/issues/35 # test_extract depend on github.com