|
|
adca06 |
%if 0%{?rhel} && 0%{?rhel} <= 8
|
|
|
adca06 |
%bcond_with python3
|
|
|
adca06 |
%else
|
|
|
adca06 |
%bcond_without python3
|
|
|
adca06 |
%endif
|
|
|
adca06 |
|
|
|
adca06 |
%global botocore_version 1.4.43
|
|
|
adca06 |
|
|
|
adca06 |
# python-colorama
|
|
|
adca06 |
%global colorama_version 0.3.7
|
|
|
adca06 |
%global bundled_lib_dir bundled
|
|
|
adca06 |
%global colorama_dir %{bundled_lib_dir}/colorama
|
|
|
adca06 |
|
|
|
adca06 |
Name: awscli
|
|
|
4e3d3a |
Version: 1.23.2
|
|
|
4e3d3a |
Release: 1%{?dist}.1
|
|
|
adca06 |
Summary: Universal Command Line Environment for AWS
|
|
|
adca06 |
|
|
|
adca06 |
License: ASL 2.0
|
|
|
adca06 |
URL: http://aws.amazon.com/cli
|
|
|
adca06 |
Source0: %{name}/%{name}-%{version}.tar.gz
|
|
|
adca06 |
Source1: colorama-%{colorama_version}.tar.gz
|
|
|
adca06 |
Patch0: python-rsa-to-cryptography.patch
|
|
|
adca06 |
Patch1: bundled-python-botocore.patch
|
|
|
adca06 |
BuildArch: noarch
|
|
|
adca06 |
%if %{with python3}
|
|
|
adca06 |
BuildRequires: python3-devel
|
|
|
adca06 |
BuildRequires: python3-setuptools
|
|
|
adca06 |
Requires: python3-botocore = %{botocore_version}
|
|
|
adca06 |
Requires: python3-colorama >= 0.2.5
|
|
|
adca06 |
Requires: python3-docutils >= 0.10
|
|
|
adca06 |
Requires: python3-cryptography >= 1.7.2
|
|
|
adca06 |
Requires: python3-s3transfer >= 0.1.9
|
|
|
adca06 |
Requires: python3-PyYAML >= 3.10
|
|
|
adca06 |
%else
|
|
|
adca06 |
BuildRequires: python-devel
|
|
|
adca06 |
BuildRequires: python-setuptools
|
|
|
adca06 |
# python-botocore bundled in python-s3transfer
|
|
|
adca06 |
#Requires: python-botocore >= %{botocore_version}
|
|
|
adca06 |
# python-colorama bundle
|
|
|
adca06 |
#Requires: python-colorama >= 0.2.5
|
|
|
adca06 |
Provides: bundled(python-colorama) = %{colorama_version}
|
|
|
adca06 |
Requires: python-docutils >= 0.10
|
|
|
adca06 |
Requires: python-cryptography >= 1.7.2
|
|
|
adca06 |
Requires: python-s3transfer >= 0.1.9
|
|
|
adca06 |
Requires: PyYAML >= 3.10
|
|
|
adca06 |
%endif # with python3
|
|
|
adca06 |
%if 0%{?fedora}
|
|
|
adca06 |
Recommends: bash-completion
|
|
|
adca06 |
Recommends: zsh
|
|
|
adca06 |
%endif # Fedora
|
|
|
adca06 |
|
|
|
adca06 |
%if %{with python3}
|
|
|
adca06 |
%{?python_provide:%python_provide python3-%{name}}
|
|
|
adca06 |
%else
|
|
|
adca06 |
%{?python_provide:%python_provide python-%{name}}
|
|
|
adca06 |
%endif # with python3
|
|
|
adca06 |
|
|
|
adca06 |
%description
|
|
|
adca06 |
This package provides a unified
|
|
|
adca06 |
command line interface to Amazon Web Services.
|
|
|
adca06 |
|
|
|
adca06 |
%prep
|
|
|
adca06 |
%setup -q -n %{name}-%{version}
|
|
|
adca06 |
rm -rf %{name}.egg-info
|
|
|
adca06 |
|
|
|
adca06 |
# replace python-rsa with python-cryptography
|
|
|
adca06 |
%patch0 -p1
|
|
|
adca06 |
|
|
|
adca06 |
# python-botocore bundled in python-s3transfer
|
|
|
4e3d3a |
%patch1 -p1 -F2
|
|
|
135717 |
|
|
|
adca06 |
# python-colorama bundle
|
|
|
4e3d3a |
#%patch2 -p1
|
|
|
adca06 |
mkdir -p %{bundled_lib_dir}
|
|
|
adca06 |
tar -xzf %SOURCE1 -C %{bundled_lib_dir}
|
|
|
adca06 |
mv %{bundled_lib_dir}/colorama-%{colorama_version} %{colorama_dir}
|
|
|
adca06 |
cp %{colorama_dir}/LICENSE.txt colorama_LICENSE.txt
|
|
|
adca06 |
cp %{colorama_dir}/README.rst colorama_README.rst
|
|
|
adca06 |
|
|
|
adca06 |
pushd %{colorama_dir}
|
|
|
adca06 |
# remove bundled egg-info
|
|
|
adca06 |
rm -rf *.egg-info
|
|
|
adca06 |
popd
|
|
|
adca06 |
# python-colorama: append bundled-directory to search path
|
|
|
adca06 |
sed -i "/^import colorama/isys.path.insert(0, '%{_libdir}/fence-agents/bundled')" awscli/customizations/history/show.py awscli/table.py
|
|
|
adca06 |
# python-jmespath: append bundled-directory to search path
|
|
|
adca06 |
sed -i "/^import jmespath/iimport sys\nsys.path.insert(0, '%{_libdir}/fence-agents/bundled')" awscli/customizations/arguments.py
|
|
|
adca06 |
|
|
|
adca06 |
%build
|
|
|
adca06 |
%if %{with python3}
|
|
|
adca06 |
%py3_build
|
|
|
adca06 |
%else
|
|
|
adca06 |
%py2_build
|
|
|
adca06 |
%endif # with python3
|
|
|
adca06 |
|
|
|
adca06 |
# python-colorama bundle
|
|
|
adca06 |
pushd %{colorama_dir}
|
|
|
adca06 |
%{__python2} setup.py build
|
|
|
adca06 |
popd
|
|
|
adca06 |
|
|
|
adca06 |
%install
|
|
|
adca06 |
%if %{with python3}
|
|
|
adca06 |
%py3_install
|
|
|
adca06 |
%else
|
|
|
adca06 |
%py2_install
|
|
|
adca06 |
%endif # with python3
|
|
|
adca06 |
# Fix path and permissions for bash completition
|
|
|
adca06 |
%global bash_completion_dir /etc/bash_completion.d
|
|
|
adca06 |
mkdir -p %{buildroot}%{bash_completion_dir}
|
|
|
adca06 |
mv %{buildroot}%{_bindir}/aws_bash_completer %{buildroot}%{bash_completion_dir}
|
|
|
adca06 |
chmod 644 %{buildroot}%{bash_completion_dir}/aws_bash_completer
|
|
|
adca06 |
# Fix path and permissions for zsh completition
|
|
|
adca06 |
%global zsh_completion_dir /usr/share/zsh/site-functions
|
|
|
adca06 |
mkdir -p %{buildroot}%{zsh_completion_dir}
|
|
|
adca06 |
mv %{buildroot}%{_bindir}/aws_zsh_completer.sh %{buildroot}%{zsh_completion_dir}
|
|
|
adca06 |
chmod 644 %{buildroot}%{zsh_completion_dir}/aws_zsh_completer.sh
|
|
|
adca06 |
ls -alh %{buildroot}%{zsh_completion_dir}/aws_zsh_completer.sh
|
|
|
adca06 |
# We don't need the Windows CMD script
|
|
|
adca06 |
rm %{buildroot}%{_bindir}/aws.cmd
|
|
|
adca06 |
# python-botocore bundle
|
|
|
adca06 |
pushd %{colorama_dir}
|
|
|
adca06 |
%{__python2} setup.py install -O1 --skip-build --root %{buildroot} --install-lib %{_libdir}/fence-agents/bundled
|
|
|
adca06 |
popd
|
|
|
adca06 |
|
|
|
adca06 |
%files
|
|
|
adca06 |
%{!?_licensedir:%global license %doc}
|
|
|
adca06 |
%doc README.rst colorama_README.rst
|
|
|
adca06 |
%license LICENSE.txt colorama_LICENSE.txt
|
|
|
adca06 |
%{_bindir}/aws
|
|
|
adca06 |
%{_bindir}/aws_completer
|
|
|
adca06 |
%dir %{bash_completion_dir}
|
|
|
adca06 |
%{bash_completion_dir}/aws_bash_completer
|
|
|
adca06 |
%dir %{zsh_completion_dir}
|
|
|
adca06 |
%{zsh_completion_dir}/aws_zsh_completer.sh
|
|
|
adca06 |
%if %{with python3}
|
|
|
adca06 |
%{python3_sitelib}/awscli
|
|
|
adca06 |
%{python3_sitelib}/%{name}-%{version}-py?.?.egg-info
|
|
|
adca06 |
%else
|
|
|
adca06 |
%{python2_sitelib}/awscli
|
|
|
adca06 |
%{python2_sitelib}/%{name}-%{version}-py?.?.egg-info
|
|
|
adca06 |
%endif # with python3
|
|
|
adca06 |
# python-colorama bundle
|
|
|
adca06 |
%{_libdir}/fence-agents/bundled
|
|
|
adca06 |
|
|
|
adca06 |
%changelog
|
|
|
4e3d3a |
* Tue May 3 2022 Oyvind Albrigtsen <oalbrigt@redhat.com> - 1.23.2-1.1
|
|
|
4e3d3a |
- Rebase to 1.23.2 to fix issues with upgraded libs
|
|
|
135717 |
|
|
|
4e3d3a |
Resolves: rhbz#2073979
|
|
|
135717 |
|
|
|
adca06 |
* Mon Feb 12 2018 Oyvind Albrigtsen <oalbrigt@redhat.com> - 1.14.28-5
|
|
|
adca06 |
- Append python-botocore and python-jmespath bundled directory to
|
|
|
adca06 |
search path where needed
|
|
|
adca06 |
|
|
|
adca06 |
Resolves: rhbz#1509434
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Feb 7 2018 Oyvind Albrigtsen <oalbrigt@redhat.com> - 1.14.28-4
|
|
|
adca06 |
- Bundle python-colorama
|
|
|
adca06 |
|
|
|
adca06 |
Resolves: rhbz#1509434
|
|
|
adca06 |
|
|
|
adca06 |
* Fri Jan 19 2018 Oyvind Albrigtsen <oalbrigt@redhat.com> - 1.14.28-1
|
|
|
adca06 |
- Update to 1.14.28
|
|
|
adca06 |
- Replace python-rsa with python-cryptography
|
|
|
adca06 |
|
|
|
adca06 |
Resolves: rhbz#1509434
|
|
|
adca06 |
|
|
|
adca06 |
* Sun Aug 13 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.133-1
|
|
|
adca06 |
- Update to 1.11.133
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.109-3
|
|
|
adca06 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Jun 21 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.109-2
|
|
|
adca06 |
- Forgot to update
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Jun 21 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.109-1
|
|
|
adca06 |
- Update to 1.11.109
|
|
|
adca06 |
|
|
|
adca06 |
* Tue May 23 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.90-1
|
|
|
adca06 |
- Update to 1.11.90
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Mar 15 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.63-1
|
|
|
adca06 |
- Update to 1.11.63
|
|
|
adca06 |
|
|
|
adca06 |
* Sat Feb 25 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.55-1
|
|
|
adca06 |
- Update to 1.11.55
|
|
|
adca06 |
|
|
|
adca06 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.40-2
|
|
|
adca06 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
adca06 |
|
|
|
adca06 |
* Fri Jan 20 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.40-1
|
|
|
adca06 |
- Update to 1.11.40
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Dec 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.34-2
|
|
|
adca06 |
- Update to 1.11.34
|
|
|
adca06 |
|
|
|
adca06 |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.11.28-3
|
|
|
adca06 |
- Rebuild for Python 3.6
|
|
|
adca06 |
|
|
|
adca06 |
* Tue Dec 13 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.28-2
|
|
|
adca06 |
- Add PyYAML dependency
|
|
|
adca06 |
|
|
|
adca06 |
* Sun Dec 11 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.28-1
|
|
|
adca06 |
- Update to 1.11.28
|
|
|
adca06 |
|
|
|
adca06 |
* Sat Dec 03 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.24-1
|
|
|
adca06 |
- Update to 1.11.24
|
|
|
adca06 |
|
|
|
adca06 |
* Thu Nov 24 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.21-1
|
|
|
adca06 |
- Update to 1.11.21
|
|
|
adca06 |
|
|
|
adca06 |
* Mon Oct 10 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.12-1
|
|
|
adca06 |
- Update to 1.11.12
|
|
|
adca06 |
|
|
|
adca06 |
* Sun Oct 02 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.0-1
|
|
|
adca06 |
- Update to 1.11.0
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Sep 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.67-1
|
|
|
adca06 |
- Update to 1.10.67
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Sep 07 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.62-1
|
|
|
adca06 |
- Update to 1.10.62
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Aug 24 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.59-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
|
|
|
adca06 |
* Fri Aug 05 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.53-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
|
|
|
adca06 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.45-2
|
|
|
adca06 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Jul 06 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.45-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Jun 08 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.36-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
|
|
|
adca06 |
* Sat May 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.34-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Feb 24 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.7-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
|
|
|
adca06 |
* Tue Feb 23 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.6-2
|
|
|
adca06 |
- Fix broken dependency
|
|
|
adca06 |
|
|
|
adca06 |
* Fri Feb 19 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.6-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Feb 17 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.5-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
|
|
|
adca06 |
* Fri Feb 12 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.4-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Feb 10 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.3-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
|
|
|
adca06 |
* Tue Feb 09 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.2-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
|
|
|
adca06 |
* Tue Feb 02 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.1-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
|
|
|
adca06 |
* Fri Jan 22 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.0-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Jan 20 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.9.21-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
- Don't fix documentation permissions any more (pull request merged)
|
|
|
adca06 |
|
|
|
adca06 |
* Fri Jan 15 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.920-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
|
|
|
adca06 |
* Fri Jan 15 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.9.19-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
- Don't substitue the text of bin/aws_bash_completer anymore (pull request merged)
|
|
|
adca06 |
- Don't remove the shabang from awscli/paramfile.py anymore (pull request merged)
|
|
|
adca06 |
|
|
|
adca06 |
* Wed Jan 13 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.9.18-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
- Fix completion for bash
|
|
|
adca06 |
- Remove bcdoc dependency that is not used anymore
|
|
|
adca06 |
|
|
|
adca06 |
* Sun Jan 10 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.9.17-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
- Lock the botocore dependency version
|
|
|
adca06 |
|
|
|
adca06 |
* Sat Jan 09 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.9.16-1
|
|
|
adca06 |
- Update to current upstream version
|
|
|
adca06 |
- Add dir /usr/share/zsh
|
|
|
adca06 |
- Add dir /usr/share/zsh/site-functions
|
|
|
adca06 |
- Add MIT license (topictags.py is MIT licensed)
|
|
|
adca06 |
- Move dependency from python-devel to python2-devel
|
|
|
adca06 |
- Add Recommends lines for zsh and bsah-completion for Fedora
|
|
|
adca06 |
- Remove BuildReuires: bash-completion
|
|
|
adca06 |
- Remove the macros py2_build and py2_install to prefer the extended form
|
|
|
adca06 |
- Force non-executable bit for documentation
|
|
|
adca06 |
- Remove shabang from awscli/paramfile.py
|
|
|
adca06 |
- Fix bash completion
|
|
|
adca06 |
- Fix zsh completion
|
|
|
adca06 |
- Remove aws.cmd
|
|
|
adca06 |
|
|
|
adca06 |
* Tue Dec 29 2015 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.9.15-1
|
|
|
adca06 |
- Initial package.
|