| |
@@ -7,6 +7,8 @@
|
| |
be embeddable in whatever program you choose to use, ensuring that you can
|
| |
speak HTTP/2 regardless of your programming paradigm.}
|
| |
|
| |
+ %bcond_without docs
|
| |
+
|
| |
Name: python-%{pypi_name}
|
| |
Version: 3.1.0
|
| |
Release: 1%{?dist}
|
| |
@@ -32,9 +34,11 @@
|
| |
BuildRequires: python3dist(pytest)
|
| |
BuildRequires: python3dist(hypothesis)
|
| |
|
| |
+ %if %{with docs}
|
| |
# Unbundle
|
| |
BuildRequires: js-jquery
|
| |
BuildRequires: js-underscore
|
| |
+ %endif # with docs
|
| |
|
| |
%{?python_enable_dependency_generator}
|
| |
|
| |
@@ -58,6 +62,7 @@
|
| |
%{common_description}
|
| |
|
| |
|
| |
+ %if %{with docs}
|
| |
%package doc
|
| |
Summary: Documentation for %{name}
|
| |
|
| |
@@ -68,6 +73,7 @@
|
| |
%{common_description}
|
| |
|
| |
This is the documentation package for h2.
|
| |
+ %endif # with docs
|
| |
|
| |
|
| |
%prep
|
| |
@@ -80,6 +86,7 @@
|
| |
%py2_build
|
| |
%py3_build
|
| |
|
| |
+ %if %{with docs}
|
| |
# generate html docs
|
| |
PYTHONPATH=${PWD} sphinx-build-3 docs/source html
|
| |
# remove the sphinx-build leftovers
|
| |
@@ -94,6 +101,7 @@
|
| |
ln -s /usr/share/javascript/jquery/3.2.1/jquery.min.js html/_static/jquery.js
|
| |
rm -f html/_static/jquery-3.2.1.js
|
| |
ln -s /usr/share/javascript/jquery/3.2.1/jquery.js html/_static/jquery-3.2.1.js
|
| |
+ %endif # with docs
|
| |
|
| |
|
| |
%install
|
| |
@@ -120,9 +128,11 @@
|
| |
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
| |
|
| |
|
| |
+ %if %{with docs}
|
| |
%files doc
|
| |
%doc html
|
| |
%license LICENSE
|
| |
+ %endif # with docs
|
| |
|
| |
|
| |
%changelog
|
| |
Allow building python-h2 without documentation, to avoid pulling in the seemingly infinite dependency chains of all things nodejs.
This package is in the recursive build dependency chain of fedpkg, so it is important to be able to build it without having to build node*.