diff --git a/python-retryz.spec b/python-retryz.spec new file mode 100644 index 0000000000000000000000000000000000000000..41c5a3c5efe6a03194b8be730f80d5c256bf3a8e --- /dev/null +++ b/python-retryz.spec @@ -0,0 +1,106 @@ +%{!?upstream_version: %global upstream_version %{version}%{?milestone}} +%global with_python3 1 + +%global pypi_name retryz + + +Name: python-%{pypi_name} +Version: 0.1.9 +Release: 1 +Summary: Retry decorator with a bunch of configuration parameters + +License: ASL 2.0 +URL: https://pypi.python.org/pypi/retryz +Source0: https://pypi.io/packages/source/%(n=%{pypi_name}; echo ${n:0:1})/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%description +Retry decorator with a bunch of configuration parameters. + +%if 0%{?with_python2} +%package -n python2-%{pypi_name} +Summary: %{summary} + +%{?python_provide:%python_provide python2-%{pypi_name}} + +Requires: python2 + +BuildRequires: python2-devel + +# for running tests +BuildRequires: python2-pytest +BuildRequires: python2-hamcrest + + +%description -n python2-%{pypi_name} +Retry decorator with a bunch of configuration parameters. + +%endif + +%if 0%{?with_python3} +%package -n python3-%{pypi_name} +Summary: %{summary} + +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3 + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +# for running tests +BuildRequires: python3-pytest +BuildRequires: python3-hamcrest + +%description -n python3-%{pypi_name} +Retry decorator with a bunch of configuration parameters. + +%endif + +%prep +%setup -q -n %{pypi_name}-%{upstream_version} + +%build +%if 0%{?with_python2} +%py2_build +%endif +%if 0%{?with_python3} +%py3_build +%endif + +%check +%if 0%{?with_python2} +PYTHONPATH=. py.test-2.7 +%endif +%if 0%{?with_python3} +PYTHONPATH=. py.test-3 +%endif + + +%install +%if 0%{?with_python2} +%py2_install +%endif + +%if 0%{?with_python3} +%py3_install +%endif + +%if 0%{?with_python2} +%files -n python2-%{pypi_name} +%license LICENSE.txt +%doc README.rst +%{python2_sitelib}/retryz* +%endif + +%if 0%{?with_python3} +%files -n python3-%{pypi_name} +%license LICENSE.txt +%doc README.rst +%{python3_sitelib}/retryz* +%endif + +%changelog +* Thu Jul 08 2021 Python Maint - 0.1.9-1 +- Init package + diff --git a/retryz-0.1.9.tar.gz b/retryz-0.1.9.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..fe9df09a572d159d4658e901a61f28301be13a9d Binary files /dev/null and b/retryz-0.1.9.tar.gz differ