|
 |
520d6d |
# Created by pyp2rpm-3.3.2
|
|
 |
520d6d |
%global pypi_name h2
|
|
 |
520d6d |
|
|
 |
520d6d |
%global common_description %{expand:
|
|
 |
520d6d |
HTTP/2 Protocol Stack This repository contains a pure-Python
|
|
 |
520d6d |
implementation of a HTTP/2 protocol stack. It's written from the ground up to
|
|
 |
520d6d |
be embeddable in whatever program you choose to use, ensuring that you can
|
|
 |
520d6d |
speak HTTP/2 regardless of your programming paradigm.}
|
|
 |
520d6d |
|
|
 |
520d6d |
%bcond_with docs
|
|
 |
520d6d |
|
|
 |
520d6d |
Name: python-%{pypi_name}
|
|
 |
520d6d |
Version: 4.0.0
|
|
 |
520d6d |
Release: 3%{?dist}
|
|
 |
520d6d |
Summary: HTTP/2 State-Machine based protocol implementation
|
|
 |
520d6d |
|
|
 |
520d6d |
License: MIT
|
|
 |
520d6d |
URL: https://hyper-h2.readthedocs.io
|
|
 |
520d6d |
Source0: %pypi_source
|
|
 |
520d6d |
# Workaround the issues with hypothesis 6.6
|
|
 |
520d6d |
Patch0: https://patch-diff.githubusercontent.com/raw/python-hyper/h2/pull/1248.patch#/0001-Workaround-the-issues-with-hypothesis-6.6.patch
|
|
 |
520d6d |
|
|
 |
520d6d |
BuildArch: noarch
|
|
 |
520d6d |
|
|
 |
520d6d |
BuildRequires: python3-devel
|
|
 |
520d6d |
BuildRequires: (python3dist(hpack) >= 4 with python3dist(hpack) < 5)
|
|
 |
520d6d |
BuildRequires: (python3dist(hyperframe) >= 6 with python3dist(hyperframe) < 7)
|
|
 |
520d6d |
BuildRequires: python3dist(setuptools)
|
|
 |
520d6d |
BuildRequires: python3dist(sphinx)
|
|
 |
520d6d |
BuildRequires: python3dist(pytest)
|
|
 |
520d6d |
BuildRequires: python3dist(hypothesis)
|
|
 |
520d6d |
|
|
 |
520d6d |
%if %{with docs}
|
|
 |
520d6d |
# Unbundle
|
|
 |
520d6d |
BuildRequires: js-jquery
|
|
 |
520d6d |
BuildRequires: js-underscore
|
|
 |
520d6d |
%endif
|
|
 |
520d6d |
|
|
 |
520d6d |
%description
|
|
 |
520d6d |
%{common_description}
|
|
 |
520d6d |
|
|
 |
520d6d |
%package -n python3-%{pypi_name}
|
|
 |
520d6d |
Summary: %{summary}
|
|
 |
520d6d |
|
|
 |
520d6d |
%description -n python3-%{pypi_name}
|
|
 |
520d6d |
%{common_description}
|
|
 |
520d6d |
|
|
 |
520d6d |
%if %{with docs}
|
|
 |
520d6d |
%package doc
|
|
 |
520d6d |
Summary: Documentation for %{name}
|
|
 |
520d6d |
|
|
 |
520d6d |
Requires: js-jquery
|
|
 |
520d6d |
Requires: js-underscore
|
|
 |
520d6d |
|
|
 |
520d6d |
%description doc
|
|
 |
520d6d |
%{common_description}
|
|
 |
520d6d |
|
|
 |
520d6d |
This is the documentation package for h2.
|
|
 |
520d6d |
%endif
|
|
 |
520d6d |
|
|
 |
520d6d |
%prep
|
|
 |
520d6d |
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
 |
520d6d |
# Remove bundled egg-info
|
|
 |
520d6d |
rm -rf %{pypi_name}.egg-info
|
|
 |
520d6d |
|
|
 |
520d6d |
%build
|
|
 |
520d6d |
%py3_build
|
|
 |
520d6d |
|
|
 |
520d6d |
%if %{with docs}
|
|
 |
520d6d |
# generate html docs
|
|
 |
520d6d |
PYTHONPATH=${PWD} sphinx-build-3 docs/source html
|
|
 |
520d6d |
# remove the sphinx-build leftovers
|
|
 |
520d6d |
rm -rf html/.{doctrees,buildinfo}
|
|
 |
520d6d |
|
|
 |
520d6d |
# Unbundle JS
|
|
 |
520d6d |
rm -f html/_static/underscore.js
|
|
 |
520d6d |
ln -s /usr/share/javascript/underscore/underscore-min.js html/_static/underscore.js
|
|
 |
520d6d |
rm -f html/_static/underscore-1.3.1.js
|
|
 |
520d6d |
ln -s /usr/share/javascript/underscore/underscore.js html/_static/underscore-1.3.1.js
|
|
 |
520d6d |
rm -f html/_static/jquery.js
|
|
 |
520d6d |
ln -s /usr/share/javascript/jquery/3.2.1/jquery.min.js html/_static/jquery.js
|
|
 |
520d6d |
rm -f html/_static/jquery-3.2.1.js
|
|
 |
520d6d |
ln -s /usr/share/javascript/jquery/3.2.1/jquery.js html/_static/jquery-3.2.1.js
|
|
 |
520d6d |
%endif
|
|
 |
520d6d |
|
|
 |
520d6d |
%install
|
|
 |
520d6d |
%py3_install
|
|
 |
520d6d |
|
|
 |
520d6d |
%check
|
|
 |
520d6d |
PYTHONPATH=$PYTHONPATH:%{buildroot}%{python3_sitelib} %{__python3} -m pytest
|
|
 |
520d6d |
|
|
 |
520d6d |
%files -n python3-%{pypi_name}
|
|
 |
520d6d |
%license LICENSE
|
|
 |
520d6d |
%doc README.rst
|
|
 |
520d6d |
%{python3_sitelib}/%{pypi_name}
|
|
 |
520d6d |
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info
|
|
 |
520d6d |
|
|
 |
520d6d |
%if %{with docs}
|
|
 |
520d6d |
%files doc
|
|
 |
520d6d |
%doc html
|
|
 |
520d6d |
%license LICENSE
|
|
 |
520d6d |
%endif
|
|
 |
520d6d |
|
|
 |
520d6d |
|
|
 |
520d6d |
%changelog
|
|
 |
520d6d |
* Tue Mar 9 08:32:35 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 4.0.0-3
|
|
 |
520d6d |
- Add patch to workaround the issues with hypothesis 6.6
|
|
 |
520d6d |
- Close: rhbz#1936524
|
|
 |
520d6d |
|
|
 |
520d6d |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-2
|
|
 |
520d6d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
520d6d |
|
|
 |
520d6d |
* Sat Nov 14 15:28:57 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 4.0.0-1
|
|
 |
520d6d |
- Update to 4.0.0
|
|
 |
520d6d |
- Close: rhbz#1880732
|
|
 |
520d6d |
|
|
 |
520d6d |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-4
|
|
 |
520d6d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
520d6d |
|
|
 |
520d6d |
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 3.2.0-3
|
|
 |
520d6d |
- Rebuilt for Python 3.9
|
|
 |
520d6d |
|
|
 |
520d6d |
* Mon Feb 17 03:14:38 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 3.2.0-1
|
|
 |
520d6d |
- Update to 3.2.0
|
|
 |
520d6d |
|
|
 |
520d6d |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-2
|
|
 |
520d6d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
 |
520d6d |
|
|
 |
520d6d |
* Wed Sep 18 2019 Robert-André Mauchin <zebob.m@gmail.com> - 3.1.1-1
|
|
 |
520d6d |
- Release 3.1.1 (#1742451)
|
|
 |
520d6d |
|
|
 |
520d6d |
* Mon Sep 09 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-6
|
|
 |
520d6d |
- Subpackage python2-h2 has been removed
|
|
 |
520d6d |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
 |
520d6d |
|
|
 |
520d6d |
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-5
|
|
 |
520d6d |
- Rebuilt for Python 3.8
|
|
 |
520d6d |
|
|
 |
520d6d |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-4
|
|
 |
520d6d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
 |
520d6d |
|
|
 |
520d6d |
* Wed Jul 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-3
|
|
 |
520d6d |
- Rebuilt to update automatic Python dependencies
|
|
 |
520d6d |
|
|
 |
520d6d |
* Fri Mar 08 2019 Jeroen van Meeuwen <vanmeeuwen+fedora@kolabsys.com> - 3.1.0-2
|
|
 |
520d6d |
- Add bcond_without docs
|
|
 |
520d6d |
|
|
 |
520d6d |
* Thu Mar 07 2019 Robert-André Mauchin <zebob.m@gmail.com> - 3.1.0-1
|
|
 |
520d6d |
- Release 3.1.0
|
|
 |
520d6d |
- Run tests
|
|
 |
520d6d |
|
|
 |
520d6d |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-4
|
|
 |
520d6d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
 |
520d6d |
|
|
 |
520d6d |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-3
|
|
 |
520d6d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
 |
520d6d |
|
|
 |
520d6d |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.0.1-2
|
|
 |
520d6d |
- Rebuilt for Python 3.7
|
|
 |
520d6d |
|
|
 |
520d6d |
* Mon May 14 2018 Robert-André Mauchin <zebob.m@gmail.com> - 3.0.1-1
|
|
 |
520d6d |
- Initial package.
|