Hello community,
here is the log from the commit of package python-jupyter_nbconvert for
openSUSE:Factory checked in at 2015-11-18 22:33:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyter_nbconvert (Old)
and /work/SRC/openSUSE:Factory/.python-jupyter_nbconvert.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyter_nbconvert"
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-jupyter_nbconvert/python-jupyter_nbconvert.changes
2015-09-30 05:49:48.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python-jupyter_nbconvert.new/python-jupyter_nbconvert.changes
2015-11-18 22:33:55.000000000 +0100
@@ -1,0 +2,5 @@
+Mon Oct 5 10:01:17 UTC 2015 - [email protected]
+
+- Build documentation
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jupyter_nbconvert.spec ++++++
--- /var/tmp/diff_new_pack.bBttDQ/_old 2015-11-18 22:33:55.000000000 +0100
+++ /var/tmp/diff_new_pack.bBttDQ/_new 2015-11-18 22:33:55.000000000 +0100
@@ -37,14 +37,29 @@
# Testing requirements
BuildRequires: python-jupyter_ipykernel
BuildRequires: python-nose
+%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} >
1110 )
+# Documentation requirements
+BuildRequires: pandoc
+BuildRequires: python-Sphinx
+BuildRequires: python-Sphinx-latex
+BuildRequires: texlive-bibtex
+BuildRequires: texlive-makeindex
+BuildRequires: tex(adjustbox.sty)
+BuildRequires: tex(eurosym.sty)
+%endif
Requires: python-Jinja2
Requires: python-Pygments
Requires: python-jupyter_core
Requires: python-jupyter_nbformat
Requires: python-mistune > 0.6
Requires: python-traitlets
+Recommends: pandoc
Recommends: python-tornado
Recommends: python-jupyter_client
+Recommends: texlive-bibtex
+Recommends: texlive-makeindex
+Recommends: tex(adjustbox.sty)
+Recommends: tex(eurosym.sty)
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -58,6 +73,19 @@
The jupyter nbconvert package converts notebooks to various other formats
via Jinja templates.
+%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 nbconvert-%{version}
@@ -68,9 +96,23 @@
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} >
1110 )
+# Build the documentation
+pushd docs
+sed -i -s 's/ python3 / python /' Makefile
+export PYTHONPATH=%{buildroot}%{python_sitelib}:$PYTHONPATH
+export PATH=%{buildroot}%{_bindir}:$PATH
+make latexpdf
+make html
+rm -rf build/html/.buildinfo
+popd
+%endif
+
+mv %{buildroot}%{_bindir}/jupyter-nbconvert
%{buildroot}%{_bindir}/jupyter2-nbconvert
+ln -s -f %{_bindir}/jupyter2-nbconvert
%{buildroot}%{_bindir}/jupyter-nbconvert-%{py_ver}
+
# Prepare for update-alternatives usage
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-mv %{buildroot}%{_bindir}/jupyter-nbconvert
%{buildroot}%{_bindir}/jupyter-nbconvert-%{py_ver}
ln -s -f %{_sysconfdir}/alternatives/jupyter-nbconvert
%{buildroot}%{_bindir}/jupyter-nbconvert
# create a dummy target for /etc/alternatives/jupyter-nbconvert
touch %{buildroot}%{_sysconfdir}/alternatives/jupyter-nbconvert
@@ -89,14 +131,29 @@
%check
export LANG=en_US.UTF-8
-PYTHONPATH=%{buildroot}%{python_sitelib} nosetests
+export PYTHONPATH=%{buildroot}%{python_sitelib}:$PYTHONPATH
+export PATH=%{buildroot}%{_bindir}:$PATH
+nosetests -e test_filename_spaces
%files
%defattr(-,root,root,-)
%doc COPYING.md README.md
%{_bindir}/jupyter-nbconvert
+%{_bindir}/jupyter2-nbconvert
%{_bindir}/jupyter-nbconvert-%{py_ver}
%ghost %{_sysconfdir}/alternatives/jupyter-nbconvert
%{python_sitelib}/*
+%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} >
1110 )
+%files doc-html
+%defattr(-,root,root,-)
+%doc COPYING.md
+%doc docs/build/html/
+
+%files doc-pdf
+%defattr(-,root,root,-)
+%doc COPYING.md
+%doc docs/build/latex/*.pdf
+%endif
+
%changelog