Hello community,

here is the log from the commit of package python3-jupyter_nbconvert for 
openSUSE:Factory checked in at 2015-11-18 22:34:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-jupyter_nbconvert (Old)
 and      /work/SRC/openSUSE:Factory/.python3-jupyter_nbconvert.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-jupyter_nbconvert"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python3-jupyter_nbconvert/python3-jupyter_nbconvert.changes
      2015-09-30 05:49:50.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python3-jupyter_nbconvert.new/python3-jupyter_nbconvert.changes
 2015-11-18 22:34:25.000000000 +0100
@@ -1,0 +2,11 @@
+Thu Oct 22 13:25:38 UTC 2015 - [email protected]
+
+- Don't try to build documentation on openSUSE 13.1, 
+  it lacks necessary packages.
+
+-------------------------------------------------------------------
+Mon Oct  5 10:01:17 UTC 2015 - [email protected]
+
+- Build documentation
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python3-jupyter_nbconvert.spec ++++++
--- /var/tmp/diff_new_pack.lDUFNY/_old  2015-11-18 22:34:25.000000000 +0100
+++ /var/tmp/diff_new_pack.lDUFNY/_new  2015-11-18 22:34:25.000000000 +0100
@@ -37,14 +37,29 @@
 # Testing requirements
 BuildRequires:  python3-jupyter_ipykernel
 BuildRequires:  python3-nose
+%if 0%{?suse_version} && 0%{?suse_version} > 1315
+# Documentation requirements
+BuildRequires:  pandoc
+BuildRequires:  python3-Sphinx
+BuildRequires:  python3-Sphinx-latex
+BuildRequires:  tex(adjustbox.sty)
+BuildRequires:  tex(eurosym.sty)
+BuildRequires:  texlive-bibtex
+BuildRequires:  texlive-makeindex
+%endif
 Requires:       python3-Jinja2
 Requires:       python3-Pygments
 Requires:       python3-jupyter_core
 Requires:       python3-jupyter_nbformat
 Requires:       python3-mistune > 0.6
 Requires:       python3-traitlets
+Recommends:     pandoc
 Recommends:     python3-tornado
 Recommends:     python3-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
@@ -54,6 +69,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}
@@ -64,9 +92,22 @@
 %install
 python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
+%if 0%{?suse_version} && 0%{?suse_version} > 1315
+# Build the documentation
+pushd docs
+export PYTHONPATH=%{buildroot}%{python3_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}/jupyter3-nbconvert
+ln -s -f %{_bindir}/jupyter3-nbconvert 
%{buildroot}%{_bindir}/jupyter-nbconvert-%{py3_ver}
+
 # Prepare for update-alternatives usage
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-mv %{buildroot}%{_bindir}/jupyter-nbconvert 
%{buildroot}%{_bindir}/jupyter-nbconvert-%{py3_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
@@ -85,14 +126,29 @@
 
 %check
 export LANG=en_US.UTF-8
-PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests
+export PYTHONPATH=%{buildroot}%{python3_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}/jupyter3-nbconvert
 %{_bindir}/jupyter-nbconvert-%{py3_ver}
 %ghost %{_sysconfdir}/alternatives/jupyter-nbconvert
 %{python3_sitelib}/*
 
+%if 0%{?suse_version} && 0%{?suse_version} > 1315
+%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


Reply via email to