Hello community, here is the log from the commit of package python3-jupyter_core for openSUSE:Factory checked in at 2015-10-08 08:24:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-jupyter_core (Old) and /work/SRC/openSUSE:Factory/.python3-jupyter_core.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-jupyter_core" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-jupyter_core/python3-jupyter_core.changes 2015-09-30 05:51:17.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-jupyter_core.new/python3-jupyter_core.changes 2015-10-08 08:24:11.000000000 +0200 @@ -1,0 +2,10 @@ +Thu Oct 1 11:35:12 UTC 2015 - toddrme2...@gmail.com + +- Don't install hidden file. + +------------------------------------------------------------------- +Wed Sep 30 10:08:04 UTC 2015 - toddrme2...@gmail.com + +- Build documentation + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-jupyter_core.spec ++++++ --- /var/tmp/diff_new_pack.XYemuA/_old 2015-10-08 08:24:11.000000000 +0200 +++ /var/tmp/diff_new_pack.XYemuA/_new 2015-10-08 08:24:11.000000000 +0200 @@ -27,10 +27,16 @@ BuildRequires: python3-devel >= 3.3 BuildRequires: python3-setuptools BuildRequires: python3-ipython_genutils +BuildRequires: python3-traitlets +# Test requirements BuildRequires: python3-mock BuildRequires: python3-pbr BuildRequires: python3-pytest -BuildRequires: python3-traitlets +# Documentation requirements +BuildRequires: python3-Sphinx +%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 1110 ) +BuildRequires: python3-Sphinx-latex +%endif Requires: python3 >= 3.3 Requires: python3-ipython_genutils Requires: python3-traitlets @@ -49,6 +55,20 @@ 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} @@ -59,14 +79,28 @@ python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} # Prepare for update-alternatives usage +mv %{buildroot}%{_bindir}/jupyter %{buildroot}%{_bindir}/jupyter3 +mv %{buildroot}%{_bindir}/jupyter-migrate %{buildroot}%{_bindir}/jupyter3-migrate + +ln -s -f %{_bindir}/jupyter3 %{buildroot}%{_bindir}/jupyter-%{py3_ver} +ln -s -f %{_bindir}/jupyter3-migrate %{buildroot}%{_bindir}/jupyter-migrate-%{py3_ver} + mkdir -p %{buildroot}%{_sysconfdir}/alternatives for p in jupyter jupyter-migrate ; do - mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py3_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}%{python3_sitelib} make latexpdf +%endif +PYTHONPATH=%{buildroot}%{python3_sitelib} make html +rm -rf _build/html/.buildinfo +popd + %check # test_migrate requires files not found in the package pushd jupyter_core/tests @@ -88,11 +122,25 @@ %defattr(-,root,root,-) %doc CONTRIBUTING.md COPYING.md README.md %{_bindir}/jupyter -%{_bindir}/jupyter-migrate +%{_bindir}/jupyter3 %{_bindir}/jupyter-%{py3_ver} -%{_bindir}/jupyter-migrate-%{py3_ver} %ghost %{_sysconfdir}/alternatives/jupyter +%{_bindir}/jupyter-migrate +%{_bindir}/jupyter3-migrate +%{_bindir}/jupyter-migrate-%{py3_ver} %ghost %{_sysconfdir}/alternatives/jupyter-migrate %{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