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