From ab9f6fe09d105084bfa04217033e9fa1998629f6a4887ac1e35de2b862df41c8 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Mon, 22 Jul 2024 19:50:52 +0000 Subject: [PATCH] Accepting request 1188256 from home:mcepl:branches:Cloud:Tools Replace python3-ec2metadata with universal packaging (https://trello.com/c/fupyiTVo/168-python3-packages-in-factory). OBS-URL: https://build.opensuse.org/request/show/1188256 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/python-ec2metadata?expand=0&rev=1 --- .gitattributes | 24 +++++++++++ .gitignore | 4 ++ ec2metadata-5.0.0.tar.bz2 | 3 ++ python-ec2metadata.changes | 85 ++++++++++++++++++++++++++++++++++++++ python-ec2metadata.spec | 71 +++++++++++++++++++++++++++++++ 5 files changed, 187 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ec2metadata-5.0.0.tar.bz2 create mode 100644 python-ec2metadata.changes create mode 100644 python-ec2metadata.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.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 +*.tar 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/.gitignore b/.gitignore new file mode 100644 index 0000000..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild 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/python-ec2metadata.changes b/python-ec2metadata.changes new file mode 100644 index 0000000..96e9dd4 --- /dev/null +++ b/python-ec2metadata.changes @@ -0,0 +1,85 @@ +------------------------------------------------------------------- +Thu May 30 17:37:05 UTC 2024 - Matej Cepl + +- Replace python3-ec2metadata with universal packaging + (https://trello.com/c/fupyiTVo/168-python3-packages-in-factory). +- Rename to python-ec2metadata. + +------------------------------------------------------------------- +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/python-ec2metadata.spec b/python-ec2metadata.spec new file mode 100644 index 0000000..095f7a9 --- /dev/null +++ b/python-ec2metadata.spec @@ -0,0 +1,71 @@ +# +# 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/ +# + + +%{?sle15_python_module_pythons} +%define upstream_name ec2metadata +Name: python-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: python +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +BuildRequires: fdupes +BuildArch: noarch +Requires(post): update-alternatives +Requires(postun): update-alternatives +%python_subpackages + +%description +Collect instance meta data in Amazon Compute CLoud instances + +%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/ec2metadata.1 %{buildroot}/%{_mandir}/man1 +%python_clone -a %{buildroot}%{_bindir}/%{upstream_name} +%python_clone -a %{buildroot}%{_mandir}/man1/ec2metadata.1 +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative ec2metadata ec2metadata.1%{?ext_man} + +%postun +%python_uninstall_alternative ec2metadata + +%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