2024-04-03 19:22:14 +02:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
2024-01-06 10:47:56 +01:00
|
|
|
Name: python-awscli
|
2024-04-03 19:22:14 +02:00
|
|
|
Version: 1.31.5
|
|
|
|
Release: 3mamba
|
2024-01-06 10:47:56 +01:00
|
|
|
Summary: A unified command line interface to Amazon Web Services
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-04-03 19:22:14 +02:00
|
|
|
URL: https://aws.amazon.com/cli/
|
2024-01-06 10:47:56 +01:00
|
|
|
Source: https://pypi.debian.net/awscli/awscli-%{version}.tar.gz
|
2024-01-06 10:47:56 +01:00
|
|
|
License: Apache License 2.0
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-04-03 19:22:14 +02:00
|
|
|
BuildRequires: libpython311-devel
|
|
|
|
BuildRequires: python3.11dist(botocore)
|
|
|
|
BuildRequires: python3.11dist(colorama)
|
|
|
|
BuildRequires: python3.11dist(docutils)
|
|
|
|
BuildRequires: python3.11dist(pyyaml)
|
|
|
|
BuildRequires: python3.11dist(rsa)
|
|
|
|
BuildRequires: python3.11dist(s3transfer)
|
2024-01-06 10:47:56 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-04-03 19:22:14 +02:00
|
|
|
|
|
|
|
%if "0%{?with_pyver}" == "03"
|
|
|
|
%define py_requires_append \
|
|
|
|
Obsoletes: python-awscli < 1.31.5
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
2024-01-06 10:47:56 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n awscli-%{version}
|
2024-04-03 19:22:14 +02:00
|
|
|
sed -i "s|botocore==|botocore>=|" setup.cfg setup.py awscli.egg-info/requires.txt
|
|
|
|
sed -i "s|\(docutils[^,]*\)[,]*<0.17[,]*|\1|" setup.cfg setup.py awscli.egg-info/requires.txt
|
|
|
|
sed -i "s|\(s3transfer[^,]*\)[,]*<0.9.0[,]*|\1|" setup.cfg setup.py awscli.egg-info/requires.txt
|
|
|
|
sed -i "s|\(colorama[^,]*\)[,]*<0.4.5[,]*|\1|" setup.cfg setup.py awscli.egg-info/requires.txt
|
|
|
|
sed -i "s|\(rsa[^,]*\)[,]*<4.8[,]*|\1|" setup.cfg setup.py awscli.egg-info/requires.txt
|
|
|
|
|
2024-01-06 10:47:56 +01:00
|
|
|
|
|
|
|
%build
|
2024-04-03 19:22:14 +02:00
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
2024-01-06 10:47:56 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-04-03 19:22:14 +02:00
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
2024-01-06 10:47:56 +01:00
|
|
|
|
2024-04-03 19:22:14 +02:00
|
|
|
#%if "%{?with_pyver}" != "3"
|
|
|
|
## Rename any conflicting file outside of python site packages tree
|
|
|
|
#for f in %{_bindir}/pdm; do
|
|
|
|
# mv %{buildroot}${f}{,-%{?pyappend}}
|
|
|
|
#done
|
|
|
|
#%endif
|
2024-01-06 10:47:56 +01:00
|
|
|
|
2024-04-03 19:22:14 +02:00
|
|
|
%files %{?pyappend}
|
2024-01-06 10:47:56 +01:00
|
|
|
%defattr(-,root,root)
|
2024-04-03 19:22:14 +02:00
|
|
|
%{_bindir}/aws*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}
|
|
|
|
%{python_sitelib}/%{pkgname}/*
|
2024-01-06 10:47:56 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-04-03 19:22:14 +02:00
|
|
|
* Mon Apr 01 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.31.5-3mamba
|
|
|
|
- relax version requirements for docutils, s3transfer, colorama, rsa
|
|
|
|
|
|
|
|
* Tue Feb 13 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.31.5-2mamba
|
|
|
|
- relax version requirement for python-botocore
|
|
|
|
|
|
|
|
* Fri Dec 01 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.31.5-1mamba
|
|
|
|
- update to 1.31.5
|
|
|
|
|
|
|
|
* Tue Jan 11 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.22.32-1mamba
|
|
|
|
- update to 1.22.32
|
|
|
|
|
|
|
|
* Tue Aug 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.20.27-1mamba
|
|
|
|
- update to 1.20.27
|
|
|
|
|
2024-01-06 10:47:56 +01:00
|
|
|
* Sun Aug 23 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.18.124-2mamba
|
|
|
|
- require python-s3transfer-py3
|
|
|
|
|
|
|
|
* Sun Aug 23 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.18.124-1mamba
|
|
|
|
- update to 1.18.124
|
|
|
|
|
2024-01-06 10:47:56 +01:00
|
|
|
* Mon Dec 21 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.12-1mamba
|
|
|
|
- package created using the webbuild interface
|