2014-02-26 20:04:35 +01:00
|
|
|
#
|
|
|
|
# spec file for package aws-cli
|
|
|
|
#
|
2024-02-12 13:13:12 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2014-02-26 20:04:35 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-11-06 15:57:34 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-02-26 20:04:35 +01:00
|
|
|
#
|
|
|
|
|
2014-10-24 02:03:57 +02:00
|
|
|
|
|
|
|
Name: aws-cli
|
2024-02-12 13:13:12 +01:00
|
|
|
Version: 1.32.31
|
2014-10-24 02:03:57 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Amazon Web Services Command Line Interface
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: System/Management
|
2019-11-14 14:03:25 +01:00
|
|
|
URL: https://github.com/aws/aws-cli
|
2021-09-10 13:16:18 +02:00
|
|
|
Source0: https://github.com/aws/%{name}/archive/refs/tags/%{version}.tar.gz
|
2023-12-20 10:37:44 +01:00
|
|
|
Patch0: ac_update-docutils.patch
|
2019-06-12 16:28:36 +02:00
|
|
|
BuildRequires: fdupes
|
2022-02-01 13:04:39 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-01-30 20:01:59 +01:00
|
|
|
Requires: groff
|
2020-02-14 14:47:48 +01:00
|
|
|
Provides: awscli = %{version}
|
2020-01-30 20:01:59 +01:00
|
|
|
BuildArch: noarch
|
2024-02-12 13:13:12 +01:00
|
|
|
BuildRequires: python311-devel
|
|
|
|
BuildRequires: python311-pip
|
|
|
|
BuildRequires: python311-setuptools
|
|
|
|
BuildRequires: python311-wheel
|
|
|
|
Requires: python311
|
|
|
|
Requires: python311-botocore >= 1.34.31
|
|
|
|
Requires: python311-six
|
|
|
|
Requires: (python311-PyYAML >= 3.10 with python311-PyYAML <= 6.1)
|
|
|
|
Requires: (python311-colorama >= 0.2.5 with python311-colorama <= 0.5.0)
|
|
|
|
Requires: (python311-docutils >= 0.10 with python311-docutils < 0.21)
|
|
|
|
Requires: (python311-rsa >= 3.1.2 with python311-rsa < 5.0.0)
|
|
|
|
Requires: (python311-s3transfer >= 0.10.0 with python311-s3transfer < 0.11.0)
|
2014-02-26 20:04:35 +01:00
|
|
|
|
|
|
|
%description
|
2017-11-13 10:21:58 +01:00
|
|
|
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.
|
2014-02-26 20:04:35 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2023-12-20 10:37:44 +01:00
|
|
|
%patch0 -p1
|
2018-09-17 16:53:24 +02:00
|
|
|
sed -i 's/from botocore\.vendored //' awscli/customizations/awslambda.py
|
|
|
|
sed -i 's/botocore\.vendored\.//' awscli/customizations/configure/__init__.py
|
2024-02-12 13:13:12 +01:00
|
|
|
find . -type f | xargs grep -l '/usr/bin/env' | xargs sed -i 's/env python/python3.11/'
|
2014-02-26 20:04:35 +01:00
|
|
|
|
|
|
|
%build
|
2024-02-12 13:13:12 +01:00
|
|
|
#python3.11 setup.py build
|
|
|
|
%python311_pyproject_wheel
|
2014-02-26 20:04:35 +01:00
|
|
|
|
|
|
|
%install
|
2024-02-12 13:13:12 +01:00
|
|
|
#python3.11 setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-scripts=%{_bindir}
|
|
|
|
%python311_pyproject_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
find %{buildroot}%{python311_sitelib}/awscli/examples -type f -exec chmod 644 {} \;
|
2014-02-26 20:04:35 +01:00
|
|
|
# No DOS crap
|
|
|
|
rm %{buildroot}/%{_bindir}/aws.cmd
|
2020-02-18 02:55:55 +01:00
|
|
|
# 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
|
2014-02-26 20:04:35 +01:00
|
|
|
|
|
|
|
%files
|
2021-09-10 13:16:18 +02:00
|
|
|
%defattr(-, root, root)
|
2020-11-30 14:09:48 +01:00
|
|
|
%doc CHANGELOG.rst README.rst
|
2020-01-30 20:01:59 +01:00
|
|
|
%license LICENSE.txt
|
2024-02-12 13:13:12 +01:00
|
|
|
%dir %{python311_sitelib}/awscli
|
|
|
|
%dir %{python311_sitelib}/awscli-%{version}*-info
|
|
|
|
%{python311_sitelib}/awscli/*
|
|
|
|
%{python311_sitelib}/awscli-%{version}*-info/*
|
2020-02-18 02:55:55 +01:00
|
|
|
%{_bindir}/aws
|
|
|
|
%{_bindir}/aws_completer
|
|
|
|
%exclude %{_bindir}/aws_bash_completer
|
|
|
|
%exclude %{_bindir}/aws_zsh_completer.sh
|
|
|
|
%{_datadir}/bash-completion/completions/aws
|
2021-09-10 13:16:18 +02:00
|
|
|
%dir %{_sysconfdir}/zsh_completion.d
|
|
|
|
%config %attr(644,root,root) %{_sysconfdir}/zsh_completion.d/_aws
|
2014-02-26 20:04:35 +01:00
|
|
|
|
|
|
|
%changelog
|