Initial commit
This commit is contained in:
commit
b1c69c969f
14
.copr/Makefile
Normal file
14
.copr/Makefile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
rpmbuild_src = $(shell rpmbuild --eval '%{_sourcedir}')
|
||||||
|
.PHONY: prepare srpm rpm
|
||||||
|
|
||||||
|
prepare:
|
||||||
|
dnf -y install rpmdevtools rpm-build
|
||||||
|
cp *.patch $(rpmbuild_src) || true
|
||||||
|
spectool -g -R $(spec)
|
||||||
|
|
||||||
|
|
||||||
|
srpm: prepare
|
||||||
|
rpmbuild -bs --define "_srcrpmdir $(outdir)" $(spec)
|
||||||
|
|
||||||
|
rpm: prepare
|
||||||
|
rpmbuild -bb --define "_rpmdir $(outdir)" $(spec)
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
*.tar.gz
|
||||||
|
rpmbuild
|
1
.python-circuitbreaker.metadata
Normal file
1
.python-circuitbreaker.metadata
Normal file
@ -0,0 +1 @@
|
|||||||
|
8e09be37ad288847f983e66131f493c9bf8472ea9dce003d8908500915a4b570 SOURCES/python-circuitbreaker-1.4.0.tar.gz
|
42
python-circuitbreaker.spec
Normal file
42
python-circuitbreaker.spec
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
Name: python-circuitbreaker
|
||||||
|
Version: 1.4.0
|
||||||
|
Release: 0%{?dist}
|
||||||
|
Summary: Python Circuit Breaker pattern implementation
|
||||||
|
|
||||||
|
License: None
|
||||||
|
URL: https://github.com/fabfuel/circuitbreaker
|
||||||
|
Source0: %{pypi_source python-circuitbreaker}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: epel-rpm-macros
|
||||||
|
|
||||||
|
%global _description %{expand:
|
||||||
|
This is a Python implementation of the “Circuit Breaker” Pattern (https://martinfowler.com/bliki/CircuitBreaker.html).
|
||||||
|
}
|
||||||
|
|
||||||
|
%description %_description
|
||||||
|
|
||||||
|
%package -n python3-circuitbreaker
|
||||||
|
Summary: %{summary}
|
||||||
|
|
||||||
|
%description -n python3-circuitbreaker %_description
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%pyproject_buildrequires
|
||||||
|
|
||||||
|
%build
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%pyproject_save_files circuitbreaker
|
||||||
|
|
||||||
|
%files -n python3-circuitbreaker -f %{pyproject_files}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Dec 12 2022 Neil Hanlon <neil@rockylinux.org> - 0.3.2-1
|
||||||
|
- Initial package.
|
Loading…
Reference in New Issue
Block a user