remove the python2 subpackage
This commit is contained in:
parent
2a99d68b34
commit
90b543a0e1
@ -1,13 +1,13 @@
|
|||||||
Name: python-hpack
|
Name: python-hpack
|
||||||
Version: 3.0.0
|
Version: 3.0.0
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: HTTP/2 Header Compression for Python
|
Summary: HTTP/2 Header Compression for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/python-hyper/hpack
|
URL: https://github.com/python-hyper/hpack
|
||||||
Source0: https://files.pythonhosted.org/packages/source/h/hpack/hpack-3.0.0.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/h/hpack/hpack-3.0.0.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python2-devel python2dist(setuptools) python3-devel python3dist(setuptools)
|
BuildRequires: python3-devel python3dist(setuptools) python3dist(pytest) python3dist(hypothesis)
|
||||||
|
|
||||||
%{?python_enable_dependency_generator}
|
%{?python_enable_dependency_generator}
|
||||||
|
|
||||||
@ -16,15 +16,6 @@ hpack provides a simple Python interface to the HPACK compression algorithm,used
|
|||||||
in HTTP/2.Used by some of the most populer HTTP/2 implementations in Python,HPACK offers a great Python
|
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.
|
interface as well as optional upgrade to optimised C-based compression routines from nghttp2.
|
||||||
|
|
||||||
%package -n python2-hpack
|
|
||||||
Summary: HTTP/2 Header Compression for Python
|
|
||||||
%{?python_provide:%python_provide python2-hpack}
|
|
||||||
|
|
||||||
%description -n python2-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.
|
|
||||||
|
|
||||||
%package -n python3-hpack
|
%package -n python3-hpack
|
||||||
Summary: HTTP/2 Header Compression for Python
|
Summary: HTTP/2 Header Compression for Python
|
||||||
%{?python_provide:%python_provide python3-hpack}
|
%{?python_provide:%python_provide python3-hpack}
|
||||||
@ -39,28 +30,22 @@ interface as well as optional upgrade to optimised C-based compression routines
|
|||||||
rm -rf %{pypi_name}.egg-info
|
rm -rf %{pypi_name}.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} setup.py test
|
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
|
|
||||||
%files -n python2-hpack
|
|
||||||
%doc README.rst LICENSE
|
|
||||||
%{python2_sitelib}/hpack
|
|
||||||
%{python2_sitelib}/hpack-%{version}-py?.?.egg-info
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-hpack
|
%files -n python3-hpack
|
||||||
%doc README.rst LICENSE
|
%doc README.rst LICENSE
|
||||||
%{python3_sitelib}/hpack
|
%{python3_sitelib}/hpack
|
||||||
%{python3_sitelib}/hpack-%{version}-py?.?.egg-info
|
%{python3_sitelib}/hpack-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 13 2020 baizhonggui <baizhonggui@huawei.com> - 3.0.0-5
|
||||||
|
- Drop Python 2 subpackage
|
||||||
|
|
||||||
* Fri Mar 6 2020 zhangtao <zhangtao221@huawei.com> - 3.0.0-4
|
* Fri Mar 6 2020 zhangtao <zhangtao221@huawei.com> - 3.0.0-4
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user