3 %bcond_without tests # unit tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Amazon S3 Transfer Manager
8 Summary(pl.UTF-8): Zarządca transferu danych Amazon S3
9 Name: python-s3transfer
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/s3transfer/
15 Source0: https://files.pythonhosted.org/packages/source/s/s3transfer/s3transfer-%{version}.tar.gz
16 # Source0-md5: b0145fc2087107262b6c4d0f077ad3e2
17 Patch0: %{name}-mock.patch
18 Patch1: %{name}-tests.patch
19 URL: https://pypi.org/project/s3transfer/
21 BuildRequires: python-modules >= 1:2.7
22 BuildRequires: python-setuptools
24 BuildRequires: python-botocore >= 1.12.36
25 BuildRequires: python-futures >= 2.2.0
26 BuildRequires: python-mock >= 1.3.0
27 BuildRequires: python-nose >= 1.3.3
28 BuildRequires: python-six
32 BuildRequires: python3-modules >= 1:3.4
33 BuildRequires: python3-setuptools
35 BuildRequires: python3-botocore >= 1.12.36
36 BuildRequires: python3-nose >= 1.3.3
37 BuildRequires: python3-six
40 BuildRequires: rpm-pythonprov
41 BuildRequires: rpmbuild(macros) >= 1.714
42 Requires: python-modules >= 1:2.7
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 S3transfer is a Python library for managing Amazon S3 transfers.
49 %description -l pl.UTF-8
50 S3transfer to pythonowa biblioteka do zarządzania przesyłami danych
53 %package -n python3-s3transfer
54 Summary: Amazon S3 Transfer Manager
55 Summary(pl.UTF-8): Zarządca transferu danych Amazon S3
56 Group: Libraries/Python
57 Requires: python3-modules >= 1:3.4
59 %description -n python3-s3transfer
60 S3transfer is a Python library for managing Amazon S3 transfers.
62 %description -n python3-s3transfer -l pl.UTF-8
63 S3transfer to pythonowa biblioteka do zarządzania przesyłami danych
67 %setup -q -n s3transfer-%{version}
76 %{__python} -m unittest discover -s tests/unit
84 %{__python3} -m unittest discover -s tests/unit
89 rm -rf $RPM_BUILD_ROOT
102 rm -rf $RPM_BUILD_ROOT
106 %defattr(644,root,root,755)
108 %{py_sitescriptdir}/s3transfer
109 %{py_sitescriptdir}/s3transfer-%{version}-py*.egg-info
113 %files -n python3-s3transfer
114 %defattr(644,root,root,755)
116 %{py3_sitescriptdir}/s3transfer
117 %{py3_sitescriptdir}/s3transfer-%{version}-py*.egg-info