Blame python-hpack.spec

a34c99
# Created by pyp2rpm-3.3.2
a34c99
%global pypi_name hpack
a34c99
a34c99
%global common_description %{expand:
a34c99
HTTP/2 Header Encoding for Python This module contains a pure-Python
a34c99
HTTP/2 header encoding (HPACK) logic for use in Python programs that implement
a34c99
HTTP/2. It also contains a compatibility layer that automatically enables the
a34c99
use of nghttp2 if it's available.}
a34c99
a34c99
Name:           python-%{pypi_name}
a34c99
Version:        3.0.0
b8c7cc
Release:        5%{?dist}
a34c99
Summary:        Pure-Python HPACK header compression
a34c99
a34c99
License:        MIT
a34c99
URL:            http://hyper.rtfd.org
b8c7cc
Source0:        https://github.com/python-hyper/hpack/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
a34c99
BuildArch:      noarch
a34c99
 
a34c99
BuildRequires:  python2-devel
a34c99
BuildRequires:  python2dist(setuptools)
b8c7cc
BuildRequires:  python2dist(pytest)
b8c7cc
BuildRequires:  python2dist(hypothesis)
a34c99
 
a34c99
BuildRequires:  python3-devel
a34c99
BuildRequires:  python3dist(setuptools)
b8c7cc
BuildRequires:  python3dist(pytest)
b8c7cc
BuildRequires:  python3dist(hypothesis)
a34c99
a34c99
%{?python_enable_dependency_generator}
a34c99
a34c99
%description
a34c99
%{common_description}
a34c99
a34c99
a34c99
%package -n     python2-%{pypi_name}
a34c99
Summary:        %{summary}
a34c99
%{?python_provide:%python_provide python2-%{pypi_name}}
a34c99
a34c99
%description -n python2-%{pypi_name}
a34c99
%{common_description}
a34c99
a34c99
a34c99
%package -n     python3-%{pypi_name}
a34c99
Summary:        %{summary}
a34c99
%{?python_provide:%python_provide python3-%{pypi_name}}
a34c99
a34c99
%description -n python3-%{pypi_name}
a34c99
%{common_description}
a34c99
a34c99
a34c99
%prep
a34c99
%autosetup -n %{pypi_name}-%{version}
a34c99
# Remove bundled egg-info
a34c99
rm -rf %{pypi_name}.egg-info
b8c7cc
rm -rf bench
a34c99
a34c99
a34c99
%build
a34c99
%py2_build
a34c99
%py3_build
a34c99
a34c99
a34c99
%install
a34c99
%py2_install
a34c99
%py3_install
a34c99
a34c99
a34c99
%check
b8c7cc
%{__python2} -m pytest
b8c7cc
%{__python3} -m pytest
a34c99
a34c99
a34c99
%files -n python2-%{pypi_name}
a34c99
%license LICENSE
a34c99
%doc README.rst
a34c99
%{python2_sitelib}/%{pypi_name}
a34c99
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
a34c99
a34c99
a34c99
%files -n python3-%{pypi_name}
a34c99
%license LICENSE
a34c99
%doc README.rst
a34c99
%{python3_sitelib}/%{pypi_name}
a34c99
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
a34c99
a34c99
a34c99
%changelog
b8c7cc
* Thu Mar 07 2019 Robert-André Mauchin <zebob.m@gmail.com> - 3.0.0-5
b8c7cc
- Add actual tests
b8c7cc
37d0b6
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-4
37d0b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
37d0b6
2040ee
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-3
2040ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2040ee
605574
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.0.0-2
605574
- Rebuilt for Python 3.7
605574
a34c99
* Mon May 14 2018 Robert-André Mauchin <zebob.m@gmail.com> - 3.0.0-1
a34c99
- Initial package.