From 2dafa4ba60ea34fee407206a852f85215a91e3e6 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 11:21:38 +0100 Subject: [PATCH] automatic version update by autodist [release 5.2.0-1mamba;Mon Mar 06 2023] --- python-jupyter_core.spec | 43 +++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/python-jupyter_core.spec b/python-jupyter_core.spec index 7cd8510..7b2d866 100644 --- a/python-jupyter_core.spec +++ b/python-jupyter_core.spec @@ -1,19 +1,18 @@ -%global srcname jupyter_core - -Name: python-%{srcname} -Version: 4.10.0 +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-jupyter_core +Version: 5.2.0 Release: 1mamba Summary: Core common functionality of Jupyter projects Group: System/Libraries Vendor: openmamba Distribution: openmamba -Packager: Davide Madrisan +Packager: Silvan Calarco URL: https://github.com/jupyter/jupyter_core Source: https://pypi.debian.net/jupyter-core/jupyter_core-%{version}.tar.gz License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: libpython3-devel -BuildRequires: python3.7dist(setuptools) +BuildRequires: python3.7dist(platformdirs) BuildRequires: python3.7dist(traitlets) ## AUTOBUILDREQ-END @@ -27,28 +26,36 @@ It doesn't do much on its own. %endif %prep -%setup -q -n %{srcname}-%{version} +%setup -q -n %{pkgname}-%{version} %build -CFLAGS="%{optflags}" %{__python} setup.py build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python} setup.py install \ - -O1 --skip-build \ - --root="%{buildroot}" \ - --install-headers=%{_includedir}/python \ - --install-lib=%{python_sitearch} \ - --record=%{name}.filelist +%{__python} -m installer --destdir=%{buildroot} dist/*.whl -sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist +%if "%{?with_pyver}" != "3" +# Rename any conflicting file outside of python site packages tree +for f in %{_bindir}/jupyter{,-migrate,-troubleshoot}; do + mv %{buildroot}${f}{,-%{?pyappend}} +done +%endif -%files %{?pyappend} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) -%dir %{python_sitearch}/jupyter_core-%{version}-py*.egg-info -%{python_sitearch}/jupyter_core-%{version}-py*.egg-info/* +%{_bindir}/jupyter* +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* +%{python_sitelib}/jupyter.py +%{python_sitelib}/__pycache__/jupyter.*.pyc %changelog +* Mon Mar 06 2023 Automatic Build System 5.2.0-1mamba +- automatic version update by autodist + * Tue Apr 19 2022 Automatic Build System 4.10.0-1mamba - automatic version update by autodist