Enable python dependency generator
References: https://fedoraproject.org/wiki/Changes/EnablingPythonGeneratorsByDefault Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
9a4b100c16
commit
890811c750
17
awscli.spec
17
awscli.spec
@ -1,4 +1,5 @@
|
||||
%if 0%{?rhel}
|
||||
%{?python_enable_dependency_generator}
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||
%bcond_with python3
|
||||
%else
|
||||
%bcond_without python3
|
||||
@ -8,7 +9,7 @@
|
||||
|
||||
Name: awscli
|
||||
Version: 1.16.85
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Universal Command Line Environment for AWS
|
||||
|
||||
License: ASL 2.0 and MIT
|
||||
@ -19,27 +20,31 @@ BuildArch: noarch
|
||||
%if %{with python3}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
%if %{undefined __pythondist_requires}
|
||||
Requires: python3-botocore = %{botocore_version}
|
||||
Requires: python3-colorama >= 0.2.5
|
||||
Requires: python3-docutils >= 0.10
|
||||
Requires: python3-rsa >= 3.1.2
|
||||
Requires: python3-s3transfer >= 0.1.9
|
||||
Requires: python3-PyYAML >= 3.10
|
||||
%endif
|
||||
%else
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-setuptools
|
||||
%if %{undefined __pythondist_requires}
|
||||
Requires: python2-botocore = %{botocore_version}
|
||||
Requires: python-colorama >= 0.2.5
|
||||
Requires: python-docutils >= 0.10
|
||||
Requires: python2-rsa >= 3.1.2
|
||||
Requires: python2-s3transfer >= 0.1.9
|
||||
Requires: PyYAML >= 3.10
|
||||
%endif
|
||||
%endif # with python3
|
||||
%if 0%{?fedora}
|
||||
%if ! (0%{?rhel} && 0%{?rhel} <= 7)
|
||||
Recommends: bash-completion
|
||||
Recommends: zsh
|
||||
%endif # Fedora
|
||||
Recommends: groff
|
||||
%endif # Fedora
|
||||
|
||||
%if %{with python3}
|
||||
%{?python_provide:%python_provide python3-%{name}}
|
||||
@ -83,7 +88,6 @@ ls -alh %{buildroot}%{zsh_completion_dir}/aws_zsh_completer.sh
|
||||
rm %{buildroot}%{_bindir}/aws.cmd
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %doc}
|
||||
%doc README.rst
|
||||
%license LICENSE.txt
|
||||
%{_bindir}/aws
|
||||
@ -101,6 +105,9 @@ rm %{buildroot}%{_bindir}/aws.cmd
|
||||
%endif # with python3
|
||||
|
||||
%changelog
|
||||
* Fri Jan 11 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.16.85-2
|
||||
- Enable python dependency generator
|
||||
|
||||
* Mon Nov 19 2018 David Duncan <davdunc@amazon.com> - 1.16.57-1
|
||||
- Update to 1.16.57. Fixes bug #1613078
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user