Sync from SUSE:SLFO:Main python3-ec2metadata revision e75229513aaea32016221e3351f0d431

This commit is contained in:
Adrian Schröter 2024-05-03 23:43:08 +02:00
commit 516d822689
4 changed files with 168 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

BIN
ec2metadata-5.0.0.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,78 @@
-------------------------------------------------------------------
Wed Aug 23 21:26:04 UTC 2023 - Robert Schweikert <rjschwei@suse.com>
- 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 <rjschwei@suse.com>
- 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 <rjschwei@suse.com>
- 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 <rjschwei@suse.com>
- 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

64
python3-ec2metadata.spec Normal file
View File

@ -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