6c38b2e
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
6c38b2e
%if 0%{?fedora}
ba6bcae
%global with_python2 0
6c38b2e
%global with_python3 1
6c38b2e
%endif
6c38b2e
6c38b2e
%global pypi_name retryz
6c38b2e
6c38b2e
6c38b2e
Name:           python-%{pypi_name}
105a720
Version:        0.1.9
9c710eb
Release:        25%{?dist}
6c38b2e
Summary:        Retry decorator with a bunch of configuration parameters
6c38b2e
6c38b2e
License:        ASL 2.0
6c38b2e
URL:            https://pypi.python.org/pypi/retryz
105a720
Source0:        https://pypi.io/packages/source/%(n=%{pypi_name}; echo ${n:0:1})/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
6c38b2e
BuildArch:      noarch
6c38b2e
6c38b2e
%description
6c38b2e
Retry decorator with a bunch of configuration parameters.
6c38b2e
ba6bcae
%if 0%{?with_python2}
6c38b2e
%package -n python2-%{pypi_name}
6c38b2e
Summary:        %{summary}
6c38b2e
6c38b2e
%{?python_provide:%python_provide python2-%{pypi_name}}
6c38b2e
6c38b2e
Requires:       python2
6c38b2e
6c38b2e
BuildRequires:  python2-devel
6c38b2e
6c38b2e
# for running tests
6c38b2e
BuildRequires:  python2-pytest
6c38b2e
BuildRequires:  python2-hamcrest
6c38b2e
6c38b2e
6c38b2e
%description -n python2-%{pypi_name}
6c38b2e
Retry decorator with a bunch of configuration parameters.
6c38b2e
ba6bcae
%endif
ba6bcae
6c38b2e
%if 0%{?with_python3}
6c38b2e
%package -n python3-%{pypi_name}
6c38b2e
Summary:        %{summary}
6c38b2e
6c38b2e
%{?python_provide:%python_provide python3-%{pypi_name}}
6c38b2e
6c38b2e
Requires:       python3
6c38b2e
6c38b2e
BuildRequires:  python3-devel
e46f448
BuildRequires:  python3-setuptools
6c38b2e
6c38b2e
# for running tests
6c38b2e
BuildRequires:  python3-pytest
6c38b2e
BuildRequires:  python3-hamcrest
6c38b2e
6c38b2e
%description -n python3-%{pypi_name}
6c38b2e
Retry decorator with a bunch of configuration parameters.
6c38b2e
6c38b2e
%endif
6c38b2e
6c38b2e
%prep
6c38b2e
%setup -q -n %{pypi_name}-%{upstream_version}
6c38b2e
6c38b2e
%build
ba6bcae
%if 0%{?with_python2}
6c38b2e
%py2_build
ba6bcae
%endif
6c38b2e
%if 0%{?with_python3}
6c38b2e
%py3_build
6c38b2e
%endif
6c38b2e
6c38b2e
%check
ba6bcae
%if 0%{?with_python2}
6c38b2e
PYTHONPATH=. py.test-2.7
ba6bcae
%endif
6c38b2e
%if 0%{?with_python3}
6c38b2e
PYTHONPATH=. py.test-3
6c38b2e
%endif
6c38b2e
6c38b2e
6c38b2e
%install
ba6bcae
%if 0%{?with_python2}
6c38b2e
%py2_install
ba6bcae
%endif
6c38b2e
6c38b2e
%if 0%{?with_python3}
6c38b2e
%py3_install
6c38b2e
%endif
6c38b2e
ba6bcae
%if 0%{?with_python2}
6c38b2e
%files -n python2-%{pypi_name}
6c38b2e
%license LICENSE.txt
6c38b2e
%doc README.rst
6c38b2e
%{python2_sitelib}/retryz*
ba6bcae
%endif
6c38b2e
6c38b2e
%if 0%{?with_python3}
6c38b2e
%files -n python3-%{pypi_name}
6c38b2e
%license LICENSE.txt
6c38b2e
%doc README.rst
6c38b2e
%{python3_sitelib}/retryz*
6c38b2e
%endif
6c38b2e
6c38b2e
%changelog
9c710eb
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-25
9c710eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
9c710eb
0f7017b
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-24
0f7017b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
0f7017b
9e01bde
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-23
9e01bde
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
9e01bde
abd757a
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 0.1.9-22
abd757a
- Rebuilt for Python 3.12
abd757a
8ce2178
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-21
8ce2178
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
8ce2178
5ac26c2
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-20
5ac26c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
5ac26c2
a8978b5
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.1.9-19
a8978b5
- Rebuilt for Python 3.11
a8978b5
28e3993
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-18
28e3993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
28e3993
43a5c64
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-17
43a5c64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
43a5c64
69bc676
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.1.9-16
69bc676
- Rebuilt for Python 3.10
69bc676
e9e5bd7
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-15
e9e5bd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e9e5bd7
dc1f1c4
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-14
dc1f1c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
dc1f1c4
e46f448
* Tue Jun 23 2020 Eric Harney <eharney@redhat.com> - 0.1.9-13
e46f448
- Add python3-setuptools BuildRequires
e46f448
5ade886
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.9-12
5ade886
- Rebuilt for Python 3.9
5ade886
8fa06ef
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-11
8fa06ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8fa06ef
078f2c3
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.9-10
078f2c3
- Rebuilt for Python 3.8.0rc1 (#1748018)
078f2c3
76515ef
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.9-9
76515ef
- Rebuilt for Python 3.8
76515ef
4ecf380
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-8
4ecf380
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4ecf380
4923604
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-7
4923604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4923604
ba6bcae
* Wed Oct 03 2018 Eric Harney <eharney@redhat.com> - 0.1.9-6
ba6bcae
- Remove Python 2 package for Fedora
ba6bcae
1ee968f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-5
1ee968f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1ee968f
3a0f897
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.1.9-4
3a0f897
- Rebuilt for Python 3.7
3a0f897
4381674
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-3
4381674
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4381674
e6aa6fb
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-2
e6aa6fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e6aa6fb
105a720
* Mon May 22 2017 Eric Harney <eharney@redhat.com> - 0.1.9-1
105a720
- Update to 0.1.9
105a720
6c38b2e
* Wed Feb 01 2017 Eric Harney <eharney@redhat.com> - 0.1.8-1
6c38b2e
- Initial package