OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbformat?expand=0&rev=2
90 lines
3.0 KiB
RPMSpec
90 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package python-nbformat-doc
|
|
#
|
|
# Copyright (c) 2019 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define doc_ver 4.4.0
|
|
%bcond_without tests
|
|
Name: python-nbformat-doc
|
|
Version: 4.4.0
|
|
Release: 0
|
|
Summary: Documentation for the Jupyter Notebook format
|
|
License: BSD-3-Clause
|
|
Group: Documentation/Other
|
|
URL: https://github.com/jupyter/nbformat
|
|
Source0: 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 jupyter_nbformat}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: unzip
|
|
BuildArch: noarch
|
|
%if %{with tests}
|
|
# Test Requirements
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module testpath}
|
|
%endif
|
|
|
|
%description
|
|
This package contains documentation and help files for the Jupyter
|
|
Notebook format
|
|
|
|
%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
|
|
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/
|
|
|
|
%if %{with tests}
|
|
%check
|
|
pushd scripts
|
|
%pytest -k "not TestNotary and not SQLiteSignatureStoreTests" %{$python_sitelib}/nbformat
|
|
popd
|
|
%endif
|
|
|
|
%files -n jupyter-nbformat-doc
|
|
%license COPYING.md
|
|
%{_docdir}/jupyter-nbformat/
|
|
|
|
%changelog
|