2014-02-26 20:04:35 +01:00
|
|
|
#
|
|
|
|
# spec file for package aws-cli
|
|
|
|
#
|
2022-01-06 14:24:26 +01:00
|
|
|
# Copyright (c) 2022 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
|
2022-06-30 22:00:15 +02:00
|
|
|
Version: 1.25.20
|
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
|
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
|
2017-09-13 00:05:07 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} > 1315
|
2020-01-30 20:01:59 +01:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
2017-09-13 00:05:07 +02:00
|
|
|
Requires: python3
|
2020-01-30 20:01:59 +01:00
|
|
|
Requires: python3-PyYAML <= 6.0.0
|
|
|
|
Requires: python3-PyYAML >= 3.10
|
2022-06-30 22:00:15 +02:00
|
|
|
Requires: python3-botocore >= 1.27.20
|
2022-04-27 13:40:02 +02:00
|
|
|
Requires: python3-colorama <= 0.4.5
|
2020-01-30 20:01:59 +01:00
|
|
|
Requires: python3-colorama >= 0.2.5
|
2021-11-01 08:52:41 +01:00
|
|
|
Requires: python3-docutils < 0.20
|
2020-01-30 20:01:59 +01:00
|
|
|
Requires: python3-docutils >= 0.10
|
|
|
|
Requires: python3-rsa < 5.0.0
|
|
|
|
Requires: python3-rsa >= 3.1.2
|
2022-06-03 14:57:30 +02:00
|
|
|
Requires: python3-s3transfer < 0.7.0
|
|
|
|
Requires: python3-s3transfer >= 0.6.0
|
2018-09-17 16:53:24 +02:00
|
|
|
Requires: python3-six
|
2017-09-13 00:05:07 +02:00
|
|
|
%else
|
2020-04-07 13:34:26 +02:00
|
|
|
BuildRequires: bash-completion
|
2020-01-30 20:01:59 +01:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-setuptools
|
2014-10-24 02:03:57 +02:00
|
|
|
Requires: python
|
2021-04-13 18:48:20 +02:00
|
|
|
Requires: python-PyYAML <= 5.5
|
2020-01-30 20:01:59 +01:00
|
|
|
Requires: python-PyYAML >= 3.10
|
2022-06-30 22:00:15 +02:00
|
|
|
Requires: python-botocore >= 1.27.20
|
2022-04-27 13:40:02 +02:00
|
|
|
Requires: python-colorama <= 0.4.5
|
2020-01-30 20:01:59 +01:00
|
|
|
Requires: python-colorama >= 0.2.5
|
|
|
|
Requires: python-docutils >= 0.10
|
2021-04-13 18:48:20 +02:00
|
|
|
Requires: python-rsa <= 4.5.0
|
2020-01-30 20:01:59 +01:00
|
|
|
Requires: python-rsa >= 3.1.2
|
2022-06-03 14:57:30 +02:00
|
|
|
Requires: python-s3transfer < 0.7.0
|
|
|
|
Requires: python-s3transfer >= 0.6.0
|
2018-09-17 16:53:24 +02:00
|
|
|
Requires: python-six
|
2014-02-26 20:04:35 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%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
|
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
|
2014-02-26 20:04:35 +01:00
|
|
|
|
|
|
|
%build
|
2017-09-13 00:05:07 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} > 1315
|
|
|
|
python3 setup.py build
|
|
|
|
%else
|
2014-02-26 20:04:35 +01:00
|
|
|
python setup.py build
|
2017-09-13 00:05:07 +02:00
|
|
|
%endif
|
2014-02-26 20:04:35 +01:00
|
|
|
|
|
|
|
%install
|
2017-09-13 00:05:07 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} > 1315
|
|
|
|
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-scripts=%{_bindir}
|
2019-06-12 16:28:36 +02:00
|
|
|
%fdupes %{buildroot}%{python3_sitelib}
|
|
|
|
find %{buildroot}%{python3_sitelib}/awscli/examples -type f -exec chmod 644 {} \;
|
2017-09-13 00:05:07 +02:00
|
|
|
%else
|
2014-02-26 20:04:35 +01:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-scripts=%{_bindir}
|
2019-06-12 16:28:36 +02:00
|
|
|
%fdupes %{buildroot}%{python_sitelib}
|
|
|
|
find %{buildroot}%{python_sitelib}/awscli/examples -type f -exec chmod 644 {} \;
|
2017-09-13 00:05:07 +02:00
|
|
|
%endif
|
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
|
2017-09-13 00:05:07 +02:00
|
|
|
%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
|
2014-02-26 20:04:35 +01:00
|
|
|
%dir %{python_sitelib}/awscli
|
|
|
|
%dir %{python_sitelib}/awscli-%{version}-py%{py_ver}.egg-info
|
|
|
|
%{python_sitelib}/awscli/*
|
|
|
|
%{python_sitelib}/*egg-info/*
|
2017-09-13 00:05:07 +02:00
|
|
|
%endif
|
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
|