fix conflicting bindir files [release 8.16.0-2mamba;Sun Oct 01 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 11:18:04 +01:00
parent a83442214a
commit f0ec739793

View File

@ -1,6 +1,7 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-ipython
Version: 8.15.0
Release: 1mamba
Version: 8.16.0
Release: 2mamba
Summary: An interactive computational environment for Python
Group: System/Libraries
Vendor: openmamba
@ -10,20 +11,18 @@ URL: https://ipython.org/notebook.html
Source: https://pypi.debian.net/ipython/ipython-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: (python3.10dist(prompt-toolkit) < 3.0.37 or python3.10dist(prompt-toolkit) > 3.0.37)
BuildRequires: libpython310-devel
BuildRequires: python3.10dist(backcall)
BuildRequires: python3.10dist(decorator)
BuildRequires: python3.10dist(exceptiongroup)
BuildRequires: python3.10dist(jedi)
BuildRequires: python3.10dist(matplotlib-inline)
BuildRequires: python3.10dist(pexpect)
BuildRequires: python3.10dist(pickleshare)
BuildRequires: python3.10dist(prompt-toolkit)
BuildRequires: python3.10dist(pygments)
BuildRequires: python3.10dist(setuptools)
BuildRequires: python3.10dist(stack-data)
BuildRequires: python3.10dist(traitlets)
BuildRequires: (python3.11dist(prompt-toolkit) < 3.0.37 or python3.11dist(prompt-toolkit) > 3.0.37)
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(backcall)
BuildRequires: python3.11dist(decorator)
BuildRequires: python3.11dist(jedi)
BuildRequires: python3.11dist(matplotlib-inline)
BuildRequires: python3.11dist(pexpect)
BuildRequires: python3.11dist(pickleshare)
BuildRequires: python3.11dist(prompt-toolkit)
BuildRequires: python3.11dist(pygments)
BuildRequires: python3.11dist(stack-data)
BuildRequires: python3.11dist(traitlets)
## AUTOBUILDREQ-END
%description
@ -40,26 +39,39 @@ Obsoletes: ipython < 7.32.0
%setup -q -n ipython-%{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=%{python_inc} \
--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}/{ipython,ipython3}; do
mv %{buildroot}${f}{,-%{?pyappend}}
done
for f in %{_mandir}/man1/ipython; do
mv %{buildroot}${f}{,-%{?pyappend}}.1
done
%endif
%files %{?pyappend} -f %{name}.filelist
%files %{?pyappend}
%defattr(-,root,root)
%dir %{python_sitearch}/ipython-%{version}-py*.egg-info
%{python_sitearch}/ipython-%{version}-py*.egg-info/*
%{_bindir}/ipython*
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/IPython
%{python_sitelib}/IPython/*
%{_mandir}/man1/ipython*.1*
%doc COPYING.rst
%changelog
* Sun Oct 01 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 8.16.0-2mamba
- fix conflicting bindir files
* Sat Sep 30 2023 Automatic Build System <autodist@mambasoft.it> 8.16.0-1mamba
- automatic version update by autodist
* Sat Sep 02 2023 Automatic Build System <autodist@mambasoft.it> 8.15.0-1mamba
- automatic version update by autodist