From 55b545fd7bccbbc14bc0684883f917bc6a9739c48801920ed36588f0de027a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 3 Oct 2024 15:24:57 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-gcemetadata revision 721ce17af2642dc959f4ba448d95d710 --- .gitattributes | 23 +++++++++++ gcemetadata-1.0.4.tar.bz2 | 3 ++ python-gcemetadata.changes | 84 ++++++++++++++++++++++++++++++++++++++ python-gcemetadata.spec | 75 ++++++++++++++++++++++++++++++++++ 4 files changed, 185 insertions(+) create mode 100644 .gitattributes create mode 100644 gcemetadata-1.0.4.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..9b03811 --- /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.0.4.tar.bz2 b/gcemetadata-1.0.4.tar.bz2 new file mode 100644 index 0000000..8e7b160 --- /dev/null +++ b/gcemetadata-1.0.4.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a32a7e393b976b9575db92bbcc4c64571c91a3977d6819bdd8f0f354677f27e2 +size 18889 diff --git a/python-gcemetadata.changes b/python-gcemetadata.changes new file mode 100644 index 0000000..23abb67 --- /dev/null +++ b/python-gcemetadata.changes @@ -0,0 +1,84 @@ +------------------------------------------------------------------- +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..7fa2991 --- /dev/null +++ b/python-gcemetadata.spec @@ -0,0 +1,75 @@ +# +# spec file for package python3-gcemetadata +# +# Copyright (c) 2020 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/ +# + + +%{?sle15_python_module_pythons} +%define upstream_name gcemetadata +Name: python-gcemetadata +Version: 1.0.4 +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 +Requires: python +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +BuildRequires: fdupes +Obsoletes: python3-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. + +%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 + +%files %{python_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} + +%changelog