2014-02-26 20:04:35 +01:00
|
|
|
#
|
|
|
|
# spec file for package aws-cli
|
|
|
|
#
|
2020-01-30 20:01:59 +01:00
|
|
|
# Copyright (c) 2020 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
|
2020-04-03 16:54:13 +02:00
|
|
|
Version: 1.18.35
|
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
|
2014-10-24 02:03:57 +02:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2015-05-28 00:33:00 +02:00
|
|
|
Patch0: hide_py_pckgmgmt.patch
|
2019-06-12 16:28:36 +02:00
|
|
|
BuildRequires: fdupes
|
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
|
2020-04-03 16:54:13 +02:00
|
|
|
Requires: python3-botocore >= 1.15.35
|
|
|
|
Requires: python3-colorama <= 0.4.4
|
2020-01-30 20:01:59 +01:00
|
|
|
Requires: python3-colorama >= 0.2.5
|
|
|
|
Requires: python3-docutils >= 0.10
|
|
|
|
Requires: python3-rsa < 5.0.0
|
|
|
|
Requires: python3-rsa >= 3.1.2
|
2020-01-31 09:43:35 +01:00
|
|
|
Requires: python3-s3transfer < 0.4.0
|
|
|
|
Requires: python3-s3transfer >= 0.3.0
|
2018-09-17 16:53:24 +02:00
|
|
|
Requires: python3-six
|
2017-09-13 00:05:07 +02:00
|
|
|
%else
|
2020-01-30 20:01:59 +01:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-setuptools
|
2014-10-24 02:03:57 +02:00
|
|
|
Requires: python
|
2020-01-30 20:01:59 +01:00
|
|
|
Requires: python-PyYAML <= 3.13
|
|
|
|
Requires: python-PyYAML >= 3.10
|
|
|
|
Requires: python-botocore >= 1.12.93
|
|
|
|
Requires: python-colorama <= 0.3.9
|
|
|
|
Requires: python-colorama >= 0.2.5
|
|
|
|
Requires: python-docutils >= 0.10
|
|
|
|
Requires: python-rsa <= 3.5.0
|
|
|
|
Requires: python-rsa >= 3.1.2
|
2020-01-31 09:45:36 +01:00
|
|
|
Requires: python-s3transfer < 0.4.0
|
|
|
|
Requires: python-s3transfer >= 0.3.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
|
2016-04-11 23:54:31 +02:00
|
|
|
%patch0
|
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
|
2018-08-12 14:29:14 +02: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
|
|
|
|
%{_sysconfdir}/zsh_completion.d
|
2014-02-26 20:04:35 +01:00
|
|
|
|
|
|
|
%changelog
|