!12 Upgrade package to version 0.6.0

From: @Gzx1999 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-09-24 06:25:37 +00:00 committed by Gitee
commit 577137ab19
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 57 additions and 25 deletions

View File

@ -1,44 +1,76 @@
%global commit 5a0117a8e848aebc8a0cb1f2f62c016ff8eec481568ba6714c48e23a01c1
%global _description \
S3transfer is a Python library for managing Amazon S3 transfers.
%global _empty_manifest_terminate_build 0
Name: python-s3transfer
Version: 0.5.2
Version: 0.6.0
Release: 1
Summary: Amazon S3 Transfer Manager
License: ASL 2.0
URL: https://pypi.org/project/s3transfer/
Source0: https://files.pythonhosted.org/packages/7e/19/f82e4af435a19b28bdbfba63f338ea20a264f4df4beaf8f2ab9bfa34072b/s3transfer-0.5.2.tar.gz
Summary: An Amazon S3 Transfer Manager
License: Apache-2.0
URL: https://github.com/boto/s3transfer
Source0: https://files.pythonhosted.org/packages/e1/eb/e57c93d5cd5edf8c1d124c831ef916601540db70acd96fa21fe60cef1365/s3transfer-0.6.0.tar.gz
BuildArch: noarch
%description %{_description}
Requires: python3-botocore
%description
S3transfer is a Python library for managing Amazon S3 transfers.
%package -n python3-s3transfer
Summary: %{summary}
BuildRequires: python3-devel python3-setuptools
Summary: An Amazon S3 Transfer Manager
Provides: python-s3transfer
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-s3transfer
S3transfer is a Python library for managing Amazon S3 transfers.
%description -n python3-s3transfer %{_description}
Python 3 version.
%package help
Summary: Development documents and examples for s3transfer
Provides: python3-s3transfer-doc
%description help
S3transfer is a Python library for managing Amazon S3 transfers.
%prep
%autosetup -n s3transfer-%{version}
rm -vrf *.egg-info
%build
%py3_build
%install
%py3_install
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 .
%files -n python3-s3transfer
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/s3transfer/
%{python3_sitelib}/s3transfer-*.egg-info/
%files -n python3-s3transfer -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Sat Sep 24 2022 guozhengxin <guozhengxin@kylinos.cn> - 0.6.0-1
- Upgrade package to version 0.6.0
* Wed Jul 27 2022 liksh <liks11@chinaunicom.cn> - 0.5.2-1
- Upgrade for openstack yoga

Binary file not shown.

BIN
s3transfer-0.6.0.tar.gz Normal file

Binary file not shown.