automatic version update by autodist [release 5.2.0-1mamba;Mon Mar 06 2023]

This commit is contained in:
Automatic Build System 2024-01-06 11:21:38 +01:00
parent cf18aae99f
commit 2dafa4ba60

View File

@ -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 <davide.madrisan@gmail.com>
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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 <autodist@mambasoft.it> 5.2.0-1mamba
- automatic version update by autodist
* Tue Apr 19 2022 Automatic Build System <autodist@mambasoft.it> 4.10.0-1mamba
- automatic version update by autodist