From 527ab43033e613633aac9f36c597dba6b1155e50 Mon Sep 17 00:00:00 2001 From: tuibuilder_pel7x64builder0 Date: Sun, 7 Feb 2021 01:43:08 +0100 Subject: [PATCH] python-hpack package creation Signed-off-by: tuibuilder_pel7x64builder0 --- SPECS/python-hpack.spec | 52 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 SPECS/python-hpack.spec diff --git a/SPECS/python-hpack.spec b/SPECS/python-hpack.spec new file mode 100644 index 0000000..b608510 --- /dev/null +++ b/SPECS/python-hpack.spec @@ -0,0 +1,52 @@ +%global pypi_name hpack + +%global common_description %{expand: +HTTP/2 Header Encoding for Python This module contains a pure-Python +HTTP/2 header encoding (HPACK) logic for use in Python programs that implement +HTTP/2. It also contains a compatibility layer that automatically enables the +use of nghttp2 if it's available.} + +Name: python-%{pypi_name} +Version: 4.0.0 +Release: 1%{?dist} +Summary: Pure-Python HPACK header compression +License: MIT +URL: http://hyper.rtfd.org +Source0: https://github.com/python-hyper/hpack/archive/v%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-setuptools + + +%description +%{common_description} + + +%package -n python3-%{pypi_name} +Summary: %{summary} +%description -n python3-%{pypi_name} +%{common_description} + + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info +rm -rf bench + + +%build +%{__python3} setup.py build + +%install +%{__python3} setup.py install --optimize 2 --root %{buildroot} + + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + + +%changelog