%global pypi_name boto3
Name:                python-%{pypi_name}
Version:             1.21.7
Release:             1
Summary:             The AWS SDK for Python
License:             Apache-2.0
URL:                 https://github.com/boto/boto3
Source0:             https://files.pythonhosted.org/packages/ff/fd/c25bdb2515c92c0e4e9d66d157e5275aee35f055f92b540e5e557ae56f9a/boto3-1.21.7.tar.gz
BuildArch:           noarch
%description
Boto3 is the Amazon Web Services (AWS) Software Development
Kit (SDK) for Python, which allows Python developers to
write software that makes use of services like Amazon S3
and Amazon EC2.

%package -n          python3-%{pypi_name}
Summary:             The AWS SDK for Python
BuildRequires:       python3-devel python3-setuptools
BuildRequires: python3-s3transfer
BuildRequires: python3-jmespath
BuildRequires: python3-botocore
BuildRequires: python3-nose2
BuildRequires: python3-mock
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
Boto3 is the Amazon Web Services (AWS) Software Development
Kit (SDK) for Python, which allows Python developers to
write software that makes use of services like Amazon S3
and Amazon EC2.

%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
rm -rf tests/integration

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-*.egg-info/

%changelog
* Fri Oct 14 2022 Ge Wang <wangge20@h-partners.com> - 1.21.7-1
- Update to version 1.21.7
* Tue Jan 25 2022 yangping <yangping69@huawei.com> - 1.20.3-1
- Package update to v1.20.3

* Tue Jan 11 2022 yaoxin <yaoxin30@huawei.com> - 1.17.26-2
- Remove the dependency on python-nose for compilation, and change it to python-nose2.

* Sun Jul 25 2021 OpenStack_SIG <openstack@openeuler.org> - 1.17.26-1
- update to 1.17.26

* Mon Nov 16 2020 yanan li <liyanan32@huawei.com> - 1.16.17-1
- Package init