diff --git a/hpack-3.0.0.tar.gz b/hpack-3.0.0.tar.gz new file mode 100644 index 0000000..b13a1eb Binary files /dev/null and b/hpack-3.0.0.tar.gz differ diff --git a/python-hpack.spec b/python-hpack.spec new file mode 100644 index 0000000..ebc2450 --- /dev/null +++ b/python-hpack.spec @@ -0,0 +1,66 @@ +Name: python-hpack +Version: 3.0.0 +Release: 4 +Summary: HTTP/2 Header Compression for Python +License: MIT +URL: https://github.com/python-hyper/hpack +Source0: https://files.pythonhosted.org/packages/source/h/hpack/hpack-3.0.0.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel python2dist(setuptools) python3-devel python3dist(setuptools) + +%{?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 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 +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 +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +%{__python2} 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 +%doc README.rst LICENSE +%{python3_sitelib}/hpack +%{python3_sitelib}/hpack-%{version}-py?.?.egg-info + +%changelog +* Fri Mar 6 2020 zhangtao - 3.0.0-4 +- Package init