- Use upstream builds of doc files. - Merge doc subpackage and tests into main spec file. - Use %license tag OBS-URL: https://build.opensuse.org/request/show/640488 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter_console?expand=0&rev=4
83 lines
2.5 KiB
RPMSpec
83 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package python-jupyter_console
|
|
#
|
|
# Copyright (c) 2018 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-jupyter_console
|
|
Version: 5.2.0
|
|
Release: 0
|
|
Summary: Jupyter terminal console
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
Url: https://github.com/jupyter/jupyter_console
|
|
Source0: https://files.pythonhosted.org/packages/source/j/jupyter_console/jupyter_console-%{version}.tar.gz
|
|
Source1: https://media.readthedocs.org/pdf/jupyter-console/v%{version}/jupyter-console.pdf
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-jupyter_client
|
|
Requires: python-jupyter_ipykernel
|
|
Requires: python-jupyter_ipython
|
|
Requires: python-prompt_toolkit1
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
%description
|
|
A terminal-based console frontend for Jupter kernels.
|
|
This code is based on the single-process IPython terminal.
|
|
|
|
%package -n %{name}-doc
|
|
Summary: Documentation for %{name}
|
|
Group: Documentation/PDF
|
|
Provides: %{python_module jupyter_console-doc = %{version}}
|
|
|
|
%description -n %{name}-doc
|
|
A terminal-based console frontend for Jupter kernels.
|
|
This code is based on the single-process IPython terminal.
|
|
|
|
This package provides the help files for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n jupyter_console-%{version}
|
|
cp %{SOURCE1} .
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
# Tests require an active console
|
|
# %%check
|
|
# %%python_expand nosetests-%%{$python_bin_suffix} jupyter_console
|
|
|
|
%files %{python_files}
|
|
%doc CONTRIBUTING.md README.md
|
|
%license COPYING.md
|
|
%python3_only %{_bindir}/jupyter-console
|
|
%{python_sitelib}/*
|
|
|
|
%files -n %{name}-doc
|
|
%license COPYING.md
|
|
%doc jupyter-console.pdf
|
|
|
|
%changelog
|