Accepting request 944235 from home:bnavigator:branches:devel:languages:python:jupyter

- Use the js version for the jupyter package

OBS-URL: https://build.opensuse.org/request/show/944235
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyterlab-widgets?expand=0&rev=4
This commit is contained in:
Benjamin Greiner 2022-01-06 12:50:39 +00:00 committed by Git OBS Bridge
parent 654c8d81e6
commit 8f8f05cbf4
2 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 6 12:49:05 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Use the js version for the jupyter package
-------------------------------------------------------------------
Thu Jan 6 12:20:03 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -17,13 +17,15 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define pyver 1.0.2
%define jupver 3.0.1
Name: python-jupyterlab-widgets
Version: 1.0.2
Version: %{pyver}
Release: 0
Summary: A JupyterLab extension for Jupyter/IPython widgets
License: BSD-3-Clause
URL: https://github.com/jupyter-widgets/ipywidgets
Source: https://files.pythonhosted.org/packages/source/j/jupyterlab_widgets/jupyterlab_widgets-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/j/jupyterlab_widgets/jupyterlab_widgets-%{pyver}.tar.gz
# PATCH-FIX-UPSTREAM ipywidgets-pr3138-pr3194-packaging.patch -- gh#jupyter-widgets/ipywidgets#3138 gh#jupyter-widgets/ipywidgets#3194
Patch1: ipywidgets-pr3138-pr3194-packaging.patch
Source99: python-jupyterlab-widgets-rpmlintrc
@ -34,7 +36,7 @@ BuildRequires: jupyter-jupyterlab-filesystem
BuildRequires: python-rpm-macros
Requires: jupyter-jupyterlab-widgets
BuildArch: noarch
Provides: python-jupyterlab_widgets = %{version}-%{release}
Provides: python-jupyterlab_widgets = %{pyver}-%{release}
%python_subpackages
%description
@ -42,13 +44,15 @@ A JupyterLab 3.0 extension for Jupyter/IPython widgets
%package -n jupyter-jupyterlab-widgets
Summary: A JupyterLab extension for Jupyter/IPython widgets - Jupyter JS files
Version: %{jupver}
Provides: jupyter-jupyterlab_widgets = %{jupver}-%{release}
Requires: jupyter-jupyterlab-filesystem
%description -n jupyter-jupyterlab-widgets
A JupyterLab 3.0 extension for Jupyter/IPython widgets - Jupyter JS files
%prep
%autosetup -p1 -n jupyterlab_widgets-%{version}
%autosetup -p1 -n jupyterlab_widgets-%{pyver}
%build
%python_build
@ -66,7 +70,7 @@ $python -c 'import jupyterlab_widgets'
%doc README.md
%license LICENSE
%{python_sitelib}/jupyterlab_widgets
%{python_sitelib}/jupyterlab_widgets-%{version}*-info
%{python_sitelib}/jupyterlab_widgets-%{pyver}*-info
%files -n jupyter-jupyterlab-widgets
%license LICENSE