Martin Kutlak 50c7366
# Created by pyp2rpm-3.2.2
Martin Kutlak 50c7366
%global pypi_name ratelimitingfilter
Martin Kutlak 50c7366
Martin Kutlak 50c7366
Name:           python-%{pypi_name}
Martin Kutlak 8e22366
Version:        1.5
960700a
Release:        4%{?dist}
Martin Kutlak 50c7366
Summary:        A rate limiting filter for the Python logging system
Martin Kutlak 50c7366
Martin Kutlak 50c7366
License:        MIT
Martin Kutlak 50c7366
URL:            https://github.com/wkeeling/ratelimitingfilter
Martin Kutlak 50c7366
Source0:        https://files.pythonhosted.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Martin Kutlak 50c7366
BuildArch:      noarch
Martin Kutlak 50c7366
Martin Kutlak 50c7366
BuildRequires:  python3-devel
Martin Kutlak 50c7366
BuildRequires:  python3-mock
Martin Kutlak 50c7366
BuildRequires:  python3-setuptools
Martin Kutlak 50c7366
Martin Kutlak 50c7366
%description
Martin Kutlak 50c7366
The RateLimitingFilter is a filter for the Python logging system that allows
Martin Kutlak 50c7366
you to restrict the rate at which messages can pass through your logging
Martin Kutlak 50c7366
handlers. The filter can be useful if you're using a handler such as Python's
Martin Kutlak 50c7366
logging.handlers.SMTPHandler to send error notification emails.
Martin Kutlak 50c7366
Error notification emails provide a useful means of keeping an eye on.
Martin Kutlak 50c7366
Martin Kutlak 50c7366
%package -n     python3-%{pypi_name}
Martin Kutlak 50c7366
Summary:        %{summary}
Martin Kutlak 50c7366
%{?python_provide:%python_provide python3-%{pypi_name}}
Martin Kutlak 50c7366
Martin Kutlak 50c7366
%description -n python3-%{pypi_name}
Martin Kutlak 50c7366
The RateLimitingFilter is a filter for the Python logging system that allows
Martin Kutlak 50c7366
you to restrict the rate at which messages can pass through your logging
Martin Kutlak 50c7366
handlers. The filter can be useful if you're using a handler such as Python's
Martin Kutlak 50c7366
logging.handlers.SMTPHandler to send error notification emails.
Martin Kutlak 50c7366
Error notification emails provide a useful means of keeping an eye on.
Martin Kutlak 50c7366
Martin Kutlak 50c7366
%prep
Martin Kutlak 50c7366
%autosetup -n %{pypi_name}-%{version}
Martin Kutlak 50c7366
# Remove bundled egg-info
Martin Kutlak 50c7366
rm -rf %{pypi_name}.egg-info
Martin Kutlak 50c7366
Martin Kutlak 50c7366
%build
Martin Kutlak 50c7366
%py3_build
Martin Kutlak 50c7366
Martin Kutlak 50c7366
%install
Martin Kutlak 50c7366
# Must do the subpackages' install first because the scripts in /usr/bin are
Martin Kutlak 50c7366
# overwritten with every setup.py install.
Martin Kutlak 50c7366
%py3_install
Martin Kutlak 50c7366
Martin Kutlak 50c7366
%files -n python3-%{pypi_name}
Martin Kutlak d9dfafd
%doc README.rst
Martin Kutlak 50c7366
%{python3_sitelib}/%{pypi_name}
Martin Kutlak fc8e1fa
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
Martin Kutlak 50c7366
Martin Kutlak 50c7366
%changelog
960700a
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-4
960700a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
960700a
cc57aff
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.5-3
cc57aff
- Rebuilt for Python 3.11
cc57aff
Martin Kutlak 5f88dfd
* Thu Apr 28 2022 Martin Kutlak <mkfedora@outlook.com> - 1.5-2
Martin Kutlak 5f88dfd
- Fix name of spec file
Martin Kutlak 5f88dfd
Martin Kutlak 8e22366
* Thu Apr 28 2022 Martin Kutlak <mkfedora@outlook.com> - 1.5-1
Martin Kutlak 8e22366
- Update to latest upstream release 1.5
Martin Kutlak 8e22366
d5fbf35
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-13
d5fbf35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
d5fbf35
3e03818
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-12
3e03818
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
3e03818
9b89332
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1-11
9b89332
- Rebuilt for Python 3.10
9b89332
5e530e0
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-10
5e530e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
5e530e0
Martin Kutlak fc8e1fa
* Tue Nov 24 2020 Martin Kutlak <mkfedora@outlook.com> - 1.1-9
Martin Kutlak fc8e1fa
- Drop python2
Martin Kutlak fc8e1fa
- Fix BZ#1900528
Martin Kutlak fc8e1fa
433a692
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-8
433a692
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
433a692
dd0ca0b
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1-7
dd0ca0b
- Rebuilt for Python 3.9
dd0ca0b
874570f
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-6
874570f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
874570f
b8db4e2
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1-5
b8db4e2
- Rebuilt for Python 3.8.0rc1 (#1748018)
b8db4e2
83ee8b7
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1-4
83ee8b7
- Rebuilt for Python 3.8
83ee8b7
Martin Kutlak 5745796
* Thu Aug 01 2019 Martin Kutlak <mkutlak@redhat.com> - 1.1-3
Martin Kutlak 5745796
- Drop python2 from epel8
Martin Kutlak 5745796
4219078
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-2
4219078
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4219078
Martin Kutlak d9dfafd
* Wed Mar 06 2019 Martin Kutlak <mkutlak@redhat.com> - 1.1-1
Martin Kutlak d9dfafd
- Update to upstream version 1.1.
Martin Kutlak d9dfafd
- Remove check section as it is not provided in sources.
Martin Kutlak d9dfafd
4da0556
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-5
4da0556
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4da0556
9e1b69d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-4
9e1b69d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9e1b69d
dec2374
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6-3
dec2374
- Rebuilt for Python 3.7
dec2374
Martin Kutlak 50c7366
* Wed Mar 14 2018 Martin Kutlak <mkutlak@redhat.com> - 0.6-1
Martin Kutlak b2f97e6
- Drop python2 subpackage from Fedora 29+
Martin Kutlak b2f97e6
Martin Kutlak b2f97e6
* Wed Mar 14 2018 Martin Kutlak <mkutlak@redhat.com> - 0.6-1
Martin Kutlak 50c7366
- Initial package.