From b1c69c969fd7080a0bfcd38147204caf770126b4 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Wed, 4 Jan 2023 20:38:44 -0500 Subject: [PATCH] Initial commit --- .copr/Makefile | 14 +++++++++++ .gitignore | 2 ++ .python-circuitbreaker.metadata | 1 + python-circuitbreaker.spec | 42 +++++++++++++++++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 .copr/Makefile create mode 100644 .gitignore create mode 100644 .python-circuitbreaker.metadata create mode 100644 python-circuitbreaker.spec diff --git a/.copr/Makefile b/.copr/Makefile new file mode 100644 index 0000000..019eea2 --- /dev/null +++ b/.copr/Makefile @@ -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) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1f01921 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.tar.gz +rpmbuild diff --git a/.python-circuitbreaker.metadata b/.python-circuitbreaker.metadata new file mode 100644 index 0000000..95fe6be --- /dev/null +++ b/.python-circuitbreaker.metadata @@ -0,0 +1 @@ +8e09be37ad288847f983e66131f493c9bf8472ea9dce003d8908500915a4b570 SOURCES/python-circuitbreaker-1.4.0.tar.gz diff --git a/python-circuitbreaker.spec b/python-circuitbreaker.spec new file mode 100644 index 0000000..5f57dad --- /dev/null +++ b/python-circuitbreaker.spec @@ -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 - 0.3.2-1 +- Initial package.