tuibuilder_pel7x64builder0
4 years ago
1 changed files with 52 additions and 0 deletions
@ -0,0 +1,52 @@
@@ -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 |
Loading…
Reference in new issue