Markéta Machová
cae4b8c347
required by python-nbdime 3.0.0 OBS-URL: https://build.opensuse.org/request/show/886354 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-server-mathjax?expand=0&rev=1
84 lines
2.9 KiB
RPMSpec
84 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package python-jupyter-server-mathjax
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# 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() python3-%{**}}
|
|
Name: python-jupyter-server-mathjax
|
|
Version: 0.2.2
|
|
Release: 0
|
|
Summary: MathJax resources as a Jupyter Server Extension
|
|
License: BSD-3-Clause AND Apache-2.0
|
|
URL: https://jupyter.org
|
|
# Get the bundled JS stuff with the wheel
|
|
Source: https://files.pythonhosted.org/packages/py3/j/jupyter_server_mathjax/jupyter_server_mathjax-%{version}-py3-none-any.whl
|
|
BuildRequires: %{python_module jupyter-packaging}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: jupyter-notebook-filesystem
|
|
BuildRequires: python-rpm-macros
|
|
Requires: jupyter-server-mathjax = %{version}
|
|
Requires: python-jupyter_server >= 1.1
|
|
BuildArch: noarch
|
|
# SECTION test requirements (including jupyter_server[test])
|
|
BuildRequires: %{python_module ipykernel}
|
|
BuildRequires: %{python_module jupyter-server >= 1.1}
|
|
BuildRequires: %{python_module pytest-console-scripts}
|
|
BuildRequires: %{python_module pytest-tornasync}
|
|
BuildRequires: %{python_module pytest}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
MathJax resources as a Jupyter Server Extension.
|
|
|
|
%package -n jupyter-server-mathjax
|
|
Summary: MathJax resources as a Jupyter Server Extension -- configuration
|
|
|
|
%description -n jupyter-server-mathjax
|
|
MathJax resources as a Jupyter Server Extension.
|
|
This package contains the jupyter server extension configuration common
|
|
to all python flavors.
|
|
|
|
%prep
|
|
%setup -q -c jupyter-server-mathjax-%{version} -T
|
|
|
|
%build
|
|
:
|
|
|
|
%install
|
|
%pyproject_install %{SOURCE0}
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
cp %{buildroot}%{python3_sitelib}/jupyter_server_mathjax-%{version}.dist-info/LICENSE .
|
|
cp %{buildroot}%{python3_sitelib}/jupyter_server_mathjax/static/LICENSE LICENSE-STATIC
|
|
%jupyter_move_config
|
|
|
|
%check
|
|
%pytest --pyargs jupyter_server_mathjax
|
|
|
|
%files %{python_files}
|
|
%license LICENSE LICENSE-STATIC
|
|
%{python_sitelib}/jupyter_server_mathjax
|
|
%{python_sitelib}/jupyter_server_mathjax-%{version}.dist-info
|
|
|
|
%files -n jupyter-server-mathjax
|
|
%license LICENSE LICENSE-STATIC
|
|
%config %{_jupyter_server_confdir}/jupyter_server_mathjax.json
|
|
|
|
%changelog
|