%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-nbformat Version: 5.9.2 Release: 1mamba Summary: The Jupyter Notebook format Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://jupyter.org/ Source: https://pypi.debian.net/nbformat/nbformat-%{version}.tar.gz License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: libpython3-devel BuildRequires: python3.7dist(fastjsonschema) BuildRequires: python3.7dist(jsonschema) BuildRequires: python3.7dist(jupyter-core) BuildRequires: python3.7dist(traitlets) ## AUTOBUILDREQ-END BuildRequires: python-hatch_nodejs_version-py310 %description %{summary}. %if 0%{?with_pyver} %pyver_package %endif %prep %setup -q -n nbformat-%{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 %if "%{?with_pyver}" != "3" # Rename any conflicting file outside of python site packages tree for f in %{_bindir}/jupyter-trust; do mv %{buildroot}${f}{,-%{?pyappend}} done %endif %files %{?pyappend} %defattr(-,root,root) %{_bindir}/jupyter-trust* %dir %{python_sitelib}/%{pkgname}-%{version}.dist-info %{python_sitelib}/%{pkgname}-%{version}.dist-info/* %dir %{python_sitelib}/%{pkgname} %{python_sitelib}/%{pkgname}/* %changelog * Fri Aug 04 2023 Automatic Build System 5.9.2-1mamba - automatic version update by autodist * Fri Apr 07 2023 Sdk Build System 5.4.0-2mamba - rebuilt with python 3.10 * Thu May 05 2022 Automatic Build System 5.4.0-1mamba - automatic version update by autodist * Tue Apr 05 2022 Automatic Build System 5.3.0-1mamba - automatic version update by autodist * Fri Mar 11 2022 Automatic Build System 5.2.0-1mamba - automatic version update by autodist * Sun Feb 13 2022 Silvan Calarco 5.1.3-1mamba - package created using the webbuild interface