python-hyperframe/python-hyperframe.spec

67 lines
2.0 KiB
RPMSpec
Raw Normal View History

2020-03-07 20:57:07 +08:00
Name: python-hyperframe
2020-03-10 17:18:25 +08:00
Version: 5.2.0
Release: 2
2020-03-07 20:57:07 +08:00
Summary: HTTP/2 framing layer for Python
2020-03-10 17:18:25 +08:00
2020-03-07 20:57:07 +08:00
License: MIT
URL: https://github.com/python-hyper/hyperframe
2020-03-10 17:18:25 +08:00
Source0: https://files.pythonhosted.org/packages/source/h/hyperframe/hyperframe-5.2.0.tar.gz
2020-03-07 20:57:07 +08:00
BuildArch: noarch
2020-03-10 17:18:25 +08:00
BuildRequires: python2-devel python2dist(setuptools) python2dist(pytest)
BuildRequires: python3-devel python3dist(setuptools) python3dist(pytest)
2020-03-07 20:57:07 +08:00
%{?python_enable_dependency_generator}
%description
2020-03-10 17:18:25 +08:00
This library contains the HTTP/2 framing code used in the hyper project.It provides a
pure-python codebase that is capable of decoding a binary stream into HTTP/2 frames.
2020-03-07 20:57:07 +08:00
%package -n python2-hyperframe
Summary: HTTP/2 framing layer for Python
%{?python_provide:%python_provide python2-hyperframe}
%description -n python2-hyperframe
2020-03-10 17:18:25 +08:00
This library contains the HTTP/2 framing code used in the hyper project.It provides a
pure-python codebase that is capable of decoding a binary stream into HTTP/2 frames.
2020-03-07 20:57:07 +08:00
%package -n python3-hyperframe
Summary: HTTP/2 framing layer for Python
%{?python_provide:%python_provide python3-hyperframe}
%description -n python3-hyperframe
2020-03-10 17:18:25 +08:00
This library contains the HTTP/2 framing code used in the hyper project.It provides a
pure-python codebase that is capable of decoding a binary stream into HTTP/2 frames.
2020-03-07 20:57:07 +08:00
%prep
%autosetup -n hyperframe-%{version}
2020-03-10 17:18:25 +08:00
rm -rf hyperframe.egg-info
2020-03-07 20:57:07 +08:00
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
2020-03-10 17:18:25 +08:00
%{__python2} -m pytest
%{__python3} -m pytest
2020-03-07 20:57:07 +08:00
%files -n python2-hyperframe
%doc README.rst LICENSE
%{python2_sitelib}/hyperframe
%{python2_sitelib}/hyperframe-%{version}-py?.?.egg-info
%files -n python3-hyperframe
%doc README.rst LICENSE
%{python3_sitelib}/hyperframe
%{python3_sitelib}/hyperframe-%{version}-py?.?.egg-info
%changelog
2020-03-10 17:18:25 +08:00
* Tue Mar 10 2020 zhangtao <zhangtao221@huawei.com> - 5.2.0-2
- Package update
2020-03-07 20:57:07 +08:00
* Fri Mar 6 2020 zhangtao <zhangtao221@huawei.com> - 5.1.0-4
- Package init