diff --git a/python-s3transfer.spec b/python-s3transfer.spec index ec139ea9a7eeb6a9eda8ed6a5668cd0d8007d6be..e17f7610f0db617e739bdb6e123ef6e8eb8de2a7 100644 --- a/python-s3transfer.spec +++ b/python-s3transfer.spec @@ -1,44 +1,76 @@ -%global commit 5a0117a8e848aebc8a0cb1f2f62c016ff8eec481568ba6714c48e23a01c1 -%global _description \ +%global _empty_manifest_terminate_build 0 +Name: python-s3transfer +Version: 0.6.0 +Release: 1 +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 + +Requires: python3-botocore + +%description S3transfer is a Python library for managing Amazon S3 transfers. -Name: python-s3transfer -Version: 0.5.2 -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 -BuildArch: noarch - -%description %{_description} - %package -n python3-s3transfer -Summary: %{summary} -BuildRequires: python3-devel python3-setuptools - -%description -n python3-s3transfer %{_description} +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. -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 - -%files -n python3-s3transfer -%license LICENSE.txt -%doc README.rst -%{python3_sitelib}/s3transfer/ -%{python3_sitelib}/s3transfer-*.egg-info/ +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 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Sat Sep 24 2022 guozhengxin - 0.6.0-1 +- Upgrade package to version 0.6.0 + * Wed Jul 27 2022 liksh - 0.5.2-1 - Upgrade for openstack yoga diff --git a/s3transfer-0.5.2.tar.gz b/s3transfer-0.5.2.tar.gz deleted file mode 100644 index caa7e632905c45489deb094da637b63662471f6a..0000000000000000000000000000000000000000 Binary files a/s3transfer-0.5.2.tar.gz and /dev/null differ diff --git a/s3transfer-0.6.0.tar.gz b/s3transfer-0.6.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..00954456c5f0df0e7a700fbd88568137cb6ed0b3 Binary files /dev/null and b/s3transfer-0.6.0.tar.gz differ