python-botocore/python-botocore.spec

347 lines
11 KiB
RPMSpec
Raw Normal View History

2016-09-13 09:08:44 +00:00
%if 0%{?rhel} && 0%{?rhel} <= 7
2016-12-03 15:24:52 +00:00
%bcond_with python3
%bcond_without fix_dateutil
2014-08-15 18:15:46 +00:00
%else
2016-12-03 15:24:52 +00:00
%bcond_without python3
%bcond_with fix_dateutil
2014-08-15 18:15:46 +00:00
%endif
2016-01-13 07:08:23 +00:00
# Enable tests
2016-12-03 15:24:52 +00:00
%bcond_with test
2016-01-13 07:08:23 +00:00
# Disable documentation generation for now
2016-12-03 15:24:52 +00:00
%bcond_with docs
%global pypi_name botocore
2016-01-02 23:08:27 +00:00
Name: python-%{pypi_name}
2018-01-20 15:53:21 +00:00
Version: 1.8.33
2017-08-13 13:35:15 +00:00
Release: 1%{?dist}
2016-01-02 23:08:27 +00:00
Summary: Low-level, data-driven core of boto 3
2014-08-15 18:15:46 +00:00
License: ASL 2.0
2014-08-15 18:15:52 +00:00
URL: https://github.com/boto/botocore
2016-05-28 09:37:58 +00:00
Source0: https://pypi.io/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
2017-01-20 11:13:18 +00:00
Patch0: botocore-1.5.3-fix_dateutil_version.patch
2014-08-15 18:15:46 +00:00
BuildArch: noarch
2017-01-20 10:53:22 +00:00
%description
A low-level interface to a growing number of Amazon Web Services. The
botocore package is the foundation for the AWS CLI as well as boto3.
%package -n python2-%{pypi_name}
Summary: Low-level, data-driven core of boto 3
2014-08-15 18:15:46 +00:00
BuildRequires: python2-devel
BuildRequires: python-setuptools
2016-12-03 15:24:52 +00:00
%if %{with docs}
2016-01-02 23:08:27 +00:00
BuildRequires: python-sphinx
BuildRequires: python-guzzle_sphinx_theme
2016-12-03 15:24:52 +00:00
%endif # with docs
%if %{with tests}
2016-08-04 08:11:21 +00:00
%{?fc23:BuildRequires: mock}
%{!?fc23:BuildRequires: python2-mock}
2016-01-13 07:08:23 +00:00
BuildRequires: python-behave
BuildRequires: python-nose
2016-03-29 15:33:29 +00:00
BuildRequires: python-six
2016-01-13 07:08:23 +00:00
BuildRequires: python-wheel
2016-01-02 23:08:27 +00:00
BuildRequires: python-docutils
BuildRequires: python-dateutil
BuildRequires: python2-jmespath
2016-12-03 15:24:52 +00:00
%endif # with tests
Requires: python-jmespath >= 0.7.1
2016-12-03 15:24:52 +00:00
%if %{with fix_dateutil}
2016-09-13 09:08:44 +00:00
Requires: python-dateutil >= 1.4
%else
Requires: python-dateutil >= 2.1
2016-12-03 15:24:52 +00:00
%endif # with fix_dateutil
Requires: python-docutils >= 0.10
2016-01-06 11:25:03 +00:00
%{?el6:Provides: python-%{pypi_name}}
2016-01-02 23:08:27 +00:00
%{?python_provide:%python_provide python2-%{pypi_name}}
2014-08-15 18:15:46 +00:00
2016-01-02 23:08:27 +00:00
%description -n python2-%{pypi_name}
A low-level interface to a growing number of Amazon Web Services. The
botocore package is the foundation for the AWS CLI as well as boto3.
2016-12-03 15:24:52 +00:00
%if %{with python3}
2016-01-02 23:08:27 +00:00
%package -n python3-%{pypi_name}
Summary: Low-level, data-driven core of boto 3
2017-01-20 10:53:22 +00:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if %{with docs}
BuildRequires: python3-sphinx
BuildRequires: python3-guzzle_sphinx_theme
%endif # with docs
%if %{with tests}
%{?fc24:BuildRequires: python3-behave}
BuildRequires: python3-mock
BuildRequires: python3-nose
BuildRequires: python3-six
BuildRequires: python3-wheel
BuildRequires: python3-docutils
BuildRequires: python3-dateutil
BuildRequires: python3-jmespath
%endif # with tests
Requires: python3-jmespath >= 0.7.1
2016-12-03 15:24:52 +00:00
%if %{with fix_dateutil}
2016-09-13 09:08:44 +00:00
Requires: python3-dateutil >= 1.4
%else
Requires: python3-dateutil >= 2.1
2016-12-03 15:24:52 +00:00
%endif # with fix_dateutil
Requires: python3-docutils >= 0.10
2016-01-02 23:08:27 +00:00
%{?python_provide:%python_provide python3-%{pypi_name}}
2014-08-15 18:15:46 +00:00
2016-01-02 23:08:27 +00:00
%description -n python3-%{pypi_name}
2014-08-15 18:15:46 +00:00
A low-level interface to a growing number of Amazon Web Services. The
2016-01-02 23:08:27 +00:00
botocore package is the foundation for the AWS CLI as well as boto3.
%endif # with_python3
2014-08-15 18:15:46 +00:00
2016-12-03 15:24:52 +00:00
%if %{with docs}
%package doc
Summary: Documentation for %{name}
%description doc
%{summary}.
2016-12-03 15:24:52 +00:00
%endif # with docs
2014-08-15 18:15:46 +00:00
%prep
2016-01-07 10:31:11 +00:00
%setup -q -n %{pypi_name}-%{version}
2016-12-03 15:24:52 +00:00
%if %{with fix_dateutil}
%patch0 -p1
%endif # with fix_dateutil
2016-01-06 16:45:57 +00:00
sed -i -e '1 d' botocore/vendored/requests/packages/chardet/chardetect.py
sed -i -e '1 d' botocore/vendored/requests/certs.py
2016-01-02 23:08:27 +00:00
rm -rf %{pypi_name}.egg-info
2016-03-01 18:48:55 +00:00
# Remove online tests
rm -rf tests/integration
2014-08-15 18:15:46 +00:00
%build
2016-01-02 23:08:27 +00:00
%py2_build
2016-12-03 15:24:52 +00:00
%if %{with python3}
2016-01-02 23:08:27 +00:00
%py3_build
2016-12-03 15:24:52 +00:00
%endif # with python3
2014-08-15 18:15:46 +00:00
%install
2016-12-03 15:24:52 +00:00
%if %{with python3}
2016-01-02 23:08:27 +00:00
%py3_install
2016-12-03 15:24:52 +00:00
%endif # with python3
2016-01-02 23:08:27 +00:00
%py2_install
2016-12-03 15:24:52 +00:00
%if %{with docs}
%if %{with python3}
2016-01-02 23:08:27 +00:00
sphinx-build-3 docs/source html
rm -rf html/.{doctrees,buildinfo}
2016-12-03 15:24:52 +00:00
%else # with python3
2016-01-02 23:08:27 +00:00
sphinx-build docs/source html
rm -rf html/.{doctrees,buildinfo}
2016-12-03 15:24:52 +00:00
%endif # with python3
%endif # with docs
2016-01-02 23:08:27 +00:00
2016-12-03 15:24:52 +00:00
%if %{with tests}
2014-08-15 18:15:46 +00:00
%check
2016-08-04 07:31:57 +00:00
# %{__python2} setup.py test
nosetests-2.7 --with-coverage --cover-erase --cover-package botocore --with-xunit --cover-xml -v tests/unit/ tests/functional/
2016-12-03 15:24:52 +00:00
%if %{with python3}
2016-08-04 07:31:57 +00:00
# %{__python3} setup.py test
nosetests-3.5 --with-coverage --cover-erase --cover-package botocore --with-xunit --cover-xml -v tests/unit/ tests/functional/
2016-12-03 15:24:52 +00:00
%endif # with python3
%endif # with tests
2014-08-15 18:15:46 +00:00
2016-01-02 23:08:27 +00:00
%{!?_licensedir:%global license %doc}
%files -n python2-%{pypi_name}
2014-08-15 18:15:46 +00:00
%doc README.rst
2016-01-02 23:08:27 +00:00
%license LICENSE.txt
%{python2_sitelib}/%{pypi_name}/
%{python2_sitelib}/%{pypi_name}-*.egg-info/
2014-08-15 18:15:46 +00:00
2016-12-03 15:24:52 +00:00
%if %{with python3}
2016-01-02 23:08:27 +00:00
%files -n python3-%{pypi_name}
2014-08-15 18:15:46 +00:00
%doc README.rst
2016-01-02 23:08:27 +00:00
%license LICENSE.txt
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-*.egg-info/
2016-12-03 15:24:52 +00:00
%endif # with python3
2014-08-15 18:15:46 +00:00
2016-12-03 15:24:52 +00:00
%if %{with docs}
%files doc
2016-01-02 23:08:27 +00:00
%doc html
2016-12-03 15:24:52 +00:00
%endif # with docs
2014-08-15 18:15:46 +00:00
%changelog
2018-01-20 15:53:21 +00:00
* Sat Jan 20 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.8.33-1
- Update to 1.8.33
2018-01-16 14:52:25 +00:00
* Tue Jan 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.8.29-1
- Update to 1.8.29
2018-01-10 13:22:59 +00:00
* Wed Jan 10 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.8.26-1
- Update to 1.8.26
2018-01-03 13:38:40 +00:00
* Wed Jan 03 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.8.21-1
- Update to 1.8.21
2017-08-13 13:35:15 +00:00
* Sun Aug 13 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.6.0-1
- Update to 1.6.0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.72-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-06-21 12:14:06 +00:00
* Wed Jun 21 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.5.72-1
- Update to 1.5.72
2017-05-23 13:35:20 +00:00
* Tue May 23 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.5.53-1
2017-06-21 12:14:06 +00:00
- Update to 1.5.53
2017-05-23 13:35:20 +00:00
2017-03-15 23:28:33 +00:00
* Wed Mar 15 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.5.26-1
- Update to 1.5.26
2017-02-25 23:14:23 +00:00
* Sat Feb 25 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.5.18-1
- Update to 1.5.18
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2017-01-20 10:53:22 +00:00
* Fri Jan 20 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.5.3-1
- Update to 1.5.3
2017-01-20 11:13:18 +00:00
- Rebase patch
2017-01-20 10:53:22 +00:00
2016-12-27 23:08:40 +00:00
* Wed Dec 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.91-1
- Update to 1.4.91
2016-12-19 17:20:37 +00:00
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.4.85-2
- Rebuild for Python 3.6
2016-12-27 23:08:40 +00:00
* Sun Dec 11 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.85-1
2016-12-11 11:36:10 +00:00
- Update to 1.4.85
2016-12-27 23:08:40 +00:00
* Sat Dec 03 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.81-1
2016-12-03 15:24:52 +00:00
- Update to 1.4.81
2016-12-27 23:08:40 +00:00
* Thu Nov 24 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.78-1
2016-11-24 12:21:38 +00:00
- Update to 1.4.78
2016-12-27 23:08:40 +00:00
* Thu Oct 27 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.67-1
2016-10-27 18:20:43 +00:00
- Update to 1.4.67
2016-12-27 23:08:40 +00:00
* Mon Oct 10 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.60-1
2016-10-10 16:22:13 +00:00
- Update to 1.4.60
2016-12-27 23:08:40 +00:00
* Sun Oct 02 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.58-1
2016-10-02 18:52:37 +00:00
- Update to 1.4.58
- Add python-six dependency
2016-12-27 23:08:40 +00:00
* Wed Sep 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.57-1
2016-09-28 10:01:15 +00:00
- Update to 1.4.57
2016-12-27 23:08:40 +00:00
* Tue Sep 13 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.52-3
2016-09-13 11:30:33 +00:00
- Fix patch
2016-12-27 23:08:40 +00:00
* Tue Sep 13 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.52-2
2016-09-13 09:08:44 +00:00
- Add testing support for EL7 using a lower version of dateuil library
2016-12-27 23:08:40 +00:00
* Wed Sep 07 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.52-1
2016-09-07 09:28:38 +00:00
- Update to 1.4.52
* Sat Sep 03 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.4.50-1
- Update to 1.4.50
2016-12-27 23:08:40 +00:00
* Wed Aug 24 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.49-1
2016-08-23 23:15:53 +00:00
- Upstream update
2016-12-27 23:08:40 +00:00
* Tue Aug 23 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.48-1
2016-08-23 22:57:16 +00:00
- Upstream update
2016-12-27 23:08:40 +00:00
* Fri Aug 05 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.43-1
2016-08-05 07:15:39 +00:00
- Upstream update
2016-12-27 23:08:40 +00:00
* Thu Aug 04 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.42-1
2016-08-04 07:31:57 +00:00
- Upstream update
2016-12-27 23:08:40 +00:00
* Tue Aug 02 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.41-1
2016-08-02 11:53:35 +00:00
- Upstream update
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.35-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2016-12-27 23:08:40 +00:00
* Wed Jul 06 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.35-1
2016-06-08 20:39:21 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Wed Jun 08 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.26-1
2016-05-28 09:37:58 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Sat May 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.24-1
2016-03-29 15:22:56 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Tue Mar 29 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.4.7-1
2016-03-01 18:48:55 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Tue Mar 01 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.30-1
2016-02-24 09:40:38 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Wed Feb 24 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.29-1
2016-02-19 12:46:24 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Fri Feb 19 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.28-1
2016-02-17 19:18:45 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Wed Feb 17 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.27-1
2016-02-12 14:53:58 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Fri Feb 12 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.26-1
2016-02-10 08:50:10 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Wed Feb 10 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.25-1
2016-02-10 08:49:12 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Tue Feb 09 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.24-1
2016-02-02 14:47:02 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Tue Feb 02 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.23-1
2016-01-22 12:47:10 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Fri Jan 22 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.22-1
2016-01-20 06:49:10 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Wed Jan 20 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.21-1
2016-01-15 11:32:24 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Fri Jan 15 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.20-1
2016-01-15 10:54:42 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Fri Jan 15 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.19-1
2016-01-13 07:08:23 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Wed Jan 13 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.18-1
2016-07-06 10:45:48 +00:00
- New version from upstream
2016-12-27 23:08:40 +00:00
* Tue Jan 12 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.17-2
2016-01-12 17:01:15 +00:00
- Add testing for Fedora
2016-12-27 23:08:40 +00:00
* Thu Jan 07 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.17-1
2016-01-07 18:54:03 +00:00
- Update to upstream version
2016-12-27 23:08:40 +00:00
* Wed Jan 06 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.16-2
2016-01-06 16:55:48 +00:00
- Fix shabang on botocore/vendored/requests/packages/chardet/chardetect.py
- Fix shabang on botocore/vendored/requests/certs.py
- Remove the useless dependency with python-urllib3
2016-12-27 23:08:40 +00:00
* Wed Jan 06 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.16-1
2016-01-06 11:25:03 +00:00
- Update to new upstream version
- Fix Provides for EL6
2016-12-27 23:08:40 +00:00
* Tue Dec 29 2015 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.3.15-1
2016-01-02 23:08:27 +00:00
- Update to current version
- Improve the spec
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.79.0-3
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.79.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2014-12-19 16:47:20 +00:00
* Fri Dec 19 2014 Lubomir Rintel <lkundrak@v3.sk> - 0.79.0-1
- New version
2014-08-15 18:15:46 +00:00
* Fri Jul 25 2014 Lubomir Rintel <lkundrak@v3.sk> - 0.58.0-2
- Add Python 3 support
* Fri Jul 25 2014 Lubomir Rintel <lkundrak@v3.sk> - 0.58.0-1
- Initial packaging