73 lines
2.4 KiB
RPMSpec
73 lines
2.4 KiB
RPMSpec
Name: python-priority
|
|
Version: 1.3.0
|
|
Release: 4
|
|
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: python2-devel python2dist(setuptools) 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 python2-priority
|
|
Summary: A pure-Python HTTP/2 Priority implementation
|
|
%{?python_provide:%python_provide python2-priority}
|
|
|
|
%description -n python2-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.
|
|
|
|
%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
|
|
%py2_build
|
|
%py3_build
|
|
|
|
%install
|
|
%py2_install
|
|
%py3_install
|
|
|
|
%check
|
|
%{__python2} setup.py test
|
|
%{__python3} setup.py test
|
|
|
|
%files -n python2-priority
|
|
%doc README.rst LICENSE
|
|
%{python2_sitelib}/priority
|
|
%{python2_sitelib}/priority-%{version}-py?.?.egg-info
|
|
|
|
%files -n python3-priority
|
|
%doc README.rst LICENSE
|
|
%{python3_sitelib}/priority
|
|
%{python3_sitelib}/priority-%{version}-py?.?.egg-info
|
|
|
|
%changelog
|
|
* Thu Feb 27 2020 xuping <xuping21@huawei.com> - 1.3.0-4
|
|
- Package init
|
|
|