diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 17:32:35 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 17:32:35 +0000 |
| commit | f036c09ddb75a383b76dcf665c739a8062f41025 (patch) | |
| tree | 78cd4c003e0229149d7971b48f986240b3d0d8e1 | |
| parent | 8b0a4407ba539d84a5775328c8d34a0e56f7c212 (diff) | |
automatic import of python-circuitbreaker
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-circuitbreaker.spec | 75 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 77 insertions, 0 deletions
@@ -0,0 +1 @@ +/circuitbreaker-1.4.0.tar.gz diff --git a/python-circuitbreaker.spec b/python-circuitbreaker.spec new file mode 100644 index 0000000..d39b4f3 --- /dev/null +++ b/python-circuitbreaker.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-circuitbreaker +Version: 1.4.0 +Release: 1 +Summary: Python Circuit Breaker pattern implementation +License: BSD-3-Clause +URL: https://github.com/fabfuel/circuitbreaker +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/92/ec/7f1dd19e3878f5391afb508e6a2fd8d9e5b176ca2992b90b55926c7341d8/circuitbreaker-1.4.0.tar.gz +BuildArch: noarch + + +%description +This is a Python implementation of the "Circuit Breaker" Pattern (https://martinfowler.com/bliki/CircuitBreaker.html). +Inspired by Michael T. Nygard's highly recommendable book *Release It!* (https://pragprog.com/titles/mnee2/release-it-second-edition/). + +%package -n python3-circuitbreaker +Summary: Python Circuit Breaker pattern implementation +Provides: python-circuitbreaker +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-circuitbreaker +This is a Python implementation of the "Circuit Breaker" Pattern (https://martinfowler.com/bliki/CircuitBreaker.html). +Inspired by Michael T. Nygard's highly recommendable book *Release It!* (https://pragprog.com/titles/mnee2/release-it-second-edition/). + +%package help +Summary: Development documents and examples for circuitbreaker +Provides: python3-circuitbreaker-doc +%description help +This is a Python implementation of the "Circuit Breaker" Pattern (https://martinfowler.com/bliki/CircuitBreaker.html). +Inspired by Michael T. Nygard's highly recommendable book *Release It!* (https://pragprog.com/titles/mnee2/release-it-second-edition/). + +%prep +%autosetup -n circuitbreaker-1.4.0 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-circuitbreaker -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.0-1 +- Package Spec generated @@ -0,0 +1 @@ +2b5d02958bc3b7063c00166a852a61db circuitbreaker-1.4.0.tar.gz |
