From 8386e846080df4993600ee1adb2ddd19dcf1fc1c Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Mon, 22 Jul 2024 10:41:34 +0200 Subject: [PATCH] automatic version update by autodist [release 24.1.2-1mamba;Sun Jul 21 2024] --- python-pip.spec | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/python-pip.spec b/python-pip.spec index 3f8340e..1b0b994 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -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 24.1.2-1mamba +- automatic version update by autodist + * Sat Feb 03 2024 Automatic Build System 24.0-1mamba - automatic version update by autodist