a34c99c
# Created by pyp2rpm-3.3.2
a34c99c
%global pypi_name hpack
a34c99c
a34c99c
%global common_description %{expand:
a34c99c
HTTP/2 Header Encoding for Python This module contains a pure-Python
a34c99c
HTTP/2 header encoding (HPACK) logic for use in Python programs that implement
a34c99c
HTTP/2. It also contains a compatibility layer that automatically enables the
a34c99c
use of nghttp2 if it's available.}
a34c99c
a34c99c
Name:           python-%{pypi_name}
a34c99c
Version:        3.0.0
a34c99c
Release:        1%{?dist}
a34c99c
Summary:        Pure-Python HPACK header compression
a34c99c
a34c99c
License:        MIT
a34c99c
URL:            http://hyper.rtfd.org
a34c99c
Source0:        https://files.pythonhosted.org/packages/source/h/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
a34c99c
BuildArch:      noarch
a34c99c
 
a34c99c
BuildRequires:  python2-devel
a34c99c
BuildRequires:  python2dist(setuptools)
a34c99c
 
a34c99c
BuildRequires:  python3-devel
a34c99c
BuildRequires:  python3dist(setuptools)
a34c99c
a34c99c
%{?python_enable_dependency_generator}
a34c99c
a34c99c
%description
a34c99c
%{common_description}
a34c99c
a34c99c
a34c99c
%package -n     python2-%{pypi_name}
a34c99c
Summary:        %{summary}
a34c99c
%{?python_provide:%python_provide python2-%{pypi_name}}
a34c99c
a34c99c
%description -n python2-%{pypi_name}
a34c99c
%{common_description}
a34c99c
a34c99c
a34c99c
%package -n     python3-%{pypi_name}
a34c99c
Summary:        %{summary}
a34c99c
%{?python_provide:%python_provide python3-%{pypi_name}}
a34c99c
a34c99c
%description -n python3-%{pypi_name}
a34c99c
%{common_description}
a34c99c
a34c99c
a34c99c
%prep
a34c99c
%autosetup -n %{pypi_name}-%{version}
a34c99c
# Remove bundled egg-info
a34c99c
rm -rf %{pypi_name}.egg-info
a34c99c
a34c99c
a34c99c
%build
a34c99c
%py2_build
a34c99c
%py3_build
a34c99c
a34c99c
a34c99c
%install
a34c99c
%py2_install
a34c99c
%py3_install
a34c99c
a34c99c
a34c99c
%check
a34c99c
%{__python2} setup.py test
a34c99c
%{__python3} setup.py test
a34c99c
a34c99c
a34c99c
%files -n python2-%{pypi_name}
a34c99c
%license LICENSE
a34c99c
%doc README.rst
a34c99c
%{python2_sitelib}/%{pypi_name}
a34c99c
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
a34c99c
a34c99c
a34c99c
%files -n python3-%{pypi_name}
a34c99c
%license LICENSE
a34c99c
%doc README.rst
a34c99c
%{python3_sitelib}/%{pypi_name}
a34c99c
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
a34c99c
a34c99c
a34c99c
%changelog
a34c99c
* Mon May 14 2018 Robert-André Mauchin <zebob.m@gmail.com> - 3.0.0-1
a34c99c
- Initial package.