From 09dbb9e16174e34a0ed209ae2c460f31ea466587 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 10 Aug 2024 11:20:50 +0200 Subject: [PATCH] package created using the webbuild interface [release 4.2.4-1mamba;Sun Aug 04 2024] --- README.md | 2 ++ python-jupyterlab.spec | 81 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 python-jupyterlab.spec diff --git a/README.md b/README.md index 258f244..f4e9953 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-jupyterlab +JupyterLab computational environment. + diff --git a/python-jupyterlab.spec b/python-jupyterlab.spec new file mode 100644 index 0000000..9c6e8f4 --- /dev/null +++ b/python-jupyterlab.spec @@ -0,0 +1,81 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-jupyterlab +Version: 4.2.4 +Release: 1mamba +Summary: JupyterLab computational environment +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://jupyter.org/ +Source: https://pypi.debian.net/jupyterlab/jupyterlab-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython311-devel +BuildRequires: python3.11dist(async-lru) +BuildRequires: python3.11dist(httpx) +BuildRequires: python3.11dist(ipykernel) +BuildRequires: python3.11dist(jinja2) +BuildRequires: python3.11dist(jupyter-core) +BuildRequires: python3.11dist(jupyter-lsp) +BuildRequires: python3.11dist(jupyter-server) +BuildRequires: python3.11dist(jupyterlab-server) +BuildRequires: python3.11dist(notebook-shim) +BuildRequires: python3.11dist(packaging) +BuildRequires: python3.11dist(setuptools) +BuildRequires: python3.11dist(tornado) +BuildRequires: python3.11dist(traitlets) +## AUTOBUILDREQ-END +BuildRequires: python-hatch_jupyter_builder-py3 + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n jupyterlab-%{version} + +%build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} -m installer --destdir=%{buildroot} dist/*.whl + +mv %{buildroot}/usr/etc %{buildroot}/ + +#%if "%{?with_pyver}" != "3" +## Rename any conflicting file outside of python site packages tree +#for f in %{_bindir}/pdm; do +# mv %{buildroot}${f}{,-%{?pyappend}} +#done +#%endif + +%files %{?pyappend} +%defattr(-,root,root) +%dir %{_sysconfdir}/jupyter +%dir %{_sysconfdir}/jupyter/jupyter_notebook_config.d +%config %{_sysconfdir}/jupyter/jupyter_notebook_config.d/jupyterlab.json +%dir %{_sysconfdir}/jupyter/jupyter_server_config.d +%config %{_sysconfdir}/jupyter/jupyter_server_config.d/jupyterlab.json +%{_bindir}/jlpm +%{_bindir}/jupyter-lab +%{_bindir}/jupyter-labextension +%{_bindir}/jupyter-labhub +%{_datadir}/applications/jupyterlab.desktop +%{_datadir}/icons/hicolor/scalable/apps/jupyterlab.svg +%dir %{_datadir}/jupyter +%dir %{_datadir}/jupyter/lab +%{_datadir}/jupyter/lab/* +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* +%doc LICENSE + +%changelog +* Sun Aug 04 2024 Silvan Calarco 4.2.4-1mamba +- package created using the webbuild interface