automatic version update by autodist [release 24.1.2-1mamba;Sun Jul 21 2024]
This commit is contained in:
parent
9e1b1e841b
commit
8386e84608
@ -1,5 +1,6 @@
|
||||
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||
Name: python-pip
|
||||
Version: 24.0
|
||||
Version: 24.1.2
|
||||
Release: 1mamba
|
||||
Summary: A tool for installing and managing Python packages
|
||||
Group: System/Libraries
|
||||
@ -11,7 +12,6 @@ Source: http://pypi.debian.net/pip/pip-%{version}.tar.gz
|
||||
License: MIT
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: libpython311-devel
|
||||
BuildRequires: python3.11dist(setuptools)
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: libpython3-devel >= 3.11.5
|
||||
|
||||
@ -38,34 +38,31 @@ Requires: python-setuptools%{?pyappend:-%pyappend}
|
||||
%setup -q -n pip-%{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} \
|
||||
--single-version-externally-managed \
|
||||
--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}/pdm; do
|
||||
# mv %{buildroot}${f}{,-%{?pyappend}}
|
||||
#done
|
||||
#%endif
|
||||
|
||||
%if "%{?with_pyver}" != "3"
|
||||
# Remove conflicting file outside of python site packages tree
|
||||
rm -f %{buildroot}%{_bindir}/{pip,pip3}
|
||||
%endif
|
||||
|
||||
sed -i "\,%{_bindir},d" %{name}.filelist
|
||||
|
||||
%files %{?pyappend} -f %{name}.filelist
|
||||
%files %{?pyappend}
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/pip*
|
||||
%dir %{python_sitearch}/pip-%{version}-py*.egg-info
|
||||
%{python_sitearch}/pip-%{version}-py*.egg-info/*
|
||||
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
||||
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
||||
%dir %{python_sitelib}/%{pkgname}
|
||||
%{python_sitelib}/%{pkgname}/*
|
||||
|
||||
%changelog
|
||||
* Sun Jul 21 2024 Automatic Build System <autodist@openmamba.org> 24.1.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Feb 03 2024 Automatic Build System <autodist@openmamba.org> 24.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user