Hello community,

here is the log from the commit of package python-nbformat for openSUSE:Factory 
checked in at 2019-08-13 13:10:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nbformat (Old)
 and      /work/SRC/openSUSE:Factory/.python-nbformat.new.9556 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nbformat"

Tue Aug 13 13:10:50 2019 rev:2 rq:722229 version:4.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nbformat/python-nbformat.changes  
2019-05-22 11:13:32.226562378 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-nbformat.new.9556/python-nbformat.changes    
    2019-08-13 13:10:56.745601337 +0200
@@ -1,0 +2,5 @@
+Sun Aug 11 01:46:53 UTC 2019 - Todd R <toddrme2...@gmail.com>
+
+- Merge everything into one spec file to simplify maintenance.
+
+-------------------------------------------------------------------

Old:
----
  python-nbformat-doc.changes
  python-nbformat-doc.spec

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

Other differences:
------------------
++++++ python-nbformat.spec ++++++
--- /var/tmp/diff_new_pack.BTxPV2/_old  2019-08-13 13:10:57.569600888 +0200
+++ /var/tmp/diff_new_pack.BTxPV2/_new  2019-08-13 13:10:57.569600888 +0200
@@ -19,15 +19,27 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-nbformat
 Version:        4.4.0
+%define doc_ver 4.4.0
 Release:        0
 Summary:        The Jupyter Notebook format
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 URL:            https://github.com/jupyter/nbformat
 Source:         
https://files.pythonhosted.org/packages/source/n/nbformat/nbformat-%{version}.tar.gz
+Source1:        
https://buildmedia.readthedocs.org/media/pdf/nbformat/%{doc_ver}/nbformat.pdf
+Source2:        
https://buildmedia.readthedocs.org/media/htmlzip/nbformat/%{doc_ver}/nbformat.zip
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+BuildRequires:  unzip
+# SECTION test requirements
+BuildRequires:  %{python_module ipython_genutils}
+BuildRequires:  %{python_module jsonschema > 2.5.0}
+BuildRequires:  %{python_module jupyter_core}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module testpath}
+BuildRequires:  %{python_module traitlets >= 4.1}
+# /SECTION
 Requires:       jupyter-nbformat = %{version}
 Requires:       python-ipython_genutils
 Requires:       python-jsonschema > 2.5.0
@@ -58,8 +70,28 @@
 
 This package provides the jupyter components.
 
+%package     -n jupyter-nbformat-doc
+Summary:        Documentation for the Jupyter Notebook format
+Requires:       jupyter-nbformat = %{version}
+Provides:       python-jupyter_nbformat-doc = %{version}
+Obsoletes:      python-jupyter_nbformat-doc <= %{version}
+Provides:       %{python_module jupyter_nbformat-doc = %{version}}
+Obsoletes:      %{python_module jupyter_nbformat-doc <= %{version}}
+Provides:       %{python_module nbformat-doc = %{version}}
+Provides:       python-nbformat-html = %{version}
+Provides:       python-nbformat-pdf = %{version}
+Obsoletes:      python-nbformat-html < %{version}
+Obsoletes:      python-nbformat-pdf < %{version}
+
+%description -n jupyter-nbformat-doc
+This package contains documentation and help files for the Jupyter
+Notebook format
+
 %prep
 %setup -q -n nbformat-%{version}
+unzip %{SOURCE2} -d docs
+mv docs/nbformat-* docs/html
+rm docs/html/.buildinfo
 
 %build
 %python_build
@@ -68,6 +100,16 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+mkdir -p %{buildroot}%{_docdir}/jupyter-nbformat
+
+cp %{SOURCE1} %{buildroot}%{_docdir}/jupyter-nbformat/
+cp -r docs/html %{buildroot}%{_docdir}/jupyter-nbformat/
+
+%fdupes %{buildroot}%{_docdir}/jupyter-nbformat/
+
+%check
+%pytest -k "not TestNotary and not SQLiteSignatureStoreTests"
+
 %files %{python_files}
 %license COPYING.md
 %doc README.md
@@ -79,4 +121,8 @@
 %files -n jupyter-nbformat
 %license COPYING.md
 
+%files -n jupyter-nbformat-doc
+%license COPYING.md
+%{_docdir}/jupyter-nbformat/
+
 %changelog



Reply via email to