forked from pool/python-nbformat
- Move executable to python package to avoid conflicts with old naming scheme. It should be moved back with the next release. OBS-URL: https://build.opensuse.org/request/show/703753 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbformat?expand=0&rev=3
83 lines
2.6 KiB
RPMSpec
83 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-nbformat
|
|
#
|
|
# 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-%{**}}
|
|
Name: python-nbformat
|
|
Version: 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
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: jupyter-nbformat = %{version}
|
|
Requires: python-ipython_genutils
|
|
Requires: python-jsonschema > 2.5.0
|
|
Requires: python-jupyter_core
|
|
Requires: python-traitlets >= 4.1
|
|
Provides: python-jupyter_nbformat = %{version}
|
|
# Change <= to < with next release after 4.4
|
|
Obsoletes: python-jupyter_nbformat <= %{version}
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
This package contains the base implementation of the Jupyter Notebook format,
|
|
and Python APIs for working with notebooks.
|
|
|
|
This package provides the python interface.
|
|
|
|
%package -n jupyter-nbformat
|
|
Summary: The Jupyter Notebook format
|
|
Requires: jupyter-jupyter_core
|
|
Requires: python3-nbformat = %{version}
|
|
# uncomment with next release after 4.4:
|
|
# Conflicts: python3-jupyter_nbformat <= 4.5
|
|
|
|
%description -n jupyter-nbformat
|
|
This package contains the base implementation of the Jupyter Notebook format,
|
|
and Python APIs for working with notebooks.
|
|
|
|
This package provides the jupyter components.
|
|
|
|
%prep
|
|
%setup -q -n nbformat-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%files %{python_files}
|
|
%license COPYING.md
|
|
%doc README.md
|
|
%{python_sitelib}/nbformat-%{version}-py*.egg-info
|
|
%{python_sitelib}/nbformat/
|
|
# Move this to jupyter-nbformat with next release (after 4.4)
|
|
%{_bindir}/jupyter-trust
|
|
|
|
%files -n jupyter-nbformat
|
|
%license COPYING.md
|
|
|
|
%changelog
|