Hello community,
here is the log from the commit of package python3-jupyter_client for
openSUSE:Factory checked in at 2015-10-08 08:24:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-jupyter_client (Old)
and /work/SRC/openSUSE:Factory/.python3-jupyter_client.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-jupyter_client"
Changes:
--------
---
/work/SRC/openSUSE:Factory/python3-jupyter_client/python3-jupyter_client.changes
2015-09-30 05:49:17.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python3-jupyter_client.new/python3-jupyter_client.changes
2015-10-08 08:24:13.000000000 +0200
@@ -1,0 +2,10 @@
+Thu Oct 1 12:52:38 UTC 2015 - [email protected]
+
+- Fix documentation location.
+
+-------------------------------------------------------------------
+Thu Oct 1 12:04:25 UTC 2015 - [email protected]
+
+- Build documentation
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-jupyter_client.spec ++++++
--- /var/tmp/diff_new_pack.qJBuR3/_old 2015-10-08 08:24:13.000000000 +0200
+++ /var/tmp/diff_new_pack.qJBuR3/_new 2015-10-08 08:24:13.000000000 +0200
@@ -26,11 +26,16 @@
Source:
https://pypi.python.org/packages/source/j/jupyter_client/jupyter_client-%{version}.tar.gz
BuildRequires: python3-devel
BuildRequires: python3-jupyter_core
-BuildRequires: python3-mock
-BuildRequires: python3-nose
BuildRequires: python3-pyzmq >= 13
BuildRequires: python3-setuptools
BuildRequires: python3-traitlets
+# Test Requirements
+BuildRequires: python3-nose
+# 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
Requires: python3-pyzmq >= 13
Requires: python3-traitlets
@@ -46,6 +51,19 @@
It also provides the jupyter kernelspec entrypoint for installing kernelspecs
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}
@@ -57,12 +75,24 @@
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Prepare for update-alternatives usage
+mv %{buildroot}%{_bindir}/jupyter-kernelspec
%{buildroot}%{_bindir}/jupyter3-kernelspec
+ln -s -f %{_bindir}/jupyter3-kernelspec
%{buildroot}%{_bindir}/jupyter-kernelspec-%{py3_ver}
+
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-mv %{buildroot}%{_bindir}/jupyter-kernelspec
%{buildroot}%{_bindir}/jupyter-kernelspec-%{py3_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}%{python3_sitelib} make latexpdf
+# %endif
+PYTHONPATH=%{buildroot}%{python3_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
@@ -84,8 +114,21 @@
%defattr(-,root,root,-)
%doc CONTRIBUTING.md COPYING.md README.md
%{_bindir}/jupyter-kernelspec
+%{_bindir}/jupyter3-kernelspec
%{_bindir}/jupyter-kernelspec-%{py3_ver}
%ghost %{_sysconfdir}/alternatives/jupyter-kernelspec
%{python3_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