!4 简化 spec 文件中的description

Merge pull request !4 from tomtao/master
This commit is contained in:
openeuler-ci-bot 2020-08-31 20:01:36 +08:00 committed by Gitee
commit 2420453dcc

View File

@ -1,7 +1,7 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-retrying Name: python-retrying
Version: 1.3.3 Version: 1.3.3
Release: 1 Release: 2
Summary: Retrying Summary: Retrying
License: Apache 2.0 License: Apache 2.0
URL: https://github.com/rholder/retrying URL: https://github.com/rholder/retrying
@ -12,17 +12,6 @@ BuildArch: noarch
%description %description
Retrying is an Apache 2.0 licensed general-purpose retrying library, written in Retrying is an Apache 2.0 licensed general-purpose retrying library, written in
Python, to simplify the task of adding retry behavior to just about anything. Python, to simplify the task of adding retry behavior to just about anything.
The simplest use case is retrying a flaky function whenever an Exception occurs
until a value is returned.
import random
from retrying import retry
@retry
def do_something_unreliable():
if random.randint(0, 10) > 1:
raise IOError("Broken sauce, everything is hosed!!!111one")
else:
return "Awesome sauce!"
print do_something_unreliable()
%package -n python3-retrying %package -n python3-retrying
Summary: Retrying Summary: Retrying
@ -32,17 +21,6 @@ BuildRequires: python3-setuptools
%description -n python3-retrying %description -n python3-retrying
Retrying is an Apache 2.0 licensed general-purpose retrying library, written in Retrying is an Apache 2.0 licensed general-purpose retrying library, written in
Python, to simplify the task of adding retry behavior to just about anything. Python, to simplify the task of adding retry behavior to just about anything.
The simplest use case is retrying a flaky function whenever an Exception occurs
until a value is returned.
import random
from retrying import retry
@retry
def do_something_unreliable():
if random.randint(0, 10) > 1:
raise IOError("Broken sauce, everything is hosed!!!111one")
else:
return "Awesome sauce!"
print do_something_unreliable()
%package help %package help
Summary: Development documents and examples for retrying Summary: Development documents and examples for retrying
@ -50,17 +28,6 @@ Provides: python3-retrying-doc
%description help %description help
Retrying is an Apache 2.0 licensed general-purpose retrying library, written in Retrying is an Apache 2.0 licensed general-purpose retrying library, written in
Python, to simplify the task of adding retry behavior to just about anything. Python, to simplify the task of adding retry behavior to just about anything.
The simplest use case is retrying a flaky function whenever an Exception occurs
until a value is returned.
import random
from retrying import retry
@retry
def do_something_unreliable():
if random.randint(0, 10) > 1:
raise IOError("Broken sauce, everything is hosed!!!111one")
else:
return "Awesome sauce!"
print do_something_unreliable()
%prep %prep
%autosetup -n retrying-1.3.3 %autosetup -n retrying-1.3.3
@ -103,5 +70,8 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Mon Aug 31 2020 Python_Bot <Python_Bot@openeuler.org>
- Simplify desc content,change release to 2
* Fri Aug 28 2020 Python_Bot <Python_Bot@openeuler.org> * Fri Aug 28 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated - Package Spec generated