2014-02-26 20:04:35 +01:00
|
|
|
#
|
|
|
|
# spec file for package aws-cli
|
|
|
|
#
|
2019-11-14 14:03:25 +01:00
|
|
|
# Copyright (c) 2019 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
|
2019-11-14 14:03:25 +01:00
|
|
|
Version: 1.16.281
|
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-09-27 20:42:49 +02:00
|
|
|
Requires: groff
|
2019-06-12 16:28:36 +02:00
|
|
|
BuildRequires: fdupes
|
2017-09-13 00:05:07 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} > 1315
|
|
|
|
Requires: python3
|
2019-06-12 16:28:36 +02:00
|
|
|
Requires: python3-PyYAML <= 6.0.0
|
2017-09-13 00:05:07 +02:00
|
|
|
Requires: python3-PyYAML >= 3.10
|
2019-11-14 14:03:25 +01:00
|
|
|
Requires: python3-botocore >= 1.13.17
|
2019-10-14 20:16:20 +02:00
|
|
|
Requires: python3-colorama <= 0.4.2
|
2017-09-13 00:05:07 +02:00
|
|
|
Requires: python3-colorama >= 0.2.5
|
|
|
|
Requires: python3-docutils >= 0.10
|
2019-06-12 16:28:36 +02:00
|
|
|
Requires: python3-rsa < 5.0.0
|
2017-09-13 00:05:07 +02:00
|
|
|
Requires: python3-rsa >= 3.1.2
|
2019-02-13 17:46:02 +01:00
|
|
|
Requires: python3-s3transfer < 0.3.0
|
|
|
|
Requires: python3-s3transfer >= 0.2.0
|
2018-09-17 16:53:24 +02:00
|
|
|
Requires: python3-six
|
2017-09-13 00:05:07 +02:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
%else
|
2014-10-24 02:03:57 +02:00
|
|
|
Requires: python
|
2018-07-23 15:34:23 +02:00
|
|
|
Requires: python-PyYAML <= 3.13
|
2016-12-15 14:42:20 +01:00
|
|
|
Requires: python-PyYAML >= 3.10
|
2019-02-13 17:46:02 +01:00
|
|
|
Requires: python-botocore >= 1.12.93
|
2017-11-09 23:36:34 +01:00
|
|
|
Requires: python-colorama <= 0.3.9
|
2016-04-11 23:54:31 +02:00
|
|
|
Requires: python-colorama >= 0.2.5
|
|
|
|
Requires: python-docutils >= 0.10
|
2016-11-17 09:54:46 +01:00
|
|
|
Requires: python-rsa <= 3.5.0
|
2016-04-11 23:54:31 +02:00
|
|
|
Requires: python-rsa >= 3.1.2
|
2019-02-13 17:46:02 +01:00
|
|
|
Requires: python-s3transfer < 0.3.0
|
|
|
|
Requires: python-s3transfer >= 0.2.0
|
2018-09-17 16:53:24 +02:00
|
|
|
Requires: python-six
|
2014-10-24 02:03:57 +02:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-setuptools
|
2014-02-26 20:04:35 +01:00
|
|
|
%endif
|
2017-09-13 00:05:07 +02:00
|
|
|
BuildArch: noarch
|
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
|
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
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2018-08-12 14:29:14 +02:00
|
|
|
%doc CHANGELOG.rst README.rst
|
|
|
|
%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
|
|
|
|
%{_bindir}/*
|
2014-02-26 20:04:35 +01:00
|
|
|
|
|
|
|
%changelog
|