python-hpack/python-hpack.spec

58 lines
1.8 KiB
RPMSpec
Raw Permalink Normal View History

2020-03-07 20:47:09 +08:00
Name: python-hpack
2021-07-28 15:10:04 +08:00
Version: 4.0.0
2022-04-01 15:21:26 +08:00
Release: 2
2020-03-07 20:47:09 +08:00
Summary: HTTP/2 Header Compression for Python
License: MIT
URL: https://github.com/python-hyper/hpack
2021-07-28 15:10:04 +08:00
Source0: https://github.com/python-hyper/hpack/archive/refs/tags/v%{version}.tar.gz
2020-03-07 20:47:09 +08:00
BuildArch: noarch
2020-11-13 17:29:33 +08:00
BuildRequires: python3-devel python3dist(setuptools) python3dist(pytest) python3dist(hypothesis)
2020-03-07 20:47:09 +08:00
%{?python_enable_dependency_generator}
%description
hpack provides a simple Python interface to the HPACK compression algorithm,used to compress HTTP headers
in HTTP/2.Used by some of the most populer HTTP/2 implementations in Python,HPACK offers a great Python
interface as well as optional upgrade to optimised C-based compression routines from nghttp2.
%package -n python3-hpack
Summary: HTTP/2 Header Compression for Python
%{?python_provide:%python_provide python3-hpack}
%description -n python3-hpack
hpack provides a simple Python interface to the HPACK compression algorithm,used to compress HTTP headers
in HTTP/2.Used by some of the most populer HTTP/2 implementations in Python,HPACK offers a great Python
interface as well as optional upgrade to optimised C-based compression routines from nghttp2.
%prep
%autosetup -n hpack-%{version} -p1
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
%check
%{__python3} setup.py test
%files -n python3-hpack
%doc README.rst LICENSE
%{python3_sitelib}/hpack
2022-04-01 15:21:26 +08:00
%{python3_sitelib}/hpack-%{version}-py%{python3_version}.egg-info
2020-03-07 20:47:09 +08:00
%changelog
2022-04-01 15:21:26 +08:00
* Fri Apr 01 2022 xigaoxinyan <xigaoxinyan@huawei.com> - 4.0.0-2
- Fix build error caused by py3.10+ wildcard
2021-07-28 15:10:04 +08:00
* Wed Jul 28 2021 liyanan <liyanan32@huawei.com> - 4.0.0-1
- update to 4.0.0
2020-11-13 17:29:33 +08:00
* Fri Nov 13 2020 baizhonggui <baizhonggui@huawei.com> - 3.0.0-5
- Drop Python 2 subpackage
2020-03-07 21:15:33 +08:00
* Fri Mar 6 2020 zhangtao <zhangtao221@huawei.com> - 3.0.0-4
2020-03-07 20:47:09 +08:00
- Package init