Search
SailfishOS Open Build Service
>
Projects
>
home:nodevel
:
python3-pandas
>
python3-jupyter_notebook
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Added
python3-jupyter_notebook.spec
@@ -0,0 +1,184 @@ +# +# spec file for package python3-jupyter_notebook +# +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%{?!py3_ver: %global py3_ver 3.4} +%{?!python3_sitearch: %global python3_sitearch /usr/lib/python%{py3_ver}/site-packages/} +%{?!python3_sitelib: %global python3_sitelib /usr/lib/python%{py3_ver}/site-packages/} + +Name: python3-jupyter_notebook +Version: 4.2.0 +Release: 17.7 +Summary: Jupyter Notebook +License: BSD-3-Clause +Group: Development/Languages/Python +Url: http://jupyter.org +Source: https://files.pythonhosted.org/packages/source/n/notebook/notebook-%{version}.tar.gz +BuildRequires: python3-Jinja2 +BuildRequires: python3-devel +BuildRequires: python3-ipython_genutils +BuildRequires: python3-jupyter_client +BuildRequires: python3-jupyter_core +BuildRequires: python3-jupyter_ipykernel +BuildRequires: python3-jupyter_nbconvert +BuildRequires: python3-jupyter_nbformat +BuildRequires: python3-base +BuildRequires: python3-terminado >= 0.3.3 +BuildRequires: python3-tornado >= 4 +BuildRequires: python3-traitlets +BuildConflicts: python3-buildservice-tweak +Requires: python3-Jinja2 +Requires: python3-ipython_genutils +Requires: python3-jupyter_client +Requires: python3-jupyter_core +Requires: python3-jupyter_ipykernel +Requires: python3-jupyter_nbconvert +Requires: python3-jupyter_nbformat +Requires: python3-terminado >= 0.3.3 +Requires: python3-tornado >= 4 +Requires: python3-traitlets +# Recommends: python3-jupyter_ipywidgets +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%description +The Jupyter HTML notebook is a web-based notebook environment for interactive computing. + +%prep +%setup -q -n notebook-%{version} + +%build +python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +# Prepare for update-alternatives usage +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +for p in notebook nbextension serverextension; do + mv %{buildroot}%{_bindir}/jupyter-$p %{buildroot}%{_bindir}/jupyter3-$p + ln -s -f %{_bindir}/jupyter3-$p %{buildroot}%{_bindir}/jupyter-$p-%{py3_ver} + ln -s -f %{_sysconfdir}/alternatives/jupyter-$p %{buildroot}%{_bindir}/jupyter-$p + # create a dummy target for /etc/alternatives/$jupyter-$p + touch %{buildroot}%{_sysconfdir}/alternatives/jupyter-$p +done + +%post +%_sbindir/update-alternatives \ + --install %{_bindir}/jupyter-notebook jupyter-notebook %{_bindir}/jupyter-notebook-%{py3_ver} 30 \ + --slave %{_bindir}/jupyter-nbextension jupyter-nbextension %{_bindir}/jupyter-nbextension-%{py3_ver} \ + --slave %{_bindir}/jupyter-serverextension jupyter-serverextension %{_bindir}/jupyter-serverextension-%{py3_ver} + +%postun +if [ $1 -eq 0 ] ; then + %_sbindir/update-alternatives --remove jupyter-notebook %{_bindir}/jupyter-notebook-%{py3_ver} +fi + +%files +%defattr(-,root,root,-) +%doc CONTRIBUTING.md COPYING.md README.md +%{_bindir}/jupyter-notebook +%{_bindir}/jupyter-nbextension +%{_bindir}/jupyter-serverextension +%{_bindir}/jupyter3-notebook +%{_bindir}/jupyter3-nbextension +%{_bindir}/jupyter3-serverextension +%{_bindir}/jupyter-nbextension-%{py3_ver} +%{_bindir}/jupyter-notebook-%{py3_ver} +%{_bindir}/jupyter-serverextension-%{py3_ver} +%ghost %{_sysconfdir}/alternatives/jupyter-nbextension +%ghost %{_sysconfdir}/alternatives/jupyter-notebook +%ghost %{_sysconfdir}/alternatives/jupyter-serverextension +%{python3_sitelib}/* + +%changelog +* Wed May 18 2016 toddrme2178@gmail.com +- Update to 4.2.0 + + Highlighted changes: + - A new API for enabling and installing extensions. + - Upgrade MathJax to 2.6 to fix vertical-bar appearing on some equations. + - Restore ability for notebook directory to be root (4.1 regression) + - Large outputs are now throttled, reducing the ability of output floods to kill the browser. + - Fix the notebook ignoring cell executions while a kernel is starting by queueing the messages. + - Fix handling of url prefixes (e.g. JupyterHub) in terminal and edit pages. + - Support nested SVGs in output. +- Remove upstream-included fix_testing_hang.patch +- Split documentation into own subpackage to speed up building. +* Sun May 8 2016 arun@gmx.de +- specfile: + * updated source url to files.pythonhosted.org +* Fri Mar 18 2016 toddrme2178@gmail.com +- Add fix_testing_hang.patch + Should fix the build failures currently being seen in openSUSE:Factory + https://github.com/jupyter/notebook/issues/1043 +* Mon Jan 11 2016 toddrme2178@gmail.com +- Update to 4.1.0 + + Bug fixes: + - Properly reap zombie subprocesses + - Fix cross-origin problems + - Fix double-escaping of the base URL prefix + - Handle invalid unicode filenames more gracefully + - Fix ANSI color-processing + - Send keepalive messages for web terminals + - Fix bugs in the notebook tour + + UI changes: + - Moved the cell toolbar selector into the *View* menu. Added + a button that triggers a "hint" animation to the main toolbar + so users can find the new location. + - Added *Restart & Run All* to the *Kernel* menu. Users can + also bind it to a keyboard shortcut on action + ``restart-kernel-and-run-all-cells``. + - Added multiple-cell selection. Users press ``Shift-Up/Down`` + or ``Shift-K/J`` to extend selection in command mode. + Various actions such as cut/copy/paste, execute, and cell + type conversions apply to all selected cells. + - Added a command palette for executing Jupyter actions by + name. Users press ``Cmd/Ctrl-Shift-P`` or click the new + command palette icon on the toolbar. + - Added a *Find and Replace* dialog to the *Edit* menu. + Users can also press ``F`` in command mode to show the + dialog. + + Other improvements: + - Custom KernelManager methods can be Tornado coroutines, + allowing async operations. + - Make clearing output optional when rewriting input with + ``set_next_input(replace=True)``. + - Added support for TLS client authentication via + ``--NotebookApp.client-ca``. + - Added tags to ``jupyter/notebook`` releases on DockerHub. + ``latest`` continues to track the master branch. +* Mon Nov 9 2015 toddrme2178@gmail.com +- BuildConflicts: python3-buildservice-tweak +* Thu Oct 22 2015 toddrme2178@gmail.com +- Don't try to build documentation on openSUSE 13.1, + it lacks necessary packages. +* Sat Oct 10 2015 arun@gmx.de +- specfile: + * filename change: tgz->tar.gz +- update to version 4.0.6: + * fix installation of mathjax support files + * fix some double-escape regressions in 4.0.5 + * fix a couple of cases where errors could prevent opening a notebook +* Mon Oct 5 2015 toddrme2178@gmail.com +- Build documentation +* Wed Sep 23 2015 toddrme2178@gmail.com +- Update to 4.0.5 + * Fix launching the notebook on Windows + * Fix the path searched for frontend config +* Fri Aug 14 2015 toddrme2178@gmail.com +- Initial version