python-priority/python-priority.spec
2021-07-22 08:10:48 +00:00

56 lines
1.8 KiB
RPMSpec

Name: python-priority
Version: 1.3.0
Release: 5
Summary: A pure-Python HTTP/2 Priority implementation
License: MIT
URL: http://python-hyper.org/priority/
Source0: https://files.pythonhosted.org/packages/ba/96/7d0b024087062418dfe02a68cd6b195399266ac002fb517aad94cc93e076/priority-1.3.0.tar.gz
BuildArch: noarch
BuildRequires: python3-devel python3dist(setuptools)
%{?python_enable_dependency_generator}
%description
A HTTP/2 Priority Implementation Priority is a pure-Python implementation of the
priority logic for HTTP/2, set out in RFC 7540 Section 5.3 (Stream Priority)_.
This logic allows for clients to express a preference for how the server allocates
its (limited) resources to the many outstanding HTTP requests that may be running
over a single HTTP/2 connection.
%package -n python3-priority
Summary: A pure-Python HTTP/2 Priority implementation
%{?python_provide:%python_provide python3-priority}
%description -n python3-priority
A HTTP/2 Priority Implementation Priority is a pure-Python implementation of the
priority logic for HTTP/2, set out in RFC 7540 Section 5.3 (Stream Priority)_.
This logic allows for clients to express a preference for how the server allocates
its (limited) resources to the many outstanding HTTP requests that may be running
over a single HTTP/2 connection.
%prep
%autosetup -n priority-%{version} -p1
rm -rf priority.egg-info
%build
%py3_build
%install
%py3_install
%check
%{__python3} setup.py test
%files -n python3-priority
%doc README.rst LICENSE
%{python3_sitelib}/priority
%{python3_sitelib}/priority-%{version}-py?.?.egg-info
%changelog
* Thu Jul 22 2021 wangxiyuan <wangxiyuan1007@gmail.com> - 1.3.0-5
- Drop python2 support
* Thu Feb 27 2020 xuping <xuping21@huawei.com> - 1.3.0-4
- Package init