fix conflicting bindir files [release 8.16.0-2mamba;Sun Oct 01 2023]
This commit is contained in:
parent
a83442214a
commit
f0ec739793
@ -1,6 +1,7 @@
|
|||||||
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||||
Name: python-ipython
|
Name: python-ipython
|
||||||
Version: 8.15.0
|
Version: 8.16.0
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: An interactive computational environment for Python
|
Summary: An interactive computational environment for Python
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -10,20 +11,18 @@ URL: https://ipython.org/notebook.html
|
|||||||
Source: https://pypi.debian.net/ipython/ipython-%{version}.tar.gz
|
Source: https://pypi.debian.net/ipython/ipython-%{version}.tar.gz
|
||||||
License: GPL
|
License: GPL
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: (python3.10dist(prompt-toolkit) < 3.0.37 or python3.10dist(prompt-toolkit) > 3.0.37)
|
BuildRequires: (python3.11dist(prompt-toolkit) < 3.0.37 or python3.11dist(prompt-toolkit) > 3.0.37)
|
||||||
BuildRequires: libpython310-devel
|
BuildRequires: libpython311-devel
|
||||||
BuildRequires: python3.10dist(backcall)
|
BuildRequires: python3.11dist(backcall)
|
||||||
BuildRequires: python3.10dist(decorator)
|
BuildRequires: python3.11dist(decorator)
|
||||||
BuildRequires: python3.10dist(exceptiongroup)
|
BuildRequires: python3.11dist(jedi)
|
||||||
BuildRequires: python3.10dist(jedi)
|
BuildRequires: python3.11dist(matplotlib-inline)
|
||||||
BuildRequires: python3.10dist(matplotlib-inline)
|
BuildRequires: python3.11dist(pexpect)
|
||||||
BuildRequires: python3.10dist(pexpect)
|
BuildRequires: python3.11dist(pickleshare)
|
||||||
BuildRequires: python3.10dist(pickleshare)
|
BuildRequires: python3.11dist(prompt-toolkit)
|
||||||
BuildRequires: python3.10dist(prompt-toolkit)
|
BuildRequires: python3.11dist(pygments)
|
||||||
BuildRequires: python3.10dist(pygments)
|
BuildRequires: python3.11dist(stack-data)
|
||||||
BuildRequires: python3.10dist(setuptools)
|
BuildRequires: python3.11dist(traitlets)
|
||||||
BuildRequires: python3.10dist(stack-data)
|
|
||||||
BuildRequires: python3.10dist(traitlets)
|
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -40,26 +39,39 @@ Obsoletes: ipython < 7.32.0
|
|||||||
%setup -q -n ipython-%{version}
|
%setup -q -n ipython-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" %{__python} setup.py build
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%{__python} setup.py install \
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
||||||
-O1 --skip-build \
|
|
||||||
--root="%{buildroot}" \
|
|
||||||
--install-headers=%{python_inc} \
|
|
||||||
--install-lib=%{python_sitearch} \
|
|
||||||
--record=%{name}.filelist
|
|
||||||
|
|
||||||
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)
|
%defattr(-,root,root)
|
||||||
%dir %{python_sitearch}/ipython-%{version}-py*.egg-info
|
%{_bindir}/ipython*
|
||||||
%{python_sitearch}/ipython-%{version}-py*.egg-info/*
|
%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
|
%doc COPYING.rst
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Sep 02 2023 Automatic Build System <autodist@mambasoft.it> 8.15.0-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user