Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-ec2metadata for openSUSE:Factory checked in at 2025-04-20 09:35:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ec2metadata (Old) and /work/SRC/openSUSE:Factory/.python-ec2metadata.new.30101 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ec2metadata" Sun Apr 20 09:35:13 2025 rev:2 rq:1270877 version:5.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ec2metadata/python-ec2metadata.changes 2024-07-25 12:05:34.121970379 +0200 +++ /work/SRC/openSUSE:Factory/.python-ec2metadata.new.30101/python-ec2metadata.changes 2025-04-20 20:07:32.020014190 +0200 @@ -1,0 +2,6 @@ +Mon Apr 7 13:20:57 UTC 2025 - Robert Schweikert <rjsch...@suse.com> + +- Switch the build to s apecific Python interpreter. This avoids + chasing Python binary names in our image build setup. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ec2metadata.spec ++++++ --- /var/tmp/diff_new_pack.hTO252/_old 2025-04-20 20:07:32.592038232 +0200 +++ /var/tmp/diff_new_pack.hTO252/_new 2025-04-20 20:07:32.592038232 +0200 @@ -1,7 +1,7 @@ # -# spec file for package python3-ec2metadata +# spec file for package python-ec2metadata # -# Copyright (c) 2023 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,7 +16,13 @@ # +%if 0%{?suse_version} >= 1600 +%define pythons %{primary_python} +%else %{?sle15_python_module_pythons} +%endif +%global _sitelibdir %{%{pythons}_sitelib} + %define upstream_name ec2metadata Name: python-ec2metadata Version: 5.0.0 @@ -26,17 +32,17 @@ Group: System/Management URL: https://github.com/SUSE-Enceladus/ec2metadata Source0: %{upstream_name}-%{version}.tar.bz2 -Requires: python -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module pip} -BuildRequires: %{python_module wheel} -BuildRequires: python-rpm-macros +BuildRequires: %{pythons}-pip +BuildRequires: %{pythons}-setuptools +BuildRequires: %{pythons}-wheel BuildRequires: fdupes +BuildRequires: python-rpm-macros Obsoletes: python3-ec2metadata <= %{version} +Obsoletes: python310-ec2metadata < %{version} +Obsoletes: python311-ec2metadata < %{version} +Obsoletes: python312-ec2metadata < %{version} +Obsoletes: python313-ec2metadata < %{version} BuildArch: noarch -Requires(post): update-alternatives -Requires(postun): update-alternatives -%python_subpackages %description Collect instance meta data in Amazon Compute CLoud instances @@ -51,21 +57,13 @@ %pyproject_install install -d -m 755 %{buildroot}/%{_mandir}/man1 install -m 644 man/man1/ec2metadata.1 %{buildroot}/%{_mandir}/man1 -%python_clone -a %{buildroot}%{_bindir}/%{upstream_name} -%python_clone -a %{buildroot}%{_mandir}/man1/ec2metadata.1 -%python_expand %fdupes %{buildroot}%{$python_sitelib} - -%post -%python_install_alternative ec2metadata ec2metadata.1%{?ext_man} - -%postun -%python_uninstall_alternative ec2metadata +%fdupes %{buildroot}%{$_sitelibdir} -%files %{python_files} +%files %doc README.md %license LICENSE -%python_alternative %{_bindir}/%{upstream_name} -%{python_sitelib}/%{upstream_name} -%{python_sitelib}/%{upstream_name}-%{version}*-info -%python_alternative %{_mandir}/man1/%{upstream_name}.1%{?ext_man} +%{_bindir}/%{upstream_name} +%{_sitelibdir}/%{upstream_name} +%{_sitelibdir}/%{upstream_name}-%{version}*-info +%{_mandir}/man1/%{upstream_name}.1%{?ext_man}