703567
%if 0%{?rhel} && 0%{?rhel} <= 7
703567
# Minimum nose version is 1.3.3, while EL7 has 1.3.0
703567
%bcond_with tests
703567
%else
703567
%bcond_without tests
703567
%endif
703567
703567
%global pypi_name s3transfer
703567
703567
Name:           python-%{pypi_name}
703567
Version:        0.1.13
703567
Release:        1%{?dist}
703567
Summary:        An Amazon S3 Transfer Manager
703567
703567
License:        ASL 2.0
703567
URL:            https://github.com/boto/s3transfer
703567
Source0:        https://pypi.io/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
703567
BuildArch:      noarch
703567
703567
%description
703567
S3transfer is a Python library for managing Amazon S3 transfers.
703567
703567
%package -n     python3-%{pypi_name}
703567
Summary:        An Amazon S3 Transfer Manager
703567
BuildRequires:  python3-devel
703567
BuildRequires:  python3-setuptools
703567
%if %{with tests}
703567
BuildRequires:  python3-nose
703567
BuildRequires:  python3-mock
703567
BuildRequires:  python3-wheel
703567
BuildRequires:  python3-botocore
703567
BuildRequires:  python3-coverage
703567
BuildRequires:  python3-unittest2
703567
%endif # tests
703567
Requires:       python3-botocore
703567
%{?python_provide:%python_provide python3-%{pypi_name}}
703567
703567
%description -n python3-%{pypi_name}
703567
S3transfer is a Python library for managing Amazon S3 transfers.
703567
703567
%prep
703567
%setup -q -n %{pypi_name}-%{version}
703567
# Remove online tests (see https://github.com/boto/s3transfer/issues/8)
703567
rm -rf tests/integration
703567
703567
%build
703567
%py3_build
703567
703567
%install
703567
%py3_install
703567
703567
%if %{with tests}
703567
%check
703567
nosetests-%{python3_version} --with-coverage --cover-erase --cover-package s3transfer --with-xunit --cover-xml -v tests/unit/ tests/functional/
703567
%endif # tests
703567
703567
%files -n python3-%{pypi_name} 
703567
%doc README.rst
703567
%license LICENSE.txt
703567
%{python3_sitelib}/%{pypi_name}
703567
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
703567
703567
%changelog
703567
* Mon Jun 11 2018 Oyvind Albrigtsen <oalbrigt@redhat.com> - 0.1.13-1
703567
- Update to 0.1.13
703567
- Remove python2 package
703567
703567
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.10-2
703567
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
703567
703567
* Wed Dec 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.10-1
703567
- Update to 0.1.10
703567
703567
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.1.9-2
703567
- Rebuild for Python 3.6
703567
703567
* Thu Oct 27 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.9-1
703567
- Update to 0.1.9
703567
703567
* Mon Oct 10 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.7-1
703567
- Uodate to 0.1.7
703567
703567
* Sun Oct 02 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.5-1
703567
- Update to 0.1.5
703567
703567
* Wed Sep 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.4-1
703567
- Update to 0.1.4
703567
703567
* Wed Sep 07 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.3-1
703567
- Update to 0.1.3
703567
703567
* Thu Aug 04 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.1-1
703567
- Update to 0.1.1
703567
703567
* Tue Aug 02 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.0-1
703567
- Update to 0.1.0
703567
703567
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-4
703567
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
703567
703567
* Wed Feb 24 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.0.1-3
703567
- Cleanup the spec a little bit
703567
- Remove patch
703567
703567
* Tue Feb 23 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.0.1-2
703567
- Add patch to remove tests needing web connection
703567
703567
* Tue Feb 23 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.0.1-1
703567
- Initial package.