Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-gcemetadata for openSUSE:Factory checked in at 2025-04-20 09:34:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-gcemetadata (Old) and /work/SRC/openSUSE:Factory/.python-gcemetadata.new.30101 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-gcemetadata" Sun Apr 20 09:34:57 2025 rev:2 rq:1270818 version:1.0.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-gcemetadata/python-gcemetadata.changes 2024-07-25 12:05:47.294501173 +0200 +++ /work/SRC/openSUSE:Factory/.python-gcemetadata.new.30101/python-gcemetadata.changes 2025-04-20 20:07:40.304362376 +0200 @@ -1,0 +2,13 @@ +Tue Apr 8 20:18:43 UTC 2025 - Robert Schweikert <rjsch...@suse.com> + +- Switch te SLE 15 build setup to also use a macro instead of referencing + the Python 3.11 interpreter directly. + +------------------------------------------------------------------- +Mon Apr 7 19:12:27 UTC 2025 - Robert Schweikert <rjsch...@suse.com> + +- Switch to a defined Python interpreter. Use the primary interpreter + in SLE 16 and later distribution and Python 3.11 for SLE 15 SP4 and + later. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-gcemetadata.spec ++++++ --- /var/tmp/diff_new_pack.BywZCK/_old 2025-04-20 20:07:40.780382383 +0200 +++ /var/tmp/diff_new_pack.BywZCK/_new 2025-04-20 20:07:40.780382383 +0200 @@ -1,7 +1,7 @@ # -# spec file for package python3-gcemetadata +# spec file for package python-gcemetadata # -# Copyright (c) 2020 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 gcemetadata Name: python-gcemetadata Version: 1.0.4 @@ -26,17 +32,17 @@ Group: System/Management URL: https://github.com/SUSE/Enceladus 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-gcemetadata < %{version} +Obsoletes: python310-gcemetadata < %{version} +Obsoletes: python311-gcemetadata < %{version} +Obsoletes: python312-gcemetadata < %{version} +Obsoletes: python313-gcemetadata < %{version} BuildArch: noarch -Requires(post): update-alternatives -Requires(postun): update-alternatives -%python_subpackages %description A module for collecting instance metadata from Google Compute Engine. @@ -44,31 +50,20 @@ %prep %autosetup -p1 -n %{upstream_name}-%{version} - %build %pyproject_wheel - %install %pyproject_install install -d -m 755 %{buildroot}/%{_mandir}/man1 install -m 644 man/man1/gcemetadata.1 %{buildroot}/%{_mandir}/man1 -%python_clone -a %{buildroot}%{_bindir}/%{upstream_name} -%python_clone -a %{buildroot}%{_mandir}/man1/gcemetadata.1 -%python_expand %fdupes %{buildroot}%{$python_sitelib} - - -%post -%python_install_alternative gcemetadata gcemetadata.1%{?ext_man} - -%postun -%python_uninstall_alternative gcemetadata +%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}