Hello community,

here is the log from the commit of package python-jupyter_notebook for 
openSUSE:Factory checked in at 2017-05-17 17:14:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyter_notebook (Old)
 and      /work/SRC/openSUSE:Factory/.python-jupyter_notebook.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jupyter_notebook"

Wed May 17 17:14:11 2017 rev:4 rq:491438 version:5.0.0

Changes:
--------
New Changes file:

--- /dev/null   2017-03-01 00:40:19.279048016 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-jupyter_notebook.new/python-jupyter_notebook-doc.changes
 2017-05-17 17:14:19.147211597 +0200
@@ -0,0 +1,204 @@
+-------------------------------------------------------------------
+Wed Apr 26 21:31:55 UTC 2017 - [email protected]
+
+- Implement single-spec version.
+
+-------------------------------------------------------------------
+Fri Apr  7 19:35:38 UTC 2017 - [email protected]
+
+- Remove unneeded python3 dependency.
+
+-------------------------------------------------------------------
+Thu Mar 30 19:44:31 UTC 2017 - [email protected]
+
+- Update to version 5.0.0
+  * Files in the dashboard may now be sorted by last modified date or name 
(:ghpull:`943`):
+  * There is a new cell toolbar for adding *cell tags* (:ghpull:`2048`):
+  * The default styling for tables in the notebook has been updated 
(:ghpull:`1776`).
+  * You can now edit keyboard shortcuts for *Command Mode* within the UI
+  * You can copy and paste cells between notebooks, using :kbd:`Ctrl-C` and
+    :kbd:`Ctrl-V` (:kbd:`Cmd-C` and :kbd:`Cmd-V` on Mac).
+  * It's easier to configure a password for the notebook with the new
+    ``jupyter notebook password`` command (:ghpull:`2007`).
+  * The file list can now be ordered by *last modified* or by *name*
+    (:ghpull:`943`).
+  * Markdown cells now support attachments. Simply drag and drop an image from
+    your desktop to a markdown cell to add it. Unlike relative links that you
+    enter manually, attachments are embedded in the notebook itself. An
+    unreferenced attachment will be automatically scrubbed from the notebook on
+    save (:ghpull:`621`).
+  * Undoing cell deletion now supports undeleting multiple cells. Cells may 
not be
+    in the same order as before their deletion, depending on the actions you 
did
+    on the meantime, but this should should help reduce the impact of
+    accidentally deleting code.
+  * The file browser now has *Edit* and *View* buttons.
+  * The file browser now supports moving multiple files at once
+    (:ghpull:`1088`).
+  * The Notebook will refuse to run as root unless the ``--allow-root`` flag is
+    given (:ghpull:`1115`).
+  * Keyboard shortcuts are now declarative (:ghpull:`1234`).
+  * Toggling line numbers can now affect all cells (:ghpull:`1312`).
+  * Add more visible *Trusted* and *Untrusted* notifications (:ghpull:`1658`).
+  * The favicon (browser shortcut icon) now changes to indicate when the 
kernel is busy
+    (:ghpull:`1837`).
+  * Header and toolbar visibility is now persisted in nbconfig and across 
sessions
+    (:ghpull:`1769`).
+  * Load server extensions with ConfigManager so that merge happens 
recursively,
+    unlike normal config values, to make it load more consistently with 
frontend
+    extensions(:ghpull:`2108`).
+  * The notebook server now supports the `bundler API
+    
<http://jupyter-notebook.readthedocs.io/en/latest/extending/bundler_extensions.html>`__
+    from the `jupyter_cms incubator project
+    <https://github.com/jupyter-incubator/contentmanagement>`__ 
(:ghpull:`1579`).
+  * The notebook server now provides information about kernel activity in
+    its kernel resource API (:ghpull:`1827`).
+- Update to 4.4.0
+  * Allow override of output callbacks to redirect output messages. This is 
used to implement the ipywidgets Output widget, for example.
+  * Fix an async bug in message handling by allowing comm message handlers to 
return a promise which halts message processing until the promise resolves.
+- Update to 4.3.2
+  * Monkey-patch for CodeMirror that resolves `#2037 
<https://github.com/jupyter/notebook/issues/2037>`__ without breaking `#1967 
<https://github.com/jupyter/notebook/issues/1967>`__
+  * Read-only (``"editable": false``) cells can be executed but cannot be 
split, merged, or deleted
+- Update to 4.3.1
+  * CVE-2016-9971. Fix CSRF vulnerability,
+    where malicious forms could create untitled files and start kernels
+    (no remote execution or modification of existing files)
+    for users of certain browsers (Firefox, Internet Explorer / Edge).
+    All previous notebook releases are affected.
+  - Bug fixes:
+    * Fix carriage return handling
+    * Make the font size more robust against fickle browsers
+    * Ignore resize events that bubbled up and didn't come from window
+    * Add Authorization to allowed CORS headers
+    * Downgrade CodeMirror to 5.16 while we figure out issues in Safari
+  - Other improvements:
+    * Better docs for token-based authentication
+    * Further highlight token info in log output when autogenerated
+- Update to 4.3.0
+  - Highlights:
+    * API for creating mime-type based renderer extensions using 
:code:`OutputArea.register_mime_type` and :code:`Notebook.render_cell_output` 
methods. See `mimerender-cookiecutter 
<https://github.com/jupyterlab/mimerender-cookiecutter>`__ for reference 
implementations and cookiecutter.
+    * Enable token authentication by default. See :ref:`server_security` for 
more details.
+    * Update security docs to reflect new signature system
+    * Switched from term.js to xterm.js
+  - Bug fixes:
+    * Ensure variable is set if exc_info is falsey
+    * Catch and log handler exceptions in :code:`events.trigger`
+    * Add debug log for static file paths
+    * Don't check origin on token-authenticated requests
+    * Remove leftover print statement
+    * Fix highlighting of Python code blocks
+    * :code:`json_errors` should be outermost decorator on API handlers
+    * Fix remove old nbserver info files
+    * Fix notebook mime type on download links
+    * Fix carriage symbol bahvior
+    * Fix terminal styles
+    * Update dead links in docs
+    * If kernel is broken, start a new session
+    * Include cross-origin check when allowing login URL redirects
+  - Other improvements:
+    * Allow JSON output data with mime type "application/*+json"
+    * Allow kernelspecs to have spaces in them for backward compat
+    * Allow websocket connections from scripts
+    * Allow :code:`None` for post_save_hook
+    * Upgrade CodeMirror to 5.21
+    * Upgrade xterm to 2.1.0
+    * Docs for using comms
+    * Set :code:`dirty` flag when output arrives
+    * Set :code:`ws-url` data attribute when accessing a notebook terminal
+    * Add base aliases for nbextensions
+    * Include :code:`@` operator in CodeMirror IPython mode
+    * Extend mathjax_url docstring
+    * Load nbextension in predictable order
+    * Improve the error messages for nbextensions
+    * Include cross-origin check when allowing login URL redirects
+- Update to 4.2.3
+  * Fix regression in 4.2.2 that delayed loading custom.js
+    until after ``notebook_loaded`` and ``app_initialized`` events have fired.
+  * Fix some outdated docs and links.
+- Update to 4.2.2
+  * **Security fix**: CVE-2016-6524, where untrusted latex output
+    could be added to the page in a way that could execute javascript.
+  * Fix missing POST in OPTIONS responses.
+  * Fix for downloading non-ascii filenames.
+  * Avoid clobbering ssl_options, so that users can specify more detailed SSL 
configuration.
+  * Fix inverted load order in nbconfig, so user config has highest priority.
+  * Improved error messages here and there.
+- Update to 4.2.1
+  * Compatibility fixes for some versions of ipywidgets
+  * Fix for ignored CSS on Windows
+  * Fix specifying destination when installing nbextensions
+- Update to 4.2.0
+  * 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.
+- Create doc subpackage
+
+-------------------------------------------------------------------
+Mon Jan 11 08:24:03 UTC 2016 - [email protected]
+
+- 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 Oct 12 13:43:57 UTC 2015 - [email protected]
+
+- 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
+- specfile:
+  * filename change: tgz->tar.gz
+  
+-------------------------------------------------------------------
+Mon Oct  5 10:01:17 UTC 2015 - [email protected]
+
+- Build documentation
+
+-------------------------------------------------------------------
+Wed Sep 23 11:24:40 UTC 2015 - [email protected]
+
+- Update to 4.0.5
+  * Fix launching the notebook on Windows
++++ 7 more lines (skipped)
++++ between /dev/null
++++ and 
/work/SRC/openSUSE:Factory/.python-jupyter_notebook.new/python-jupyter_notebook-doc.changes
--- 
/work/SRC/openSUSE:Factory/python-jupyter_notebook/python-jupyter_notebook.changes
  2016-01-12 16:13:31.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-jupyter_notebook.new/python-jupyter_notebook.changes
     2017-05-17 17:14:19.187205959 +0200
@@ -1,0 +2,139 @@
+Thu Apr 27 08:10:10 UTC 2017 - [email protected]
+
+- All python versions can share the empty extension directories
+  without conflicting.
+  
+-------------------------------------------------------------------
+Wed Apr 26 21:32:05 UTC 2017 - [email protected]
+
+- Implement single-spec version.
+
+-------------------------------------------------------------------
+Thu Mar 30 19:44:31 UTC 2017 - [email protected]
+
+- Update to version 5.0.0
+  * Files in the dashboard may now be sorted by last modified date or name 
(:ghpull:`943`):
+  * There is a new cell toolbar for adding *cell tags* (:ghpull:`2048`):
+  * The default styling for tables in the notebook has been updated 
(:ghpull:`1776`).
+  * You can now edit keyboard shortcuts for *Command Mode* within the UI
+  * You can copy and paste cells between notebooks, using :kbd:`Ctrl-C` and
+    :kbd:`Ctrl-V` (:kbd:`Cmd-C` and :kbd:`Cmd-V` on Mac).
+  * It's easier to configure a password for the notebook with the new
+    ``jupyter notebook password`` command (:ghpull:`2007`).
+  * The file list can now be ordered by *last modified* or by *name*
+    (:ghpull:`943`).
+  * Markdown cells now support attachments. Simply drag and drop an image from
+    your desktop to a markdown cell to add it. Unlike relative links that you
+    enter manually, attachments are embedded in the notebook itself. An
+    unreferenced attachment will be automatically scrubbed from the notebook on
+    save (:ghpull:`621`).
+  * Undoing cell deletion now supports undeleting multiple cells. Cells may 
not be
+    in the same order as before their deletion, depending on the actions you 
did
+    on the meantime, but this should should help reduce the impact of
+    accidentally deleting code.
+  * The file browser now has *Edit* and *View* buttons.
+  * The file browser now supports moving multiple files at once
+    (:ghpull:`1088`).
+  * The Notebook will refuse to run as root unless the ``--allow-root`` flag is
+    given (:ghpull:`1115`).
+  * Keyboard shortcuts are now declarative (:ghpull:`1234`).
+  * Toggling line numbers can now affect all cells (:ghpull:`1312`).
+  * Add more visible *Trusted* and *Untrusted* notifications (:ghpull:`1658`).
+  * The favicon (browser shortcut icon) now changes to indicate when the 
kernel is busy
+    (:ghpull:`1837`).
+  * Header and toolbar visibility is now persisted in nbconfig and across 
sessions
+    (:ghpull:`1769`).
+  * Load server extensions with ConfigManager so that merge happens 
recursively,
+    unlike normal config values, to make it load more consistently with 
frontend
+    extensions(:ghpull:`2108`).
+  * The notebook server now supports the `bundler API
+    
<http://jupyter-notebook.readthedocs.io/en/latest/extending/bundler_extensions.html>`__
+    from the `jupyter_cms incubator project
+    <https://github.com/jupyter-incubator/contentmanagement>`__ 
(:ghpull:`1579`).
+  * The notebook server now provides information about kernel activity in
+    its kernel resource API (:ghpull:`1827`).
+- Update to 4.4.0
+  * Allow override of output callbacks to redirect output messages. This is 
used to implement the ipywidgets Output widget, for example.
+  * Fix an async bug in message handling by allowing comm message handlers to 
return a promise which halts message processing until the promise resolves.
+- Update to 4.3.2
+  * Monkey-patch for CodeMirror that resolves `#2037 
<https://github.com/jupyter/notebook/issues/2037>`__ without breaking `#1967 
<https://github.com/jupyter/notebook/issues/1967>`__
+  * Read-only (``"editable": false``) cells can be executed but cannot be 
split, merged, or deleted
+- Update to 4.3.1
+  * CVE-2016-9971. Fix CSRF vulnerability,
+    where malicious forms could create untitled files and start kernels
+    (no remote execution or modification of existing files)
+    for users of certain browsers (Firefox, Internet Explorer / Edge).
+    All previous notebook releases are affected.
+  - Bug fixes:
+    * Fix carriage return handling
+    * Make the font size more robust against fickle browsers
+    * Ignore resize events that bubbled up and didn't come from window
+    * Add Authorization to allowed CORS headers
+    * Downgrade CodeMirror to 5.16 while we figure out issues in Safari
+  - Other improvements:
+    * Better docs for token-based authentication
+    * Further highlight token info in log output when autogenerated
+- Update to 4.3.0
+  - Highlights:
+    * API for creating mime-type based renderer extensions using 
:code:`OutputArea.register_mime_type` and :code:`Notebook.render_cell_output` 
methods. See `mimerender-cookiecutter 
<https://github.com/jupyterlab/mimerender-cookiecutter>`__ for reference 
implementations and cookiecutter.
+    * Enable token authentication by default. See :ref:`server_security` for 
more details.
+    * Update security docs to reflect new signature system
+    * Switched from term.js to xterm.js
+  - Bug fixes:
+    * Ensure variable is set if exc_info is falsey
+    * Catch and log handler exceptions in :code:`events.trigger`
+    * Add debug log for static file paths
+    * Don't check origin on token-authenticated requests
+    * Remove leftover print statement
+    * Fix highlighting of Python code blocks
+    * :code:`json_errors` should be outermost decorator on API handlers
+    * Fix remove old nbserver info files
+    * Fix notebook mime type on download links
+    * Fix carriage symbol bahvior
+    * Fix terminal styles
+    * Update dead links in docs
+    * If kernel is broken, start a new session
+    * Include cross-origin check when allowing login URL redirects
+  - Other improvements:
+    * Allow JSON output data with mime type "application/*+json"
+    * Allow kernelspecs to have spaces in them for backward compat
+    * Allow websocket connections from scripts
+    * Allow :code:`None` for post_save_hook
+    * Upgrade CodeMirror to 5.21
+    * Upgrade xterm to 2.1.0
+    * Docs for using comms
+    * Set :code:`dirty` flag when output arrives
+    * Set :code:`ws-url` data attribute when accessing a notebook terminal
+    * Add base aliases for nbextensions
+    * Include :code:`@` operator in CodeMirror IPython mode
+    * Extend mathjax_url docstring
+    * Load nbextension in predictable order
+    * Improve the error messages for nbextensions
+    * Include cross-origin check when allowing login URL redirects
+- Update to 4.2.3
+  * Fix regression in 4.2.2 that delayed loading custom.js
+    until after ``notebook_loaded`` and ``app_initialized`` events have fired.
+  * Fix some outdated docs and links.
+- Update to 4.2.2
+  * **Security fix**: CVE-2016-6524, where untrusted latex output
+    could be added to the page in a way that could execute javascript.
+  * Fix missing POST in OPTIONS responses.
+  * Fix for downloading non-ascii filenames.
+  * Avoid clobbering ssl_options, so that users can specify more detailed SSL 
configuration.
+  * Fix inverted load order in nbconfig, so user config has highest priority.
+  * Improved error messages here and there.
+- Update to 4.2.1
+  * Compatibility fixes for some versions of ipywidgets
+  * Fix for ignored CSS on Windows
+  * Fix specifying destination when installing nbextensions
+- Update to 4.2.0
+  * 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.
+- Create doc subpackage
+
+-------------------------------------------------------------------

Old:
----
  notebook-4.1.0.tar.gz

New:
----
  notebook-5.0.0.tar.gz
  python-jupyter_notebook-doc.changes
  python-jupyter_notebook-doc.spec

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

Other differences:
------------------
++++++ python-jupyter_notebook-doc.spec ++++++
#
# spec file for package python-jupyter_notebook-doc
#
# Copyright (c) 2017 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/
#


# Building docs needs root access
%bcond_with pdf
%bcond_with html

%if 0%{?suse_version} && 0%{?suse_version} > 1320
%bcond_without tests
%else
%bcond_with tests
%endif

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-jupyter_notebook-doc
Version:        5.0.0
Release:        0
Summary:        Documentation for python-jupyter_notebook
License:        BSD-3-Clause
Group:          Development/Languages/Python
Url:            http://ipython.org
Source:         
https://files.pythonhosted.org/packages/source/n/notebook/notebook-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module jupyter_notebook}
%if %{with tests}
# Test Requirements
BuildRequires:  %{python_module nose}
BuildRequires:  %{python_module nose_warnings_filters}
BuildRequires:  %{python_module requests}
# Python 2.7 test requirements
BuildRequires:  python-mock
%endif
# Documentation requirements
%if %{with pdf} || %{with html}
BuildRequires:  graphviz
BuildRequires:  graphviz-gnome
BuildRequires:  python3-jupyter_nbsphinx
BuildRequires:  python3-Sphinx
BuildRequires:  python3-matplotlib
BuildRequires:  python3-numpydoc
BuildRequires:  python3-requests
%endif
%if %{with pdf}
BuildRequires:  pandoc
BuildRequires:  python3-Sphinx-latex
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Provides:       %{name}-html = %{version}
Provides:       %{name}-pdf = %{version}
Obsoletes:      %{name}-html < %{version}
Obsoletes:      %{name}-pdf < %{version}
Provides:       %{python_module jupyter_notebook-doc = %{version}}

%description
Documentation and help files for python-jupyter_notebook.

%prep
%setup -q -n notebook-%{version}

%build
# Build the documentation
pushd docs
%if %{with html}
make html
rm -rf build/html/.buildinfo
%endif
%if %{with pdf}
make latexpdf
%endif
popd

%install
mkdir -p %{buildroot}%{_docdir}/python-jupyter_notebook

%if %{with pdf}
cp docs/build/latex/jupyter_core.pdf 
%{buildroot}%{_docdir}/python-jupyter_notebook/
%endif

%if %{with html}
cp -r docs/build/html %{buildroot}%{_docdir}/python-jupyter_notebook/
%endif

cp -r docs/source/examples %{buildroot}%{_docdir}/python-jupyter_notebook/

%fdupes %{buildroot}%{_docdir}/python-jupyter_notebook/

%if %{with tests}
%check
export LANG=en_US.UTF-8
%python_expand nosetests-%{$python_bin_suffix}
%endif

%files
%defattr(-,root,root,-)
%doc COPYING.md
%{_docdir}/python-jupyter_notebook/

%changelog
++++++ python-jupyter_notebook.spec ++++++
--- /var/tmp/diff_new_pack.p2QXBY/_old  2017-05-17 17:14:20.091078530 +0200
+++ /var/tmp/diff_new_pack.p2QXBY/_new  2017-05-17 17:14:20.095077966 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-jupyter_notebook
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -16,149 +16,95 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-jupyter_notebook
-Version:        4.1.0
+Version:        5.0.0
 Release:        0
 Summary:        Jupyter Notebook
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 Url:            http://jupyter.org
-Source:         
https://pypi.python.org/packages/source/n/notebook/notebook-%{version}.tar.gz
-BuildRequires:  python-Jinja2
-BuildRequires:  python-devel
-BuildRequires:  python-backports_abc
-BuildRequires:  python-ipython_genutils
-BuildRequires:  python-jupyter_client
-BuildRequires:  python-jupyter_core
-BuildRequires:  python-jupyter_ipykernel
-BuildRequires:  python-jupyter_nbconvert
-BuildRequires:  python-jupyter_nbformat
-BuildRequires:  python-setuptools
+Source:         
https://files.pythonhosted.org/packages/source/n/notebook/notebook-%{version}.tar.gz
+BuildRequires:  hicolor-icon-theme
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module Jinja2}
+BuildRequires:  %{python_module ipython_genutils}
+BuildRequires:  %{python_module jupyter_client}
+BuildRequires:  %{python_module jupyter_core}
+BuildRequires:  %{python_module jupyter_ipykernel}
+BuildRequires:  %{python_module jupyter_nbconvert}
+BuildRequires:  %{python_module jupyter_nbformat}
+BuildRequires:  %{python_module terminado >= 0.3.3}
+BuildRequires:  %{python_module tornado >= 4}
+BuildRequires:  %{python_module traitlets}
+BuildRequires:  %{python_module backports_abc}
+# BuildRequires:  python-backports_abc
 BuildRequires:  python-singledispatch
-BuildRequires:  python-terminado >= 0.3.3
-BuildRequires:  python-tornado >= 4
-BuildRequires:  python-traitlets
-# Test requirements
-BuildRequires:  python-nose
-BuildRequires:  python-requests
-# 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:  pandoc
-BuildRequires:  python-Sphinx-latex
-%endif
 Requires:       python-Jinja2
-Requires:       python-backports_abc
 Requires:       python-ipython_genutils
 Requires:       python-jupyter_client
 Requires:       python-jupyter_core
 Requires:       python-jupyter_ipykernel
 Requires:       python-jupyter_nbconvert
 Requires:       python-jupyter_nbformat
-Requires:       python-singledispatch
 Requires:       python-terminado >= 0.3.3
 Requires:       python-tornado >= 4
 Requires:       python-traitlets
+%ifpython2
+Requires:       python-backports_abc
+Requires:       python-singledispatch
+%endif
 Recommends:     python-jupyter_ipywidgets
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 The Jupyter HTML notebook is a web-based notebook environment for interactive 
computing.
 
-%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 notebook-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-
-mv %{buildroot}%{_bindir}/jupyter-notebook 
%{buildroot}%{_bindir}/jupyter2-notebook
-mv %{buildroot}%{_bindir}/jupyter-nbextension 
%{buildroot}%{_bindir}/jupyter2-nbextension
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-ln -s -f %{_bindir}/jupyter2-notebook 
%{buildroot}%{_bindir}/jupyter-notebook-%{py_ver}
-ln -s -f %{_bindir}/jupyter2-nbextension 
%{buildroot}%{_bindir}/jupyter-nbextension-%{py_ver}
-
-# Prepare for update-alternatives usage
-mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-for p in jupyter-notebook jupyter-nbextension ; do
-    ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
-    # create a dummy target for /etc/alternatives/$p
-    touch %{buildroot}%{_sysconfdir}/alternatives/$p
+# These directories are used for extensions
+mkdir -p %{buildroot}%{_datadir}/jupyter/nbextensions
+mkdir -p %{buildroot}%{_sysconfdir}/jupyter/nbextensions
+
+# Install icons
+mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
+cp docs/resources/icon_512x512.svg 
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/JupyterNotebook.svg
+
+for x in 16 24 32 48 64 128 256 512 ; do
+    mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${x}x${x}/apps/
+    cp docs/resources/ipynb.iconset/icon_${x}x${x}.png 
%{buildroot}%{_datadir}/icons/hicolor/${x}x${x}/apps/JupyterNotebook.png
 done
 
-%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 
1110 )
-# Build the documentation
-pushd docs
-sed -i -s 's/  python3 /       python /' Makefile
-# PDF documentation currently doesn't build
-# PYTHONPATH=%{buildroot}%{python_sitelib} make latexpdf
-PYTHONPATH=%{buildroot}%{python_sitelib} make html
-rm -rf build/html/.buildinfo
-popd
-%endif
+%post -n %{python3_prefix}-jupyter_notebook
+%icon_theme_cache_post
 
-%post
-%_sbindir/update-alternatives \
-   --install %{_bindir}/jupyter-notebook jupyter-notebook 
%{_bindir}/jupyter-notebook-%{py_ver} 30 \
-   --slave %{_bindir}/jupyter-nbextension jupyter-nbextension 
%{_bindir}/jupyter-nbextension-%{py_ver}
-
-%postun
-if [ $1 -eq 0 ] ; then
-    %_sbindir/update-alternatives --remove jupyter-notebook 
%{_bindir}/jupyter-notebook-%{py_ver}
-fi
-
-%check
-export LANG=en_US.UTF-8
-nosetests
+%postun -n %{python3_prefix}-jupyter_notebook
+%icon_theme_cache_postun
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
-%doc CONTRIBUTING.md COPYING.md README.md
-%{_bindir}/jupyter-nbextension
-%{_bindir}/jupyter2-nbextension
-%{_bindir}/jupyter-nbextension-%{py_ver}
-%ghost %{_sysconfdir}/alternatives/jupyter-nbextension
-%{_bindir}/jupyter-notebook
-%{_bindir}/jupyter2-notebook
-%{_bindir}/jupyter-notebook-%{py_ver}
-%ghost %{_sysconfdir}/alternatives/jupyter-notebook
+%doc COPYING.md README.md
+%python3_only %{_bindir}/less-watch
+%python3_only %{_bindir}/jupyter-bundlerextension
+%python3_only %{_bindir}/jupyter-nbextension
+%python3_only %{_bindir}/jupyter-notebook
+%python3_only %{_bindir}/jupyter-serverextension
+%python3_only %{_datadir}/icons/hicolor/*/apps/JupyterNotebook.*
+%{_datadir}/jupyter/nbextensions
+%{_sysconfdir}/jupyter/nbextensions
 %{python_sitelib}/*
 
-%if 0%{?suse_version} && ( 0%{?suse_version} != 1315 && 0%{?suse_version} > 
1110 )
-%files doc-html
-%defattr(-,root,root,-)
-%doc COPYING.md
-%doc docs/build/html/
-
-# %files doc-pdf
-# defattr(-,root,root,-)
-# %doc COPYING.md
-# %doc docs/build/latex/*.pdf
-%endif
-
 %changelog

++++++ notebook-4.1.0.tar.gz -> notebook-5.0.0.tar.gz ++++++
/work/SRC/openSUSE:Factory/python-jupyter_notebook/notebook-4.1.0.tar.gz 
/work/SRC/openSUSE:Factory/.python-jupyter_notebook.new/notebook-5.0.0.tar.gz 
differ: char 5, line 1


Reply via email to