python-circuitbreaker/python-circuitbreaker.spec

47 lines
1.0 KiB
RPMSpec
Raw Normal View History

2023-01-05 01:38:44 +00:00
Name: python-circuitbreaker
Version: 1.4.0
Release: 0%{?dist}
Summary: Python Circuit Breaker pattern implementation
License: None
URL: https://github.com/fabfuel/circuitbreaker
2023-01-05 01:59:53 +00:00
Source0: %{pypi_source circuitbreaker}
2023-01-05 01:38:44 +00:00
BuildArch: noarch
BuildRequires: python3-devel
2023-01-05 02:07:58 +00:00
%if 0%{?rhel} && 0%{rhel} <= 8
2023-01-05 01:38:44 +00:00
BuildRequires: epel-rpm-macros
2023-01-05 02:07:58 +00:00
%endif
2023-01-05 01:38:44 +00:00
%global _description %{expand:
This is a Python implementation of the “Circuit Breaker” Pattern
(https://martinfowler.com/bliki/CircuitBreaker.html).
2023-01-05 01:38:44 +00:00
}
%description %_description
%package -n python3-circuitbreaker
Summary: %{summary}
%description -n python3-circuitbreaker %_description
%prep
%autosetup -n circuitbreaker
2023-01-05 01:38:44 +00:00
%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.