python-botocore/python-botocore.spec

103 lines
3.1 KiB
RPMSpec
Raw Normal View History

2022-07-04 09:39:54 +00:00
%global _empty_manifest_terminate_build 0
2022-10-14 14:43:48 +08:00
Name: python-botocore
2022-11-10 16:16:19 +08:00
Version: 1.29.6
2022-10-14 14:43:48 +08:00
Release: 1
Summary: Low-level, data-driven core of boto 3.
License: Apache-2.0
URL: https://github.com/boto/botocore
2022-11-10 16:16:19 +08:00
Source0: https://files.pythonhosted.org/packages/35/c2/3341e352e84eb80f1f09f4b0da241d69fbba85bfe242ab5feccfd904fa66/botocore-1.29.6.tar.gz
2022-10-14 14:43:48 +08:00
BuildArch: noarch
Requires: python3-jmespath
Requires: python3-dateutil
Requires: python3-urllib3
2020-11-16 11:29:20 +08:00
%description
A low-level interface to a growing number of Amazon Web Services. The
botocore package is the foundation for the AWS CLI as well as boto3.
2022-07-04 09:39:54 +00:00
%package -n python3-botocore
2022-10-14 14:43:48 +08:00
Summary: Low-level, data-driven core of boto 3.
Provides: python-botocore
2021-07-26 17:44:16 +00:00
BuildRequires: python3-jmespath
2022-07-04 09:39:54 +00:00
BuildRequires: python3-dateutil
BuildRequires: python3-urllib3
2022-10-14 14:43:48 +08:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2022-04-06 16:44:00 +08:00
BuildRequires: python3-pytest
2022-07-04 09:39:54 +00:00
%description -n python3-botocore
A low-level interface to a growing number of Amazon Web Services. The
botocore package is the foundation for the AWS CLI as well as boto3.
%package help
Summary: Low-level, data-driven core of boto 3.
Provides: python3-botocore-doc
%description help
2020-11-16 11:29:20 +08:00
A low-level interface to a growing number of Amazon Web Services. The
botocore package is the foundation for the AWS CLI as well as boto3.
%prep
2022-07-04 09:39:54 +00:00
%autosetup -n botocore-%{version}
2020-11-16 11:29:20 +08:00
%build
%py3_build
%install
%py3_install
2022-07-04 09:39:54 +00:00
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
2021-07-26 17:44:16 +00:00
%check
2022-04-06 16:44:00 +08:00
%{__python3} -m pytest tests/unit
2021-07-26 17:44:16 +00:00
2022-07-04 09:39:54 +00:00
%files -n python3-botocore -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
2020-11-16 11:29:20 +08:00
%changelog
2022-11-10 16:16:19 +08:00
* Thu Nov 10 2022 liqiuyu <liqiuyu@kylinos.cn> - 1.29.6-1
- Upgrade package to version 1.29.6
2022-10-14 14:43:48 +08:00
* Fri Oct 14 2022 liqiuyu <liqiuyu@kylinos.cn> - 1.27.90-1
- Upgrade package to version 1.27.90
2022-07-04 09:39:54 +00:00
* Mon Jul 04 2022 OpenStack_SIG <openstack@openeuler.org> - 1.24.7-1
- Upgrade the version to 1.24.7
2022-04-06 16:44:00 +08:00
* Wed Apr 6 2022 caodongxia <caodongxia@h-partners.com> - 1.23.4-1
- Upgrade python-botocore to 1.23.4
* Thu Mar 31 202 wulei <wulei80@huawei.com> - 1.20.26.2
- Fix rejecting URLs with unsafe characters in is_valid_endpoint_url()
2021-07-26 17:44:16 +00:00
* Mon Jul 26 2021 OpenStack_SIG <openstack@openeuler.org> - 1.20.26-1
- update to 1.20.26
2020-11-16 11:29:20 +08:00
* Mon Nov 16 2020 yanan li <liyanan32@huawei.com> - 1.19.17-1
- Package init