|
|
50c7366 |
# Created by pyp2rpm-3.2.2
|
|
|
50c7366 |
%global pypi_name ratelimitingfilter
|
|
|
50c7366 |
|
|
|
b2f97e6 |
# Disable python2 subpackage from F29+
|
|
|
b2f97e6 |
%if 0%{?fedora} > 28
|
|
|
b2f97e6 |
%bcond_with python2
|
|
|
b2f97e6 |
%else
|
|
|
b2f97e6 |
%bcond_without python2
|
|
|
b2f97e6 |
%endif
|
|
|
b2f97e6 |
|
|
|
50c7366 |
Name: python-%{pypi_name}
|
|
|
50c7366 |
Version: 0.6
|
|
|
9e1b69d |
Release: 4%{?dist}
|
|
|
50c7366 |
Summary: A rate limiting filter for the Python logging system
|
|
|
50c7366 |
|
|
|
50c7366 |
License: MIT
|
|
|
50c7366 |
URL: https://github.com/wkeeling/ratelimitingfilter
|
|
|
50c7366 |
Source0: https://files.pythonhosted.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
50c7366 |
BuildArch: noarch
|
|
|
50c7366 |
|
|
|
b2f97e6 |
%if %{with python2}
|
|
|
50c7366 |
BuildRequires: python2-devel
|
|
|
50c7366 |
BuildRequires: python2-mock
|
|
|
50c7366 |
BuildRequires: python2-setuptools
|
|
|
b2f97e6 |
%endif
|
|
|
50c7366 |
|
|
|
50c7366 |
BuildRequires: python3-devel
|
|
|
50c7366 |
BuildRequires: python3-mock
|
|
|
50c7366 |
BuildRequires: python3-setuptools
|
|
|
50c7366 |
|
|
|
50c7366 |
%description
|
|
|
50c7366 |
The RateLimitingFilter is a filter for the Python logging system that allows
|
|
|
50c7366 |
you to restrict the rate at which messages can pass through your logging
|
|
|
50c7366 |
handlers. The filter can be useful if you're using a handler such as Python's
|
|
|
50c7366 |
logging.handlers.SMTPHandler to send error notification emails.
|
|
|
50c7366 |
Error notification emails provide a useful means of keeping an eye on.
|
|
|
50c7366 |
|
|
|
b2f97e6 |
%if %{with python2}
|
|
|
50c7366 |
%package -n python2-%{pypi_name}
|
|
|
50c7366 |
Summary: %{summary}
|
|
|
50c7366 |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
50c7366 |
|
|
|
50c7366 |
%description -n python2-%{pypi_name}
|
|
|
50c7366 |
The RateLimitingFilter is a filter for the Python logging system that allows
|
|
|
50c7366 |
you to restrict the rate at which messages can pass through your logging
|
|
|
50c7366 |
handlers. The filter can be useful if you're using a handler such as Python's
|
|
|
50c7366 |
logging.handlers.SMTPHandler to send error notification emails.
|
|
|
50c7366 |
Error notification emails provide a useful means of keeping an eye on.
|
|
|
b2f97e6 |
%endif
|
|
|
50c7366 |
|
|
|
50c7366 |
%package -n python3-%{pypi_name}
|
|
|
50c7366 |
Summary: %{summary}
|
|
|
50c7366 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
50c7366 |
|
|
|
50c7366 |
%description -n python3-%{pypi_name}
|
|
|
50c7366 |
The RateLimitingFilter is a filter for the Python logging system that allows
|
|
|
50c7366 |
you to restrict the rate at which messages can pass through your logging
|
|
|
50c7366 |
handlers. The filter can be useful if you're using a handler such as Python's
|
|
|
50c7366 |
logging.handlers.SMTPHandler to send error notification emails.
|
|
|
50c7366 |
Error notification emails provide a useful means of keeping an eye on.
|
|
|
50c7366 |
|
|
|
50c7366 |
%prep
|
|
|
50c7366 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
50c7366 |
# Remove bundled egg-info
|
|
|
50c7366 |
rm -rf %{pypi_name}.egg-info
|
|
|
50c7366 |
|
|
|
50c7366 |
%build
|
|
|
b2f97e6 |
%if %{with python2}
|
|
|
50c7366 |
%py2_build
|
|
|
b2f97e6 |
%endif
|
|
|
50c7366 |
%py3_build
|
|
|
50c7366 |
|
|
|
50c7366 |
%install
|
|
|
50c7366 |
# Must do the subpackages' install first because the scripts in /usr/bin are
|
|
|
50c7366 |
# overwritten with every setup.py install.
|
|
|
50c7366 |
%py3_install
|
|
|
50c7366 |
|
|
|
b2f97e6 |
%if %{with python2}
|
|
|
50c7366 |
%py2_install
|
|
|
b2f97e6 |
%endif
|
|
|
50c7366 |
|
|
|
50c7366 |
|
|
|
50c7366 |
%check
|
|
|
b2f97e6 |
%if %{with python2}
|
|
|
50c7366 |
%{__python2} setup.py test
|
|
|
b2f97e6 |
%endif
|
|
|
50c7366 |
%{__python3} setup.py test
|
|
|
50c7366 |
|
|
|
b2f97e6 |
%if %{with python2}
|
|
|
50c7366 |
%files -n python2-%{pypi_name}
|
|
|
50c7366 |
%doc README.md README.rst
|
|
|
50c7366 |
%{python2_sitelib}/%{pypi_name}
|
|
|
50c7366 |
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
b2f97e6 |
%endif
|
|
|
50c7366 |
|
|
|
50c7366 |
%files -n python3-%{pypi_name}
|
|
|
50c7366 |
%doc README.md README.rst
|
|
|
50c7366 |
%{python3_sitelib}/%{pypi_name}
|
|
|
50c7366 |
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
50c7366 |
|
|
|
50c7366 |
%changelog
|
|
|
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 |
|
|
|
50c7366 |
* Wed Mar 14 2018 Martin Kutlak <mkutlak@redhat.com> - 0.6-1
|
|
|
b2f97e6 |
- Drop python2 subpackage from Fedora 29+
|
|
|
b2f97e6 |
|
|
|
b2f97e6 |
* Wed Mar 14 2018 Martin Kutlak <mkutlak@redhat.com> - 0.6-1
|
|
|
50c7366 |
- Initial package.
|