add: ratelimit (#10912)

Signed-off-by: Owen-sz <owen@fyralabs.com>
This commit is contained in:
Owen Zimmerman
2026-03-29 22:03:18 -05:00
committed by GitHub
parent 5cf6c78e17
commit b4eddfc604
3 changed files with 52 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "ratelimit.spec"
}
}
@@ -0,0 +1,45 @@
%global pypi_name ratelimit
%global _desc API Rate Limit Decorator.
Name: python-%{pypi_name}
Version: 2.2.1
Release: 1%?dist
Summary: API Rate Limit Decorator
License: MIT
URL: https://github.com/tomasbasham/ratelimit
Source0: %{pypi_source}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
Packager: Owen Zimmerman <owen@fyralabs.com>
%description
%_desc
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
%_desc
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files %{pypi_name}
%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.rst
%license LICENSE.txt
%changelog
* Sun Mar 29 2026 Owen Zimmerman <owen@fyralabs.com>
- Initial commit
+1
View File
@@ -0,0 +1 @@
rpm.version(pypi("ratelimit"));