Sync from SUSE:SLFO:Main aws-cli revision fe24cda9fdee7b8e2ef1136f1a3768ff

This commit is contained in:
Adrian Schröter 2024-05-03 11:15:13 +02:00
commit 4c82acbcef
5 changed files with 2381 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
1.31.11.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

48
ac_update-docutils.patch Normal file
View File

@ -0,0 +1,48 @@
From e2b4ba4e616cad6b9c4c3d4c999404ddda4261b2 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 20 Sep 2023 20:54:58 +0000
Subject: [PATCH] Update docutils requirement from <0.17,>=0.10 to >=0.10,<0.21
Updates the requirements on [docutils](https://docutils.sourceforge.io/) to permit the latest version.
---
updated-dependencies:
- dependency-name: docutils
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
---
requirements-docs.txt | 2 +-
setup.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/requirements-docs.txt b/requirements-docs.txt
index 2211707c5..68d63109d 100644
--- a/requirements-docs.txt
+++ b/requirements-docs.txt
@@ -3,7 +3,7 @@
jinja2<3.1
-docutils>=0.10,<0.17
+docutils>=0.10,<0.21
Sphinx==1.4.9
-e .
# alabaster version 0.7.13 requires Sphinx>1.6
diff --git a/setup.py b/setup.py
index 0dc82bf12..2e48a1a4e 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ def find_version(*file_paths):
install_requires = [
'botocore==1.33.11',
- 'docutils>=0.10,<0.17',
+ 'docutils>=0.10,<0.21',
's3transfer>=0.8.0,<0.9.0',
'PyYAML>=3.10,<6.1',
'colorama>=0.2.5,<0.4.5',
--
2.43.0

2182
aws-cli.changes Normal file

File diff suppressed because it is too large Load Diff

125
aws-cli.spec Normal file
View File

@ -0,0 +1,125 @@
#
# spec file for package aws-cli
#
# 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/
#
Name: aws-cli
Version: 1.31.11
Release: 0
Summary: Amazon Web Services Command Line Interface
License: Apache-2.0
Group: System/Management
URL: https://github.com/aws/aws-cli
Source0: https://github.com/aws/%{name}/archive/refs/tags/%{version}.tar.gz
Patch0: ac_update-docutils.patch
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: groff
Provides: awscli = %{version}
BuildArch: noarch
%if 0%{?suse_version} && 0%{?suse_version} > 1315
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3
Requires: python3-PyYAML <= 6.1
Requires: python3-PyYAML >= 3.10
Requires: python3-botocore >= 1.33.11
Requires: python3-colorama <= 0.5.0
Requires: python3-colorama >= 0.2.5
Requires: python3-docutils < 0.21
Requires: python3-docutils >= 0.10
Requires: python3-rsa < 5.0.0
Requires: python3-rsa >= 3.1.2
Requires: python3-s3transfer < 0.9.0
Requires: python3-s3transfer >= 0.8.0
Requires: python3-six
%else
BuildRequires: bash-completion
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python
Requires: python-PyYAML <= 6.1
Requires: python-PyYAML >= 3.10
Requires: python-botocore >= 1.33.11
Requires: python-colorama <= 0.5.0
Requires: python-colorama >= 0.2.5
Requires: python-docutils < 0.21
Requires: python-docutils >= 0.10
Requires: python-rsa <= 4.5.0
Requires: python-rsa >= 3.1.2
Requires: python-s3transfer < 0.9.0
Requires: python-s3transfer >= 0.8.0
Requires: python-six
%endif
%description
The AWS Command Line Interface (CLI) is a unified tool to manage AWS
services. With this tool, multiple AWS services can be controlled
from the command line and automated through scripts.
%prep
%setup -q
%patch0 -p1
sed -i 's/from botocore\.vendored //' awscli/customizations/awslambda.py
sed -i 's/botocore\.vendored\.//' awscli/customizations/configure/__init__.py
%build
%if 0%{?suse_version} && 0%{?suse_version} > 1315
python3 setup.py build
%else
python setup.py build
%endif
%install
%if 0%{?suse_version} && 0%{?suse_version} > 1315
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-scripts=%{_bindir}
%fdupes %{buildroot}%{python3_sitelib}
find %{buildroot}%{python3_sitelib}/awscli/examples -type f -exec chmod 644 {} \;
%else
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-scripts=%{_bindir}
%fdupes %{buildroot}%{python_sitelib}
find %{buildroot}%{python_sitelib}/awscli/examples -type f -exec chmod 644 {} \;
%endif
# No DOS crap
rm %{buildroot}/%{_bindir}/aws.cmd
# Shell completion
install -DTm644 %{buildroot}%{_bindir}/aws_bash_completer %{buildroot}%{_datadir}/bash-completion/completions/aws
install -DTm644 %{buildroot}%{_bindir}/aws_zsh_completer.sh %{buildroot}%{_sysconfdir}/zsh_completion.d/_aws
%files
%defattr(-, root, root)
%doc CHANGELOG.rst README.rst
%license LICENSE.txt
%if 0%{?suse_version} && 0%{?suse_version} > 1315
%dir %{python3_sitelib}/awscli
%dir %{python3_sitelib}/awscli-%{version}-py%{py3_ver}.egg-info
%{python3_sitelib}/awscli/*
%{python3_sitelib}/*egg-info/*
%else
%dir %{python_sitelib}/awscli
%dir %{python_sitelib}/awscli-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/awscli/*
%{python_sitelib}/*egg-info/*
%endif
%{_bindir}/aws
%{_bindir}/aws_completer
%exclude %{_bindir}/aws_bash_completer
%exclude %{_bindir}/aws_zsh_completer.sh
%{_datadir}/bash-completion/completions/aws
%dir %{_sysconfdir}/zsh_completion.d
%config %attr(644,root,root) %{_sysconfdir}/zsh_completion.d/_aws
%changelog