spec-cleaner
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbformat?expand=0&rev=2
This commit is contained in:
parent
e52c484ffd
commit
4775e60170
@ -16,30 +16,29 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%bcond_without tests
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%define doc_ver 4.4.0
|
||||||
|
%bcond_without tests
|
||||||
Name: python-nbformat-doc
|
Name: python-nbformat-doc
|
||||||
Version: 4.4.0
|
Version: 4.4.0
|
||||||
%define doc_ver 4.4.0
|
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Documentation for the Jupyter Notebook format
|
Summary: Documentation for the Jupyter Notebook format
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Documentation/Other
|
Group: Documentation/Other
|
||||||
Url: https://github.com/jupyter/nbformat
|
URL: https://github.com/jupyter/nbformat
|
||||||
Source0: https://files.pythonhosted.org/packages/source/n/nbformat/nbformat-%{version}.tar.gz
|
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
|
Source1: https://buildmedia.readthedocs.org/media/pdf/nbformat/%{doc_ver}/nbformat.pdf
|
||||||
Source2: https://buildmedia.readthedocs.org/media/htmlzip/nbformat/%{doc_ver}/nbformat.zip
|
Source2: https://buildmedia.readthedocs.org/media/htmlzip/nbformat/%{doc_ver}/nbformat.zip
|
||||||
|
BuildRequires: %{python_module jupyter_nbformat}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
BuildRequires: %{python_module jupyter_nbformat}
|
BuildArch: noarch
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
# Test Requirements
|
# Test Requirements
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module testpath}
|
BuildRequires: %{python_module testpath}
|
||||||
%endif
|
%endif
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains documentation and help files for the Jupyter
|
This package contains documentation and help files for the Jupyter
|
||||||
@ -79,12 +78,12 @@ cp -r docs/html %{buildroot}%{_docdir}/jupyter-nbformat/
|
|||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
pushd scripts
|
pushd scripts
|
||||||
%python_expand py.test-%{$python_bin_suffix} -k "not TestNotary and not SQLiteSignatureStoreTests" %{$python_sitelib}/nbformat
|
%pytest -k "not TestNotary and not SQLiteSignatureStoreTests" %{$python_sitelib}/nbformat
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n jupyter-nbformat-doc
|
%files -n jupyter-nbformat-doc
|
||||||
%doc COPYING.md
|
%license COPYING.md
|
||||||
%{_docdir}/jupyter-nbformat/
|
%{_docdir}/jupyter-nbformat/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -23,18 +23,18 @@ Release: 0
|
|||||||
Summary: The Jupyter Notebook format
|
Summary: The Jupyter Notebook format
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/jupyter/nbformat
|
URL: https://github.com/jupyter/nbformat
|
||||||
Source: https://files.pythonhosted.org/packages/source/n/nbformat/nbformat-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/n/nbformat/nbformat-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: jupyter-nbformat = %{version}
|
||||||
Requires: python-ipython_genutils
|
Requires: python-ipython_genutils
|
||||||
Requires: python-jsonschema > 2.5.0
|
Requires: python-jsonschema > 2.5.0
|
||||||
Requires: python-jupyter_core
|
Requires: python-jupyter_core
|
||||||
Requires: python-traitlets >= 4.1
|
Requires: python-traitlets >= 4.1
|
||||||
Provides: python-jupyter_nbformat = %{version}
|
Provides: python-jupyter_nbformat = %{version}
|
||||||
Obsoletes: python-jupyter_nbformat <= %{version}
|
Obsoletes: python-jupyter_nbformat <= %{version}
|
||||||
Requires: jupyter-nbformat = %{version}
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -46,8 +46,8 @@ This package provides the python interface.
|
|||||||
|
|
||||||
%package -n jupyter-nbformat
|
%package -n jupyter-nbformat
|
||||||
Summary: The Jupyter Notebook format
|
Summary: The Jupyter Notebook format
|
||||||
Requires: python3-nbformat = %{version}
|
|
||||||
Requires: jupyter-jupyter_core
|
Requires: jupyter-jupyter_core
|
||||||
|
Requires: python3-nbformat = %{version}
|
||||||
|
|
||||||
%description -n jupyter-nbformat
|
%description -n jupyter-nbformat
|
||||||
This package contains the base implementation of the Jupyter Notebook format,
|
This package contains the base implementation of the Jupyter Notebook format,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user