%global _empty_manifest_terminate_build 0 Name: python-ratelimitingfilter Version: 1.5 Release: 1 Summary: A rate limiting filter for the Python logging system License: MIT URL: https://github.com/wkeeling/ratelimitingfilter Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cc/c5/c5c8dfb0853ff099ff587b18c931b275f1c2f69ba152b1d01bee796f6dec/ratelimitingfilter-1.5.tar.gz BuildArch: noarch %description The ``RateLimitingFilter`` is a filter for the Python logging system that allows you to restrict the rate at which messages can pass through your logging handlers. The filter can be useful if you're using a handler such as Python's ``logging.handlers.SMTPHandler`` to send error notification emails. Error notification emails provide a useful means of keeping an eye on the health of a running system, but these emails have the potential to overload a mailbox if they start arriving in quick succession due to some kind of critical failure. The ``RateLimitingFilter`` can help prevent mailbox overload by throttling messages based on a configurable rate, whilst allowing for periodic bursts of messages which can be a useful indicator that something somewhere has broken. %package -n python3-ratelimitingfilter Summary: A rate limiting filter for the Python logging system Provides: python-ratelimitingfilter BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-ratelimitingfilter The ``RateLimitingFilter`` is a filter for the Python logging system that allows you to restrict the rate at which messages can pass through your logging handlers. The filter can be useful if you're using a handler such as Python's ``logging.handlers.SMTPHandler`` to send error notification emails. Error notification emails provide a useful means of keeping an eye on the health of a running system, but these emails have the potential to overload a mailbox if they start arriving in quick succession due to some kind of critical failure. The ``RateLimitingFilter`` can help prevent mailbox overload by throttling messages based on a configurable rate, whilst allowing for periodic bursts of messages which can be a useful indicator that something somewhere has broken. %package help Summary: Development documents and examples for ratelimitingfilter Provides: python3-ratelimitingfilter-doc %description help The ``RateLimitingFilter`` is a filter for the Python logging system that allows you to restrict the rate at which messages can pass through your logging handlers. The filter can be useful if you're using a handler such as Python's ``logging.handlers.SMTPHandler`` to send error notification emails. Error notification emails provide a useful means of keeping an eye on the health of a running system, but these emails have the potential to overload a mailbox if they start arriving in quick succession due to some kind of critical failure. The ``RateLimitingFilter`` can help prevent mailbox overload by throttling messages based on a configurable rate, whilst allowing for periodic bursts of messages which can be a useful indicator that something somewhere has broken. %prep %autosetup -n ratelimitingfilter-1.5 %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-ratelimitingfilter -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri Apr 21 2023 Python_Bot - 1.5-1 - Package Spec generated