Hello community,

here is the log from the commit of package python-jupyter_client for 
openSUSE:Factory checked in at 2015-10-06 13:25:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyter_client (Old)
 and      /work/SRC/openSUSE:Factory/.python-jupyter_client.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jupyter_client"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-jupyter_client/python-jupyter_client.changes  
    2015-09-30 05:49:13.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jupyter_client.new/python-jupyter_client.changes
 2015-10-06 13:25:27.000000000 +0200
@@ -1,0 +2,5 @@
+Thu Oct  1 12:04:25 UTC 2015 - [email protected]
+
+- Build documentation
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-jupyter_client.spec ++++++
--- /var/tmp/diff_new_pack.5Oo6DC/_old  2015-10-06 13:25:28.000000000 +0200
+++ /var/tmp/diff_new_pack.5Oo6DC/_new  2015-10-06 13:25:28.000000000 +0200
@@ -26,11 +26,20 @@
 Source:         
https://pypi.python.org/packages/source/j/jupyter_client/jupyter_client-%{version}.tar.gz
 BuildRequires:  python-devel
 BuildRequires:  python-jupyter_core
-BuildRequires:  python-mock
-BuildRequires:  python-nose
 BuildRequires:  python-pyzmq >= 13
 BuildRequires:  python-setuptools
 BuildRequires:  python-traitlets
+# Test Requirements
+BuildRequires:  python-nose
+# Python 2 Test Requirements
+BuildRequires:  python-mock
+# Documentation requirements
+BuildRequires:  python-Sphinx
+# Documentation requirements
+BuildRequires:  python-Sphinx
+%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 
1110 )
+BuildRequires:  python-Sphinx-latex
+%endif
 Requires:       python-jupyter_core
 Requires:       python-pyzmq >= 13
 Requires:       python-traitlets
@@ -51,6 +60,20 @@
 for use with Jupyter frontends.
 
 
+%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_client-%{version}
 
@@ -61,12 +84,24 @@
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
 # Prepare for update-alternatives usage
+mv %{buildroot}%{_bindir}/jupyter-kernelspec 
%{buildroot}%{_bindir}/jupyter2-kernelspec
+ln -s -f %{_bindir}/jupyter2-kernelspec 
%{buildroot}%{_bindir}/jupyter-kernelspec-%{py_ver} 
+
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-mv %{buildroot}%{_bindir}/jupyter-kernelspec 
%{buildroot}%{_bindir}/jupyter-kernelspec-%{py_ver}
 ln -s -f %{_sysconfdir}/alternatives/jupyter-kernelspec 
%{buildroot}%{_bindir}/jupyter-kernelspec
 # create a dummy target for /etc/alternatives/jupyter-kernelspec
 touch %{buildroot}%{_sysconfdir}/alternatives/jupyter-kernelspec
 
+# Build the documentation
+pushd docs
+# LaTeX is broken in current version, should be fixed in next version
+# %if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 
1110 )
+# PYTHONPATH=%{buildroot}%{python_sitelib} make latexpdf
+# %endif
+PYTHONPATH=%{buildroot}%{python_sitelib} make html
+rm -rf _build/html/.buildinfo
+popd
+
 %check
 # We can't test the kernel manager because that requires the ipython kernel,
 # which requires this package, causing a dependency loop.  So those tests are
@@ -88,8 +123,21 @@
 %defattr(-,root,root,-)
 %doc CONTRIBUTING.md COPYING.md README.md
 %{_bindir}/jupyter-kernelspec
+%{_bindir}/jupyter2-kernelspec
 %{_bindir}/jupyter-kernelspec-%{py_ver}
 %ghost %{_sysconfdir}/alternatives/jupyter-kernelspec
 %{python_sitelib}/*
 
+%files doc-html
+%defattr(-,root,root,-)
+%doc COPYING.md
+%doc docs/_build/html/
+
+# %if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 
1110 )
+# %files doc-pdf
+# %defattr(-,root,root,-)
+# %doc COPYING.md
+# %doc docs/_build/latex/jupyter_core.pdf
+# %endif
+
 %changelog


Reply via email to