summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 12:45:20 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 12:45:20 +0000
commitf3ffa1c329d14ee8a2973986f6d5c1c1eb237189 (patch)
tree65bee6a78c7892db61ba54aeff4d2cb1048eed51
parentba55716ffe81a2634486746ec28b5d7876fb086b (diff)
automatic import of python-ratelim
-rw-r--r--.gitignore1
-rw-r--r--python-ratelim.spec73
-rw-r--r--sources1
3 files changed, 75 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7c667c7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ratelim-0.1.6.tar.gz
diff --git a/python-ratelim.spec b/python-ratelim.spec
new file mode 100644
index 0000000..d8e3a19
--- /dev/null
+++ b/python-ratelim.spec
@@ -0,0 +1,73 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ratelim
+Version: 0.1.6
+Release: 1
+Summary: Makes it easy to respect rate limits.
+License: MIT
+URL: http://github.com/themiurgo/ratelim
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c5/5a/e1440017bccb14523bb76356e6f3a5468386b8a9192bd901e98babd1a1ea/ratelim-0.1.6.tar.gz
+BuildArch: noarch
+
+Requires: python3-decorator
+
+%description
+Ratelim is a simple Python library that limits the number of times a function can be called during a time interval. It is particularly useful when using online APIs, which commonly enforce rate limits.
+
+%package -n python3-ratelim
+Summary: Makes it easy to respect rate limits.
+Provides: python-ratelim
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ratelim
+Ratelim is a simple Python library that limits the number of times a function can be called during a time interval. It is particularly useful when using online APIs, which commonly enforce rate limits.
+
+%package help
+Summary: Development documents and examples for ratelim
+Provides: python3-ratelim-doc
+%description help
+Ratelim is a simple Python library that limits the number of times a function can be called during a time interval. It is particularly useful when using online APIs, which commonly enforce rate limits.
+
+%prep
+%autosetup -n ratelim-0.1.6
+
+%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-ratelim -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..5cb37af
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+91063fcac413e9faba01c9046c5134dc ratelim-0.1.6.tar.gz