90 lines
2.8 KiB
RPMSpec
90 lines
2.8 KiB
RPMSpec
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
Name: python-nbformat
|
|
Version: 5.10.3
|
|
Release: 1mamba
|
|
Summary: The Jupyter Notebook format
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://jupyter.org/
|
|
Source: https://pypi.debian.net/nbformat/nbformat-%{version}.tar.gz
|
|
License: BSD
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: libpython311-devel
|
|
BuildRequires: python3.11dist(fastjsonschema)
|
|
BuildRequires: python3.11dist(jsonschema)
|
|
BuildRequires: python3.11dist(jupyter-core)
|
|
BuildRequires: python3.11dist(traitlets)
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: python3-devel >= 3.11.5-3mamba
|
|
BuildRequires: python-hatch_nodejs_version-py3
|
|
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
|
|
* Sat Mar 16 2024 Automatic Build System <autodist@openmamba.org> 5.10.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Mar 15 2024 Automatic Build System <autodist@openmamba.org> 5.10.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Sep 29 2023 Automatic Build System <autodist@mambasoft.it> 5.9.2-2mamba
|
|
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
|
|
|
|
* Fri Aug 04 2023 Automatic Build System <autodist@mambasoft.it> 5.9.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Apr 07 2023 Sdk Build System <sdk@mambasoft.it> 5.4.0-2mamba
|
|
- rebuilt with python 3.10
|
|
|
|
* Thu May 05 2022 Automatic Build System <autodist@mambasoft.it> 5.4.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Apr 05 2022 Automatic Build System <autodist@mambasoft.it> 5.3.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Mar 11 2022 Automatic Build System <autodist@mambasoft.it> 5.2.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Feb 13 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.1.3-1mamba
|
|
- package created using the webbuild interface
|