diff --git a/python-retry_decorator.changes b/python-retry_decorator.changes index 05f7b90..75c4d2d 100644 --- a/python-retry_decorator.changes +++ b/python-retry_decorator.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 20 11:29:32 UTC 2019 - pgajdos@suse.com + +- single spec +- run test + ------------------------------------------------------------------- Fri Feb 14 11:54:46 UTC 2014 - rschweikert@suse.com diff --git a/python-retry_decorator.spec b/python-retry_decorator.spec index c698642..d34ff65 100644 --- a/python-retry_decorator.spec +++ b/python-retry_decorator.spec @@ -1,7 +1,7 @@ # # spec file for package python-retry_decorator # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,41 +12,47 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-retry_decorator Version: 1.0.0 Release: 0 -Summary: Retry on Exception +Summary: Retry Decorator License: MIT Group: Development/Languages/Python Url: https://github.com/pnpnpn/retry-decorator -Source0: https://pypi.python.org/packages/source/r/retry_decorator/retry_decorator-%{version}.tar.gz -BuildRequires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +# https://github.com/pnpnpn/retry-decorator/issues/15 +Source: https://github.com/pnpnpn/retry-decorator/archive/v%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch -%endif + +%python_subpackages %description -Decorator to support retry when an exception occurs +Decorator to support retry when an exception occurs. %prep -%setup -q -n retry_decorator-%{version} +%setup -q -n retry-decorator-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files -%defattr(-,root,root,-) -%doc README.rst LICENSE.txt CHANGES.txt +%files %{python_files} +%license LICENSE.txt +%doc README.rst CHANGES.txt %{python_sitelib}/* +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python tests/test_retry.py + %changelog diff --git a/retry_decorator-1.0.0.tar.gz b/retry_decorator-1.0.0.tar.gz deleted file mode 100644 index c804a50..0000000 --- a/retry_decorator-1.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:084d6abbba6b21c10225c98418c4f872c0920b4b20a1c2ee7bc77ab33c54df20 -size 2779 diff --git a/v1.0.0.tar.gz b/v1.0.0.tar.gz new file mode 100644 index 0000000..5439a6d --- /dev/null +++ b/v1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95b8861166e162e5259e798eb259217c59bdb8b21f055fd7f5bb4b7686fb5eae +size 2835