e2939a
%if 0%{?rhel} && 0%{?rhel} <= 7
e2939a
%bcond_with python3
e2939a
%else
e2939a
%bcond_without python3
e2939a
%endif
e2939a
e2939a
%if 0%{?rhel} > 7
e2939a
# Disable python2 build by default
e2939a
%bcond_with python2
e2939a
%else
e2939a
%bcond_without python2
e2939a
%endif
e2939a
e2939a
%global pypi_name boto3
e2939a
e2939a
Name:           python-%{pypi_name}
e2939a
Version:        1.6.1
e2939a
Release:        2%{?dist}
e2939a
Summary:        The AWS SDK for Python
e2939a
e2939a
License:        ASL 2.0
e2939a
URL:            https://github.com/boto/boto3
e2939a
Source0:        https://pypi.io/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
e2939a
BuildArch:      noarch
e2939a
e2939a
%description
e2939a
Boto3 is the Amazon Web Services (AWS) Software Development
e2939a
Kit (SDK) for Python, which allows Python developers to
e2939a
write software that makes use of services like Amazon S3 
e2939a
and Amazon EC2.
e2939a
e2939a
%if %{with python2}
e2939a
%package -n     python2-%{pypi_name}
e2939a
Summary:        The AWS SDK for Python
e2939a
e2939a
BuildRequires:  python2-devel
e2939a
BuildRequires:  python-setuptools
e2939a
BuildRequires:  python-nose
e2939a
BuildRequires:  python-mock
e2939a
BuildRequires:  python-wheel
e2939a
BuildRequires:  python2-botocore
e2939a
BuildRequires:  python2-jmespath
e2939a
BuildRequires:  python-futures
e2939a
BuildRequires:  python2-s3transfer
e2939a
Requires:       python2-botocore >= 1.5.0
e2939a
Requires:       python2-jmespath >= 0.7.1
e2939a
Requires:       python2-s3transfer >= 0.1.10
e2939a
RequireS:       python-futures >= 2.2.0
e2939a
%{?python_provide:%python_provide python2-%{pypi_name}}
e2939a
%{?el6:Provides: python-%{pypi_name}}
e2939a
e2939a
%description -n python2-%{pypi_name}
e2939a
Boto3 is the Amazon Web Services (AWS) Software Development
e2939a
Kit (SDK) for Python, which allows Python developers to
e2939a
write software that makes use of services like Amazon S3 
e2939a
and Amazon EC2.
e2939a
%endif # with python2
e2939a
e2939a
%if %{with python3}
e2939a
%package -n     python3-%{pypi_name}
e2939a
Summary:        The AWS SDK for Python
e2939a
e2939a
BuildRequires:  python3-devel
e2939a
BuildRequires:  python3-setuptools
e2939a
BuildRequires:  python3-nose
e2939a
BuildRequires:  python3-mock
e2939a
BuildRequires:  python3-wheel
e2939a
BuildRequires:  python3-botocore
e2939a
BuildRequires:  python3-jmespath
e2939a
BuildRequires:  python3-s3transfer
e2939a
Requires:       python3-botocore >= 1.5.0
e2939a
Requires:       python3-jmespath >= 0.7.1
e2939a
Requires:       python3-s3transfer >= 0.1.10
e2939a
%{?python_provide:%python_provide python3-%{pypi_name}}
e2939a
e2939a
%description -n python3-%{pypi_name}
e2939a
Boto3 is the Amazon Web Services (AWS) Software Development
e2939a
Kit (SDK) for Python, which allows Python developers to
e2939a
write software that makes use of services like Amazon S3 
e2939a
and Amazon EC2.
e2939a
%endif # with python3
e2939a
e2939a
%prep
e2939a
%setup -q -n %{pypi_name}-%{version}
e2939a
rm -rf %{pypi_name}.egg-info
e2939a
# Remove online tests
e2939a
rm -rf tests/integration
e2939a
e2939a
%build
e2939a
%if %{with python2}
e2939a
%py2_build
e2939a
%endif # with python2
e2939a
%if %{with python3}
e2939a
%py3_build
e2939a
%endif # with python3
e2939a
e2939a
%install
e2939a
%if %{with python3}
e2939a
%py3_install
e2939a
%endif # with python3
e2939a
%if %{with python2}
e2939a
%py2_install
e2939a
%endif # with python2
e2939a
e2939a
%check
e2939a
%if %{with python2}
e2939a
%{__python2} setup.py test
e2939a
%endif # with python2
e2939a
%if %{with python3}
e2939a
%{__python3} setup.py test
e2939a
%endif # with python3
e2939a
e2939a
%if %{with python2}
e2939a
%files -n python2-%{pypi_name} 
e2939a
%{!?_licensedir:%global license %doc}
e2939a
%doc README.rst
e2939a
%license LICENSE
e2939a
%{python2_sitelib}/%{pypi_name}
e2939a
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
e2939a
%endif # with python2
e2939a
e2939a
%if %{with python3}
e2939a
%files -n python3-%{pypi_name} 
e2939a
%doc README.rst
e2939a
%license LICENSE
e2939a
%{python3_sitelib}/%{pypi_name}
e2939a
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
e2939a
%endif # with python3
e2939a
e2939a
%changelog
e2939a
* Fri Jun 08 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.6.1-2
e2939a
- Conditionalize the python2 subpackage
e2939a
e2939a
* Wed Feb 28 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.6.1-1
e2939a
- Update to 1.6.1
e2939a
e2939a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.19-2
e2939a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e2939a
e2939a
* Sat Jan 20 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.5.19-1
e2939a
- Update to 1.5.19
e2939a
e2939a
* Sat Jan 20 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.5.18-1
e2939a
- Update to 1.5.18
e2939a
e2939a
* Tue Jan 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.5.15-1
e2939a
- Update to 1.5.15
e2939a
e2939a
* Wed Jan 10 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.5.12-1
e2939a
- Update to 1.5.12
e2939a
e2939a
* Wed Jan 03 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.5.7-1
e2939a
- Update to 1.5.7
e2939a
e2939a
* Sun Aug 13 2017 Fabio Alessandro Locati <fale@fedoraproject.org> 1.4.6-1
e2939a
- Update to 1.4.6
e2939a
e2939a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-3
e2939a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e2939a
e2939a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-2
e2939a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e2939a
e2939a
* Fri Jan 20 2017 Fabio Alessandro Locati <fale@fedoraproject.org> 1.4.4-1
e2939a
- Update to 1.4.4
e2939a
e2939a
* Wed Dec 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> 1.4.3-1
e2939a
- Update to 1.4.3
e2939a
e2939a
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.4.2-2
e2939a
- Rebuild for Python 3.6
e2939a
e2939a
* Sat Dec 03 2016 Fabio Alessandro Locati <fale@fedoraproject.org> 1.4.2-1
e2939a
- Update to 1.4.2
e2939a
e2939a
* Mon Oct 10 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.1-1
e2939a
- Update to 1.4.1
e2939a
e2939a
* Thu Aug 04 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.0-1
e2939a
- New upstream release
e2939a
e2939a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
e2939a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e2939a
e2939a
* Sat May 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.1-1
e2939a
- New upstream release
e2939a
e2939a
* Tue Mar 29 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.0-1
e2939a
- New upstream release
e2939a
e2939a
* Fri Feb 19 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.2.4-1
e2939a
- New upstream release
e2939a
e2939a
* Thu Feb 11 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.2.3-3
e2939a
- Fix python2- subpackage to require python-future
e2939a
e2939a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-2
e2939a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e2939a
e2939a
* Tue Dec 29 2015 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.2.3-1
e2939a
- Initial package.