From 7f7966e3b9ff1e00c1efbc04d8cb611c5265e8c7 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Jul 16 2020 05:48:01 +0000 Subject: Initial import (#1856310). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c65712 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/widgetsnbextension-3.5.1.tar.gz diff --git a/python-widgetsnbextension.spec b/python-widgetsnbextension.spec new file mode 100644 index 0000000..2954933 --- /dev/null +++ b/python-widgetsnbextension.spec @@ -0,0 +1,56 @@ +# Created by pyp2rpm-3.3.4 +%global pypi_name widgetsnbextension + +Name: python-%{pypi_name} +Version: 3.5.1 +Release: 1%{?dist} +Summary: Interactive HTML widgets for Jupyter notebooks + +License: BSD +URL: http://ipython.org +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python-jupyter-filesystem + +%description +Interactive HTML widgets for Jupyter notebooks. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +Requires: python3dist(notebook) >= 4.4.1 +Requires: python-jupyter-filesystem + +# sagemath included the files of this package +# https://bugzilla.redhat.com/show_bug.cgi?id=1856311 +Conflicts: sagemath-jupyter < 9.1-2 + +%description -n python3-%{pypi_name} +Interactive HTML widgets for Jupyter notebooks. + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install + +# Move config file from /usr/etc to /etc +mkdir -p %{buildroot}%{_sysconfdir}/jupyter/nbconfig/notebook.d/ +mv {%{buildroot}%{_prefix}/etc,%{buildroot}%{_sysconfdir}}/jupyter/nbconfig/notebook.d/widgetsnbextension.json + +%files -n python3-%{pypi_name} +%license LICENSE +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info +%{_datadir}/jupyter/nbextensions/jupyter-js-widgets/ +%config(noreplace) %{_sysconfdir}/jupyter/nbconfig/notebook.d/widgetsnbextension.json + +%changelog +* Mon Jul 13 2020 Lumír Balhar - 3.5.1-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..204ea56 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (widgetsnbextension-3.5.1.tar.gz) = 484f6d91e36ab734c02675973e9007b1f379f1a1cb762c863ad0d80c8c6eb8c9c49a138b3280894ed17ed86775f517a13790cb4537e1cf8bcbdc57e72d13cc2b