From 669e8737e06f4e93c39ad2dcdd2dde5acef43e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 25 Feb 2026 12:23:34 +0100 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 python-gcemetadata revision aae745521b95766dbdc8f191c3866f16 --- .gitattributes | 23 +++++++++ gcemetadata-1.1.0.tar.bz2 | 3 ++ python-gcemetadata.changes | 103 +++++++++++++++++++++++++++++++++++++ python-gcemetadata.spec | 70 +++++++++++++++++++++++++ 4 files changed, 199 insertions(+) create mode 100644 .gitattributes create mode 100644 gcemetadata-1.1.0.tar.bz2 create mode 100644 python-gcemetadata.changes create mode 100644 python-gcemetadata.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/gcemetadata-1.1.0.tar.bz2 b/gcemetadata-1.1.0.tar.bz2 new file mode 100644 index 0000000..3a854df --- /dev/null +++ b/gcemetadata-1.1.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0fd04fd871d73ba79cea5c8d812cdb553b00e87e97c3ab97bfef8ad1f06f97c4 +size 18948 diff --git a/python-gcemetadata.changes b/python-gcemetadata.changes new file mode 100644 index 0000000..85c4407 --- /dev/null +++ b/python-gcemetadata.changes @@ -0,0 +1,103 @@ +------------------------------------------------------------------- +Wed Jan 28 19:19:51 UTC 2026 - Sean Marlow + +- Update to version 1.1.0 (jsc#PCT-590, jsc#PED-8945) + + Add licenses option in identity command. + +------------------------------------------------------------------- +Tue Apr 8 20:18:43 UTC 2025 - Robert Schweikert + +- Switch the 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 + +- Switch to a defined Python interpreter. Use the primary interpreter + in SLE 16 and later distributions and Python 3.11 for SLE 15 SP4 and + later. + +------------------------------------------------------------------- +Mon Jul 22 19:08:19 UTC 2024 - Robert Schweikert + +- Obsolete the Python 3.6 build + +------------------------------------------------------------------- +Thu May 30 17:37:05 UTC 2024 - Matej Cepl + +- Replace python3-gcemetadata with universal packaging + (https://trello.com/c/fupyiTVo/168-python3-packages-in-factory). +- Rename to python-gcemetadata. + +------------------------------------------------------------------- +Mon Jun 22 11:37:33 UTC 2020 - Robert Schweikert + +- Update to version 1.0.4 (bsc#1173136) + + Fix typo, missing "=" for "identity" option in processed command + line options causes mis-identification of instance as missing identity + data access + +------------------------------------------------------------------- +Fri Jun 5 18:46:02 UTC 2020 - Robert Schweikert + +- Include in SLE 12 (jsc#PM-1900) + +------------------------------------------------------------------- +Wed Jun 5 22:01:52 UTC 2019 - Robert Schweikert + +- Update to version 1.0.3 (bsc#1134510) + + Handle the condition where the identity data of the instance may + not be accessible from the metadata server and provide proper + error messaging +- From 1.0.2 + + Avoid traceback when not running in GCE, by testing access to the + metdata server first before performing othre operations + +------------------------------------------------------------------- +Sun Jul 29 10:26:18 UTC 2018 - jengelh@inai.de + +- Use noun phrase in summary. + +------------------------------------------------------------------- +Tue Jun 19 21:14:21 UTC 2018 - rjschwei@suse.com + +- Update to version 1.0.1 (bsc#1097505) + + Support instances with multiple Nics + +------------------------------------------------------------------- +Fri Nov 17 14:16:33 UTC 2017 - rjschwei@suse.com + +- Update to version 1.0.0 + + Port to Python 3 + +------------------------------------------------------------------- +Wed Aug 23 23:24:23 UTC 2017 - rjschwei@suse.com + +- Update to version 0.3.2 (bsc#1053695, bsc#1053695) + + Implement new feature to generate license verification token + + Add man page +- From 0.3.1 (bsc#1053687) + + The --identity argument must accept a value and the value is required +- From 0.3.0 + + Properly handle overlapping enpoint names +- From 0.2.2 + + Support writing data to a file and as XML snippets + +------------------------------------------------------------------- +Tue Aug 15 09:14:31 UTC 2017 - rjschwei@suse.com + +- Update to version 0.2.1 (bsc#1045148) + + Set proper value for dict lookup to avoid traceback + +------------------------------------------------------------------- +Fri Mar 13 18:18:11 UTC 2015 - rjschwei@suse.com + +- Update to version 0.2.0 + + Implement query functionality for all options + +------------------------------------------------------------------- +Tue Feb 17 17:39:40 UTC 2015 - rjschwei@suse.com + +- Initial build, include in SLE 12 (FATE#318435) + + Version 0.0.5 + diff --git a/python-gcemetadata.spec b/python-gcemetadata.spec new file mode 100644 index 0000000..0728fa5 --- /dev/null +++ b/python-gcemetadata.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-gcemetadata +# +# Copyright (c) 2026 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%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.1.0 +Release: 0 +Summary: Python module for collecting instance metadata from GCE +License: GPL-3.0-or-later +Group: System/Management +URL: https://github.com/SUSE/Enceladus +Source0: %{upstream_name}-%{version}.tar.bz2 +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 + +%description +A module for collecting instance metadata from Google Compute Engine. + +%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 +%fdupes %{buildroot}%{_sitelibdir} + +%files +%doc README.md +%license LICENSE +%{_bindir}/%{upstream_name} +%{_sitelibdir}/%{upstream_name} +%{_sitelibdir}/%{upstream_name}-%{version}*-info +%{_mandir}/man1/%{upstream_name}.1%{?ext_man} + +%changelog