|
Alan Pevec |
da74c74 |
# Created by pyp2rpm-1.1.0b
|
|
Alan Pevec |
da74c74 |
%global pypi_name retrying
|
|
Alan Pevec |
da74c74 |
|
|
|
b51b16b |
%if 0%{?fedora}
|
|
|
b51b16b |
%global with_python3 1
|
|
|
b51b16b |
%endif
|
|
|
b51b16b |
|
|
Alan Pevec |
da74c74 |
Name: python-%{pypi_name}
|
|
Alan Pevec |
da74c74 |
Version: 1.2.3
|
|
|
4ef1cca |
Release: 14%{?dist}
|
|
|
b51b16b |
Summary: General-purpose retrying library in Python
|
|
Alan Pevec |
da74c74 |
|
|
Alan Pevec |
da74c74 |
License: ASL 2.0
|
|
Alan Pevec |
da74c74 |
URL: https://github.com/rholder/retrying
|
|
Alan Pevec |
da74c74 |
Source0: https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
Alan Pevec |
fbef542 |
|
|
Alan Pevec |
fbef542 |
# patches from https://github.com/redhat-openstack/retrying
|
|
Alan Pevec |
fbef542 |
|
|
Alan Pevec |
fbef542 |
#
|
|
Alan Pevec |
fbef542 |
# patches_base=v1.2.3
|
|
Alan Pevec |
fbef542 |
#
|
|
Alan Pevec |
fbef542 |
Patch0001: 0001-Replaced-bundled-code-with-using-six.patch
|
|
Alan Pevec |
fbef542 |
|
|
Alan Pevec |
da74c74 |
BuildArch: noarch
|
|
Alan Pevec |
da74c74 |
|
|
Alan Pevec |
da74c74 |
BuildRequires: python2-devel
|
|
Alan Pevec |
da74c74 |
|
|
Alan Pevec |
fbef542 |
|
|
|
5648039 |
%global _description\
|
|
|
5648039 |
Retrying is an Apache 2.0 licensed general-purpose retrying library,\
|
|
|
5648039 |
written in Python, to simplify the task of adding retry behavior to\
|
|
|
5648039 |
just about anything.\
|
|
Alan Pevec |
da74c74 |
|
|
Alan Pevec |
da74c74 |
|
|
|
5648039 |
%description %_description
|
|
|
5648039 |
|
|
|
5648039 |
%package -n python2-%{pypi_name}
|
|
|
5648039 |
Summary: %summary
|
|
|
4ef1cca |
Requires: python2-six
|
|
|
5648039 |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
5648039 |
|
|
|
5648039 |
%description -n python2-%{pypi_name} %_description
|
|
Alan Pevec |
da74c74 |
|
|
|
b51b16b |
%if 0%{?with_python3}
|
|
|
b51b16b |
%package -n python3-%{pypi_name}
|
|
|
b51b16b |
Summary: General-purpose retrying library in Python
|
|
|
b51b16b |
BuildRequires: python3-devel
|
|
|
b51b16b |
Requires: python3-six
|
|
|
b51b16b |
|
|
|
b51b16b |
%description -n python3-%{pypi_name}
|
|
|
b51b16b |
Retrying is an Apache 2.0 licensed general-purpose retrying library,
|
|
|
b51b16b |
written in Python, to simplify the task of adding retry behavior to
|
|
|
b51b16b |
just about anything.
|
|
|
b51b16b |
%endif
|
|
|
b51b16b |
|
|
Alan Pevec |
da74c74 |
%prep
|
|
Alan Pevec |
da74c74 |
%setup -q -n %{pypi_name}-%{version}
|
|
Alan Pevec |
fbef542 |
|
|
Alan Pevec |
fbef542 |
%patch0001 -p1
|
|
Alan Pevec |
fbef542 |
|
|
Alan Pevec |
da74c74 |
# Remove bundled egg-info
|
|
Alan Pevec |
da74c74 |
rm -rf %{pypi_name}.egg-info
|
|
Alan Pevec |
da74c74 |
|
|
|
b51b16b |
%if 0%{?with_python3}
|
|
|
b51b16b |
rm -rf %{py3dir}
|
|
|
b51b16b |
cp -a . %{py3dir}
|
|
|
b51b16b |
%endif
|
|
|
b51b16b |
|
|
Alan Pevec |
da74c74 |
%build
|
|
Alan Pevec |
da74c74 |
%{__python2} setup.py build
|
|
Alan Pevec |
da74c74 |
|
|
|
b51b16b |
%if 0%{?with_python3}
|
|
|
b51b16b |
%{__python3} setup.py build
|
|
|
b51b16b |
%endif
|
|
|
b51b16b |
|
|
Alan Pevec |
da74c74 |
%install
|
|
Alan Pevec |
da74c74 |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
Alan Pevec |
da74c74 |
|
|
|
b51b16b |
%if 0%{?with_python3}
|
|
|
b51b16b |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
b51b16b |
%endif
|
|
|
b51b16b |
|
|
|
5648039 |
%files -n python2-%{pypi_name}
|
|
Alan Pevec |
da74c74 |
%doc README.rst LICENSE
|
|
Alan Pevec |
da74c74 |
%{python2_sitelib}/%{pypi_name}.py*
|
|
Alan Pevec |
da74c74 |
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
Alan Pevec |
da74c74 |
|
|
|
b51b16b |
%if 0%{?with_python3}
|
|
|
b51b16b |
%files -n python3-%{pypi_name}
|
|
|
b51b16b |
%doc README.rst LICENSE
|
|
|
b51b16b |
%{python3_sitelib}/%{pypi_name}.py*
|
|
|
b51b16b |
%{python3_sitelib}/__pycache__/%{pypi_name}.*
|
|
|
b51b16b |
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
b51b16b |
%endif
|
|
|
b51b16b |
|
|
Alan Pevec |
da74c74 |
%changelog
|
|
|
4ef1cca |
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.3-14
|
|
|
4ef1cca |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
4ef1cca |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
4ef1cca |
|
|
|
b19a7d8 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-13
|
|
|
b19a7d8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
b19a7d8 |
|
|
|
5648039 |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.3-12
|
|
|
5648039 |
- Python 2 binary package renamed to python2-retrying
|
|
|
5648039 |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
5648039 |
|
|
|
d6aada6 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-11
|
|
|
d6aada6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
d6aada6 |
|
|
|
c77f092 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-10
|
|
|
c77f092 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
c77f092 |
|
|
|
716b5e7 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.3-9
|
|
|
716b5e7 |
- Rebuild for Python 3.6
|
|
|
716b5e7 |
|
|
|
38d6de8 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-8
|
|
|
38d6de8 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
38d6de8 |
|
|
|
262a0d4 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-7
|
|
|
262a0d4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
262a0d4 |
|
|
|
bffcc3d |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-6
|
|
|
bffcc3d |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
bffcc3d |
|
|
|
82e87e8 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-5
|
|
|
82e87e8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
82e87e8 |
|
|
|
b51b16b |
* Tue Sep 16 2014 Haïkel Guémar <hguemar@fedoraproject.org> - 1.2.3-4
|
|
|
b51b16b |
- Add python3 subpackage (required for python3-tooz)
|
|
|
b51b16b |
|
|
Alan Pevec |
fbef542 |
* Sat Sep 06 2014 Alan Pevec <apevec@redhat.com> - 1.2.3-3
|
|
Alan Pevec |
fbef542 |
- unbundle python-six (from hguemar)
|
|
Alan Pevec |
fbef542 |
|
|
Alan Pevec |
da74c74 |
* Mon Aug 25 2014 Alan Pevec <apevec@redhat.com> - 1.2.3-1
|
|
Alan Pevec |
da74c74 |
- Initial package.
|