Blame awscli.spec

Fabio Alessandro Locati 47d29d
%if 0%{?rhel}
Fabio Alessandro Locati 33f79a
%bcond_with python3
Fabio Alessandro Locati 47d29d
%else
Fabio Alessandro Locati 33f79a
%bcond_without python3
Fabio Alessandro Locati 47d29d
%endif
Fabio Alessandro Locati 47d29d
Fabio Alessandro Locati ee5aef
%global botocore_version 1.4.85
Fabio Alessandro Locati 33f79a
Fabio Alessandro Locati 47d29d
Name:           awscli
Fabio Alessandro Locati ee5aef
Version:        1.11.28
Miro Hrončok d170b1
Release:        3%{?dist}
Fabio Alessandro Locati 47d29d
Summary:        Universal Command Line Environment for AWS
Fabio Alessandro Locati 47d29d
Fabio Alessandro Locati 47d29d
License:        ASL 2.0 and MIT
Fabio Alessandro Locati 47d29d
URL:            http://aws.amazon.com/cli
Fabio Alessandro Locati e78f5e
Source0:        https://pypi.io/packages/source/a/%{name}/%{name}-%{version}.tar.gz
Fabio Alessandro Locati 47d29d
BuildArch:      noarch
Fabio Alessandro Locati 33f79a
%if %{with python3}
Fabio Alessandro Locati 47d29d
BuildRequires:  python3-devel
Fabio Alessandro Locati 47d29d
BuildRequires:  python3-setuptools
Fabio Alessandro Locati 33f79a
Requires:       python3-botocore = %{botocore_version}
Fabio Alessandro Locati e78f5e
Requires:       python3-colorama >= 0.2.5
Fabio Alessandro Locati e78f5e
Requires:       python3-docutils >= 0.10
Fabio Alessandro Locati e78f5e
Requires:       python3-rsa >= 3.1.2
Fabio Alessandro Locati bd5978
Requires:       python3-s3transfer >= 0.1.9
Fabio Alessandro Locati fc8f0f
Requires:       python3-PyYAML >= 3.10
Fabio Alessandro Locati 47d29d
%else
Fabio Alessandro Locati 47d29d
BuildRequires:  python2-devel
Fabio Alessandro Locati 47d29d
BuildRequires:  python-setuptools
Fabio Alessandro Locati 33f79a
Requires:       python2-botocore = %{botocore_version}
Fabio Alessandro Locati e78f5e
Requires:       python-colorama >= 0.2.5
Fabio Alessandro Locati e78f5e
Requires:       python-docutils >= 0.10
Fabio Alessandro Locati e78f5e
Requires:       python2-rsa >= 3.1.2
Fabio Alessandro Locati bd5978
Requires:       python2-s3transfer >= 0.1.9
Fabio Alessandro Locati fc8f0f
Requires:       PyYAML >= 3.10
Fabio Alessandro Locati 33f79a
%endif # with python3
Fabio Alessandro Locati 47d29d
%if 0%{?fedora}
Fabio Alessandro Locati 47d29d
Recommends: bash-completion
Fabio Alessandro Locati 47d29d
Recommends: zsh
Fabio Alessandro Locati 47d29d
%endif # Fedora
Fabio Alessandro Locati 47d29d
Fabio Alessandro Locati 33f79a
%if %{with python3}
Fabio Alessandro Locati 47d29d
%{?python_provide:%python_provide python3-%{name}}
Fabio Alessandro Locati 47d29d
%else
Fabio Alessandro Locati 47d29d
%{?python_provide:%python_provide python2-%{name}}
Fabio Alessandro Locati 33f79a
%endif # with python3
Fabio Alessandro Locati 47d29d
Fabio Alessandro Locati 47d29d
%description
Fabio Alessandro Locati 47d29d
This package provides a unified
Fabio Alessandro Locati 47d29d
command line interface to Amazon Web Services.
Fabio Alessandro Locati 47d29d
Fabio Alessandro Locati 47d29d
%prep
Fabio Alessandro Locati 47d29d
%setup -q -n %{name}-%{version}
Fabio Alessandro Locati 47d29d
rm -rf %{name}.egg-info
Fabio Alessandro Locati 47d29d
Fabio Alessandro Locati 47d29d
%build
Fabio Alessandro Locati 33f79a
%if %{with python3}
Fabio Alessandro Locati 47d29d
%py3_build
Fabio Alessandro Locati 47d29d
%else
Fabio Alessandro Locati c204f1
%py2_build
Fabio Alessandro Locati 33f79a
%endif # with python3
Fabio Alessandro Locati 47d29d
Fabio Alessandro Locati 47d29d
%install
Fabio Alessandro Locati 33f79a
%if %{with python3}
Fabio Alessandro Locati 47d29d
%py3_install
Fabio Alessandro Locati 47d29d
%else
Fabio Alessandro Locati c204f1
%py2_install
Fabio Alessandro Locati 33f79a
%endif # with python3
Fabio Alessandro Locati 47d29d
# Fix path and permissions for bash completition
Fabio Alessandro Locati e31b42
%global bash_completion_dir /etc/bash_completion.d
Fabio Alessandro Locati 47d29d
mkdir -p %{buildroot}%{bash_completion_dir}
Fabio Alessandro Locati 47d29d
mv %{buildroot}%{_bindir}/aws_bash_completer %{buildroot}%{bash_completion_dir}
Fabio Alessandro Locati 47d29d
chmod 644 %{buildroot}%{bash_completion_dir}/aws_bash_completer
Fabio Alessandro Locati 47d29d
# Fix path and permissions for zsh completition
Fabio Alessandro Locati 47d29d
%global zsh_completion_dir /usr/share/zsh/site-functions
Fabio Alessandro Locati 47d29d
mkdir -p %{buildroot}%{zsh_completion_dir}
Fabio Alessandro Locati 47d29d
mv %{buildroot}%{_bindir}/aws_zsh_completer.sh %{buildroot}%{zsh_completion_dir}
Fabio Alessandro Locati 47d29d
chmod 644 %{buildroot}%{zsh_completion_dir}/aws_zsh_completer.sh
Fabio Alessandro Locati 47d29d
ls -alh %{buildroot}%{zsh_completion_dir}/aws_zsh_completer.sh
Fabio Alessandro Locati 47d29d
# We don't need the Windows CMD script
Fabio Alessandro Locati 47d29d
rm %{buildroot}%{_bindir}/aws.cmd
Fabio Alessandro Locati 47d29d
Fabio Alessandro Locati 47d29d
%files
Fabio Alessandro Locati 47d29d
%{!?_licensedir:%global license %doc} 
Fabio Alessandro Locati 47d29d
%doc README.rst
Fabio Alessandro Locati 47d29d
%license LICENSE.txt
Fabio Alessandro Locati 47d29d
%{_bindir}/aws
Fabio Alessandro Locati 47d29d
%{_bindir}/aws_completer
Fabio Alessandro Locati 47d29d
%dir %{bash_completion_dir}
Fabio Alessandro Locati 47d29d
%{bash_completion_dir}/aws_bash_completer
Fabio Alessandro Locati 47d29d
%dir %{zsh_completion_dir}
Fabio Alessandro Locati 47d29d
%{zsh_completion_dir}/aws_zsh_completer.sh
Fabio Alessandro Locati 33f79a
%if %{with python3}
Fabio Alessandro Locati 47d29d
%{python3_sitelib}/awscli
Fabio Alessandro Locati 47d29d
%{python3_sitelib}/%{name}-%{version}-py?.?.egg-info
Fabio Alessandro Locati 47d29d
%else
Fabio Alessandro Locati 47d29d
%{python2_sitelib}/awscli
Fabio Alessandro Locati 47d29d
%{python2_sitelib}/%{name}-%{version}-py?.?.egg-info
Fabio Alessandro Locati 33f79a
%endif # with python3
Fabio Alessandro Locati 47d29d
Fabio Alessandro Locati 47d29d
%changelog
Miro Hrončok d170b1
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.11.28-3
Miro Hrončok d170b1
- Rebuild for Python 3.6
Miro Hrončok d170b1
Fabio Alessandro Locati fc8f0f
* Tue Dec 13 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.28-2
Fabio Alessandro Locati fc8f0f
- Add PyYAML dependency
Fabio Alessandro Locati fc8f0f
Fabio Alessandro Locati fc8f0f
* Sun Dec 11 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.28-1
Fabio Alessandro Locati ee5aef
- Update to 1.11.28
Fabio Alessandro Locati ee5aef
Fabio Alessandro Locati fc8f0f
* Sat Dec 03 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.24-1
Fabio Alessandro Locati 33f79a
- Update to 1.11.24
Fabio Alessandro Locati 33f79a
Fabio Alessandro Locati fc8f0f
* Thu Nov 24 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.21-1
Fabio Alessandro Locati 1d05c9
- Update to 1.11.21
Fabio Alessandro Locati 1d05c9
Fabio Alessandro Locati fc8f0f
* Mon Oct 10 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.12-1
Fabio Alessandro Locati 1d05c9
- Update to 1.11.12
Fabio Alessandro Locati 879609
Fabio Alessandro Locati fc8f0f
* Sun Oct 02 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.11.0-1
Fabio Alessandro Locati b9d505
- Update to 1.11.0
Fabio Alessandro Locati b9d505
Fabio Alessandro Locati fc8f0f
* Wed Sep 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.67-1
Fabio Alessandro Locati 17e80b
- Update to 1.10.67
Fabio Alessandro Locati 17e80b
Fabio Alessandro Locati fc8f0f
* Wed Sep 07 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.62-1
Fabio Alessandro Locati 3f5dc1
- Update to 1.10.62
Fabio Alessandro Locati 3f5dc1
Fabio Alessandro Locati fc8f0f
* Wed Aug 24 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.59-1
Fabio Alessandro Locati ed5ed7
- Update to current upstream version
Fabio Alessandro Locati ed5ed7
Fabio Alessandro Locati fc8f0f
* Fri Aug 05 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.53-1
Fabio Alessandro Locati a8bdd4
- Update to current upstream version
Fabio Alessandro Locati a8bdd4
Fedora Release Engineering c58e60
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.45-2
Fedora Release Engineering c58e60
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
Fedora Release Engineering c58e60
Fabio Alessandro Locati fc8f0f
* Wed Jul 06 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.45-1
Fabio Alessandro Locati 7615ef
- Update to current upstream version
Fabio Alessandro Locati 7615ef
Fabio Alessandro Locati fc8f0f
* Wed Jun 08 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.36-1
Fabio Alessandro Locati e78f5e
- Update to current upstream version
Fabio Alessandro Locati e78f5e
Fabio Alessandro Locati fc8f0f
* Sat May 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.34-1
Fabio Alessandro Locati 0820a0
- Update to current upstream version
Fabio Alessandro Locati 0820a0
Fabio Alessandro Locati fc8f0f
* Wed Feb 24 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.7-1
Fabio Alessandro Locati f124c8
- Update to current upstream version
Fabio Alessandro Locati f124c8
Fabio Alessandro Locati fc8f0f
* Tue Feb 23 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.6-2
Fabio Alessandro Locati f4d1ba
- Fix broken dependency
Fabio Alessandro Locati f4d1ba
Fabio Alessandro Locati fc8f0f
* Fri Feb 19 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.6-1
Fabio Alessandro Locati ebb98a
- Update to current upstream version
Fabio Alessandro Locati ebb98a
Fabio Alessandro Locati fc8f0f
* Wed Feb 17 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.5-1
Fabio Alessandro Locati 95621d
- Update to current upstream version
Fabio Alessandro Locati 95621d
Fabio Alessandro Locati fc8f0f
* Fri Feb 12 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.4-1
Fabio Alessandro Locati ddfd86
- Update to current upstream version
Fabio Alessandro Locati ddfd86
Fabio Alessandro Locati fc8f0f
* Wed Feb 10 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.3-1
Fabio Alessandro Locati cf310e
- Update to current upstream version
Fabio Alessandro Locati cf310e
Fabio Alessandro Locati fc8f0f
* Tue Feb 09 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.2-1
Fabio Alessandro Locati 9b7fd5
- Update to current upstream version
Fabio Alessandro Locati 9b7fd5
Fabio Alessandro Locati fc8f0f
* Tue Feb 02 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.1-1
Fabio Alessandro Locati 79364a
- Update to current upstream version
Fabio Alessandro Locati 79364a
Fabio Alessandro Locati fc8f0f
* Fri Jan 22 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.10.0-1
Fabio Alessandro Locati 8064f3
- Update to current upstream version
Fabio Alessandro Locati 8064f3
Fabio Alessandro Locati fc8f0f
* Wed Jan 20 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.9.21-1
Fabio Alessandro Locati 95c26f
- Update to current upstream version
Fabio Alessandro Locati 95c26f
- Don't fix documentation permissions any more (pull request merged)
Fabio Alessandro Locati 95c26f
Fabio Alessandro Locati fc8f0f
* Fri Jan 15 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.920-1
Fabio Alessandro Locati fbcd14
- Update to current upstream version
Fabio Alessandro Locati fbcd14
Fabio Alessandro Locati fc8f0f
* Fri Jan 15 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.9.19-1
Fabio Alessandro Locati 9e2a3e
- Update to current upstream version
Fabio Alessandro Locati 9e2a3e
- Don't substitue the text of bin/aws_bash_completer anymore (pull request merged)
Fabio Alessandro Locati 9e2a3e
- Don't remove the shabang from awscli/paramfile.py anymore (pull request merged)
Fabio Alessandro Locati 9e2a3e
Fabio Alessandro Locati fc8f0f
* Wed Jan 13 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.9.18-1
Fabio Alessandro Locati e31b42
- Update to current upstream version
Fabio Alessandro Locati e31b42
- Fix completion for bash
Fabio Alessandro Locati e31b42
- Remove bcdoc dependency that is not used anymore
Fabio Alessandro Locati e31b42
Fabio Alessandro Locati fc8f0f
* Sun Jan 10 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.9.17-1
Fabio Alessandro Locati e31b42
- Update to current upstream version
Fabio Alessandro Locati b6e9de
- Lock the botocore dependency version
Fabio Alessandro Locati b6e9de
Fabio Alessandro Locati fc8f0f
* Sat Jan 09 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.9.16-1
Fabio Alessandro Locati 47d29d
- Update to current upstream version
Fabio Alessandro Locati 47d29d
- Add dir /usr/share/zsh
Fabio Alessandro Locati 47d29d
- Add dir /usr/share/zsh/site-functions
Fabio Alessandro Locati 47d29d
- Add MIT license (topictags.py is MIT licensed)
Fabio Alessandro Locati 47d29d
- Move dependency from python-devel to python2-devel
Fabio Alessandro Locati 47d29d
- Add Recommends lines for zsh and bsah-completion for Fedora
Fabio Alessandro Locati 47d29d
- Remove BuildReuires: bash-completion
Fabio Alessandro Locati 47d29d
- Remove the macros py2_build and py2_install to prefer the extended form
Fabio Alessandro Locati 47d29d
- Force non-executable bit for documentation
Fabio Alessandro Locati 47d29d
- Remove shabang from awscli/paramfile.py
Fabio Alessandro Locati 47d29d
- Fix bash completion
Fabio Alessandro Locati 47d29d
- Fix zsh completion
Fabio Alessandro Locati 47d29d
- Remove aws.cmd
Fabio Alessandro Locati 47d29d
Fabio Alessandro Locati fc8f0f
* Tue Dec 29 2015 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.9.15-1
Fabio Alessandro Locati 47d29d
- Initial package.