]> git.pld-linux.org Git - packages/python3-s3transfer.git/blame - python3-s3transfer.spec
rebuild with tests and docs
[packages/python3-s3transfer.git] / python3-s3transfer.spec
CommitLineData
5a27e7c4
JB
1#
2# Conditional build:
3%bcond_without tests # unit tests
5a27e7c4
JB
4
5Summary: Amazon S3 Transfer Manager
6Summary(pl.UTF-8): Zarządca transferu danych Amazon S3
9b038559 7Name: python3-s3transfer
119fdffb 8Version: 0.5.0
ca24e836 9Release: 4
5a27e7c4
JB
10License: Apache v2.0
11Group: Libraries/Python
12#Source0Download: https://pypi.org/simple/s3transfer/
13Source0: https://files.pythonhosted.org/packages/source/s/s3transfer/s3transfer-%{version}.tar.gz
119fdffb 14# Source0-md5: 9416d1c7d33506501a8627bb1f7baf66
5a27e7c4
JB
15Patch0: %{name}-mock.patch
16Patch1: %{name}-tests.patch
17URL: https://pypi.org/project/s3transfer/
9b038559 18BuildRequires: python3-modules >= 1:3.6
5a27e7c4
JB
19BuildRequires: python3-setuptools
20%if %{with tests}
21BuildRequires: python3-botocore >= 1.12.36
22BuildRequires: python3-nose >= 1.3.3
23BuildRequires: python3-six
24%endif
5a27e7c4
JB
25BuildRequires: rpm-pythonprov
26BuildRequires: rpmbuild(macros) >= 1.714
9b038559 27Requires: python3-modules >= 1:3.6
5a27e7c4
JB
28BuildArch: noarch
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32S3transfer is a Python library for managing Amazon S3 transfers.
33
34%description -l pl.UTF-8
35S3transfer to pythonowa biblioteka do zarządzania przesyłami danych
36Amazon S3.
37
5a27e7c4
JB
38%prep
39%setup -q -n s3transfer-%{version}
40%patch0 -p1
41%patch1 -p1
42
43%build
5a27e7c4
JB
44%py3_build
45
46%if %{with tests}
47%{__python3} -m unittest discover -s tests/unit
48%endif
5a27e7c4
JB
49
50%install
51rm -rf $RPM_BUILD_ROOT
52
5a27e7c4 53%py3_install
5a27e7c4
JB
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
5a27e7c4
JB
58%files
59%defattr(644,root,root,755)
60%doc README.rst
5a27e7c4
JB
61%{py3_sitescriptdir}/s3transfer
62%{py3_sitescriptdir}/s3transfer-%{version}-py*.egg-info
This page took 0.061507 seconds and 4 git commands to generate.