Hello community, here is the log from the commit of package python3-jupyter for openSUSE:Factory checked in at 2015-10-14 16:44:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-jupyter (Old) and /work/SRC/openSUSE:Factory/.python3-jupyter.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python3-jupyter" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-jupyter/python3-jupyter.changes 2015-09-30 05:50:11.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-jupyter.new/python3-jupyter.changes 2015-10-14 16:44:23.000000000 +0200 @@ -1,0 +2,5 @@ +Mon Oct 5 16:41:50 UTC 2015 - toddrme2178@gmail.com + +- Build documentation + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-jupyter.spec ++++++ --- /var/tmp/diff_new_pack.45F3te/_old 2015-10-14 16:44:24.000000000 +0200 +++ /var/tmp/diff_new_pack.45F3te/_new 2015-10-14 16:44:24.000000000 +0200 @@ -31,6 +31,11 @@ BuildRequires: python3-jupyter_nbconvert BuildRequires: python3-jupyter_notebook BuildRequires: python3-jupyter_qtconsole +# Documentation requirements +BuildRequires: python3-Sphinx +%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 1110 ) +BuildRequires: python3-Sphinx-latex +%endif Requires: python3-jupyter_core Recommends: python3-jupyter_console Recommends: python3-jupyter_ipykernel @@ -55,6 +60,20 @@ qtconsole, and the IPython kernel. Additional components and kernels can be installed separately. +%package doc-html +Summary: HTML documentation for %{name} +Recommends: %{name} = %{version} + +%description doc-html +Documentation and help files for %{name} in HTML format + +%package doc-pdf +Summary: HTML documentation for %{name} +Recommends: %{name} = %{version} + +%description doc-pdf +Documentation and help files for %{name} in PDF format + %prep %setup -q -n jupyter-%{version} @@ -64,9 +83,33 @@ %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +# Build the documentation +pushd docs +export JUPYTER_PATH='%{jupyter_path}' +export PYTHONPATH=%{buildroot}%{python3_sitelib} +# PDF documentation currently doesn't build +# %if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 1110 ) +# make latexpdf +# %endif +make html +rm -rf build/html/.buildinfo +popd + %files %defattr(-,root,root,-) %doc LICENSE README.md %{python3_sitelib}/* +%files doc-html +%defattr(-,root,root,-) +%doc LICENSE +%doc docs/build/html/ + +# if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 1110 ) +# %files doc-pdf +# %defattr(-,root,root,-) +# %doc LICENSE +# oc docs/build/latex/*.pdf +# %endif + %changelog