72 lines
2.3 KiB
RPMSpec
72 lines
2.3 KiB
RPMSpec
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||
|
Name: python-jupyter_server
|
||
|
Version: 2.14.2
|
||
|
Release: 1mamba
|
||
|
Summary: The backend—i.e. core services, APIs, and REST endpoints—to Jupyter web applications
|
||
|
Group: System/Libraries
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: https://jupyter-server.readthedocs.io/
|
||
|
Source: https://pypi.debian.net/jupyter-server/jupyter_server-%{version}.tar.gz
|
||
|
License: BSD
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: (python3.11dist(jupyter-core) < 5 or python3.11dist(jupyter-core) > 5.1)
|
||
|
BuildRequires: libpython311-devel
|
||
|
BuildRequires: python3.11dist(anyio)
|
||
|
BuildRequires: python3.11dist(argon2-cffi)
|
||
|
BuildRequires: python3.11dist(jinja2)
|
||
|
BuildRequires: python3.11dist(jupyter-client)
|
||
|
BuildRequires: python3.11dist(jupyter-core)
|
||
|
BuildRequires: python3.11dist(jupyter-events)
|
||
|
BuildRequires: python3.11dist(jupyter-server-terminals)
|
||
|
BuildRequires: python3.11dist(nbconvert)
|
||
|
BuildRequires: python3.11dist(nbformat)
|
||
|
BuildRequires: python3.11dist(overrides)
|
||
|
BuildRequires: python3.11dist(packaging)
|
||
|
BuildRequires: python3.11dist(prometheus-client)
|
||
|
BuildRequires: python3.11dist(pyzmq)
|
||
|
BuildRequires: python3.11dist(send2trash)
|
||
|
BuildRequires: python3.11dist(terminado)
|
||
|
BuildRequires: python3.11dist(tornado)
|
||
|
BuildRequires: python3.11dist(traitlets)
|
||
|
BuildRequires: python3.11dist(websocket-client)
|
||
|
## AUTOBUILDREQ-END
|
||
|
|
||
|
%description
|
||
|
%{summary}.
|
||
|
|
||
|
%if 0%{?with_pyver}
|
||
|
%pyver_package
|
||
|
%endif
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n jupyter_server-%{version}
|
||
|
|
||
|
%build
|
||
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
||
|
|
||
|
#%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)
|
||
|
%{_bindir}/jupyter-server
|
||
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
||
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
||
|
%dir %{python_sitelib}/%{pkgname}
|
||
|
%{python_sitelib}/%{pkgname}/*
|
||
|
%doc LICENSE
|
||
|
|
||
|
%changelog
|
||
|
* Fri Aug 09 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.14.2-1mamba
|
||
|
- package created using the webbuild interface
|