From 516d8226894e9a1813cbfef3866e2e433f52dfe55d90f637765da26d2cfb6d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 23:43:08 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python3-ec2metadata revision e75229513aaea32016221e3351f0d431 --- .gitattributes | 23 +++++++++++ ec2metadata-5.0.0.tar.bz2 | 3 ++ python3-ec2metadata.changes | 78 +++++++++++++++++++++++++++++++++++++ python3-ec2metadata.spec | 64 ++++++++++++++++++++++++++++++ 4 files changed, 168 insertions(+) create mode 100644 .gitattributes create mode 100644 ec2metadata-5.0.0.tar.bz2 create mode 100644 python3-ec2metadata.changes create mode 100644 python3-ec2metadata.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/ec2metadata-5.0.0.tar.bz2 b/ec2metadata-5.0.0.tar.bz2 new file mode 100644 index 0000000..6b5f55f --- /dev/null +++ b/ec2metadata-5.0.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48839c1691b4b0e3a179c5248b2bb5dc85c13cfac9c1cfdb2aef6c82d23ce23a +size 16925 diff --git a/python3-ec2metadata.changes b/python3-ec2metadata.changes new file mode 100644 index 0000000..23df66c --- /dev/null +++ b/python3-ec2metadata.changes @@ -0,0 +1,78 @@ +------------------------------------------------------------------- +Wed Aug 23 21:26:04 UTC 2023 - Robert Schweikert + +- Update to version 5.0.0 (bsc#1214215) + + Remove the --use-token command line option. Aws is deprecating access + to instance metadata without authentication token. Ability to access + metadat without token has been removed + + Support access to the metadata server over IPv6. If the customer + enables the IPv6 endpoint for an instance it will be preferred over the + IPv4 endpoint + +------------------------------------------------------------------- +Mon Oct 10 20:52:54 UTC 2022 - Robert Schweikert + +- Update to version 4.0.0 (bsc#1204066) + + Disambiguate cli options for duplicate endpoints. This is an + incompatible change for some API versions of IMDS. When a duplicate + endpoint is detected the cli option for both endpoints is expanded to a + unique name. + +------------------------------------------------------------------- +Mon Aug 3 18:30:06 UTC 2020 - Robert Schweikert + +- Update to version 3.0.3 (bsc#1174743, bsc#1174837) + + Prefer IMDSv2 and switch all IMDS access requests to support v2 token + based access method. + +------------------------------------------------------------------- +Wed Dec 4 22:21:34 UTC 2019 - Robert Schweikert + +- Update to version 3.0.2 (bsc#1157901, bsc#1157902) + + Add man page + + Support accessing IMDS with a token (API change) to support + disabling unauthenticated acces of IMDS + +------------------------------------------------------------------- +Wed Sep 20 13:24:31 UTC 2017 - rjschwei@suse.com + +- Update to version 2.0.0 + + Port to Python 3 + +------------------------------------------------------------------- +Wed Aug 17 15:58:05 UTC 2016 - jgleissner@suse.com + +- Bump to version 1.5.4 (bsc#994138 bsc#994139) + + ec2metadata: do not use proxy + +------------------------------------------------------------------- +Tue Mar 31 15:26:45 UTC 2015 - rjschwei@suse.com + +- Bump to version 1.5.3 (bnc#924626) + + Properly write metadata to file if no query argument is provided + + Properly generate XML for 'public-keys' query option + + Document the 'api' option in the help message + + Alpha sort the options displayed with the help message + +------------------------------------------------------------------- +Wed Aug 13 08:29:31 UTC 2014 - rschweikert@suse.com + +- Bump to version 1.5.2 + + fix the no argument use case + +------------------------------------------------------------------- +Mon Jun 23 16:54:53 UTC 2014 - rschweikert@suse.com + +- Switch the upstream URL to the forked project, origin project + appears not to be maintained + +------------------------------------------------------------------- +Fri May 30 19:03:58 UTC 2014 - rschweikert@suse.com + +- Include in SLE 12 (FATE #315990) + +------------------------------------------------------------------- +Fri May 30 18:59:30 UTC 2014 - rschweikert@suse.com + +- Initial build + diff --git a/python3-ec2metadata.spec b/python3-ec2metadata.spec new file mode 100644 index 0000000..f1fb7b2 --- /dev/null +++ b/python3-ec2metadata.spec @@ -0,0 +1,64 @@ +# +# spec file for package python3-ec2metadata +# +# Copyright (c) 2023 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/ +# + + +%define upstream_name ec2metadata +Name: python3-ec2metadata +Version: 5.0.0 +Release: 0 +Summary: Collect instance metadata in EC2 +License: GPL-3.0-or-later +Group: System/Management +URL: https://github.com/SUSE-Enceladus/ec2metadata +Source0: %{upstream_name}-%{version}.tar.bz2 +Requires: python3 +BuildRequires: python3-setuptools +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +# Package renamed in SLE 12, do not remove Provides, Obsolete directives +# until after SLE 12 EOL +Provides: python-ec2metadata = %{version} +Obsoletes: python-ec2metadata < %{version} + +%description +Collect instance meta data in Amazon Compute CLoud instances + +%prep +%setup -q -n %{upstream_name}-%{version} + +%build +python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +install -d -m 755 %{buildroot}/%{_mandir}/man1 +install -m 644 man/man1/ec2metadata.1 %{buildroot}/%{_mandir}/man1 +gzip %{buildroot}/%{_mandir}/man1/ec2metadata.1 + +%files +%defattr(-,root,root,-) +%doc README.md +%license LICENSE +%{_mandir}/man*/* +%dir %{python3_sitelib}/%{upstream_name} +%dir %{python3_sitelib}/%{upstream_name}-%{version}-py%{py3_ver}.egg-info +%{_bindir}/* +%{python3_sitelib}/%{upstream_name}/* +%{python3_sitelib}/*egg-info/* + +%changelog