Hello community,
here is the log from the commit of package python-jupyter_core for
openSUSE:Factory checked in at 2015-10-06 13:25:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyter_core (Old)
and /work/SRC/openSUSE:Factory/.python-jupyter_core.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyter_core"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jupyter_core/python-jupyter_core.changes
2015-09-30 05:51:26.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python-jupyter_core.new/python-jupyter_core.changes
2015-10-06 13:25:22.000000000 +0200
@@ -1,0 +2,5 @@
+Thu Oct 1 11:33:33 UTC 2015 - [email protected]
+
+- Build documentation
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jupyter_core.spec ++++++
--- /var/tmp/diff_new_pack.j04jk6/_old 2015-10-06 13:25:22.000000000 +0200
+++ /var/tmp/diff_new_pack.j04jk6/_new 2015-10-06 13:25:22.000000000 +0200
@@ -31,6 +31,11 @@
BuildRequires: python-pytest
# Python 2.7 test requirements
BuildRequires: python-mock
+# Documentation requirements
+BuildRequires: python-Sphinx
+%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} >
1110 )
+BuildRequires: python-Sphinx-latex
+%endif
Requires: python >= 2.7
Requires: python-ipython_genutils
Requires: python-traitlets
@@ -53,6 +58,21 @@
There is no reason to install this package on its own. It will be pulled in
as a dependency by packages that require it.
+%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_core-%{version}
@@ -63,14 +83,28 @@
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Prepare for update-alternatives usage
+mv %{buildroot}%{_bindir}/jupyter %{buildroot}%{_bindir}/jupyter2
+mv %{buildroot}%{_bindir}/jupyter-migrate
%{buildroot}%{_bindir}/jupyter2-migrate
+
+ln -s -f %{_bindir}/jupyter2 %{buildroot}%{_bindir}/jupyter-%{py_ver}
+ln -s -f %{_bindir}/jupyter2-migrate
%{buildroot}%{_bindir}/jupyter-migrate-%{py_ver}
+
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for p in jupyter jupyter-migrate ; do
- mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py_ver}
ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
# create a dummy target for /etc/alternatives/$p
touch %{buildroot}%{_sysconfdir}/alternatives/$p
done
+# Build the documentation
+pushd docs
+%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
# test_migrate requires files not found in the package
pushd jupyter_core/tests
@@ -92,11 +126,25 @@
%defattr(-,root,root,-)
%doc CONTRIBUTING.md COPYING.md README.md
%{_bindir}/jupyter
-%{_bindir}/jupyter-migrate
+%{_bindir}/jupyter2
%{_bindir}/jupyter-%{py_ver}
-%{_bindir}/jupyter-migrate-%{py_ver}
%ghost %{_sysconfdir}/alternatives/jupyter
+%{_bindir}/jupyter-migrate
+%{_bindir}/jupyter2-migrate
+%{_bindir}/jupyter-migrate-%{py_ver}
%ghost %{_sysconfdir}/alternatives/jupyter-migrate
%{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