relax version requirements for docutils, s3transfer, colorama, rsa [release 1.31.5-3mamba;Mon Apr 01 2024]

This commit is contained in:
Silvan Calarco 2024-04-03 19:22:14 +02:00
parent 3f094207c1
commit 593fbdf401

View File

@ -1,53 +1,84 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-awscli Name: python-awscli
Version: 1.18.124 Version: 1.31.5
Release: 2mamba Release: 3mamba
Summary: A unified command line interface to Amazon Web Services Summary: A unified command line interface to Amazon Web Services
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://aws.amazon.com/cli/ URL: https://aws.amazon.com/cli/
Source: https://pypi.debian.net/awscli/awscli-%{version}.tar.gz Source: https://pypi.debian.net/awscli/awscli-%{version}.tar.gz
#Source: https://pypi.python.org/packages/source/a/awscli/awscli-%{version}.tar.gz
License: Apache License 2.0 License: Apache License 2.0
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel 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)
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
Requires: python-botocore-py3
Requires: python-dateutil-py3 %if "0%{?with_pyver}" == "03"
Requires: python-jmespath-py3 %define py_requires_append \
Requires: python-colorama-py3 Obsoletes: python-awscli < 1.31.5
Requires: python-docutils-py3 %endif
Requires: python-rsa-py3
Requires: python-pyasn1-py3 %if 0%{?with_pyver}
Requires: python-s3transfer-py3 %pyver_package
Requires: python3 >= %python3_version %endif
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
%{summary}. %{summary}.
%prep %prep
%setup -q -n awscli-%{version} %setup -q -n awscli-%{version}
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
%build %build
CFLAGS="%{optflags}" %{__python3} setup.py build CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python3} setup.py install \ %{__python} -m installer --destdir=%{buildroot} dist/*.whl
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python3_sitearch} \
--record=%{name}.filelist
sed -i "s,.*/man/.*,&.gz," %{name}.filelist #%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
%files -f %{name}.filelist %files %{?pyappend}
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/aws*
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%changelog %changelog
* 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
* Sun Aug 23 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.18.124-2mamba * Sun Aug 23 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.18.124-2mamba
- require python-s3transfer-py3 - require python-s3transfer-py3