update to 21.0 [release 21.0-1mamba;Tue Jan 26 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 16:17:59 +01:00
parent d3dd5958db
commit 5157c0679f

View File

@ -1,5 +1,5 @@
Name: python-pip
Version: 20.3
Version: 21.0
Release: 1mamba
Summary: A tool for installing and managing Python packages
Group: System/Libraries
@ -10,8 +10,7 @@ URL: http://www.pip-installer.org/
Source: http://pypi.debian.net/pip/pip-%{version}.tar.gz
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel
BuildRequires: python
BuildRequires: python3
## AUTOBUILDREQ-END
BuildRequires: libpython3-devel >= 3.7.4
Requires: python-setuptools
@ -22,6 +21,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
pip is a tool for installing and managing Python packages, such as those found in the Python Package Index. Its a replacement for easy_install.
%if "%{?with_pyver}"
%define py_requires_append \
Requires: python-setuptools%{?pyappend:-%pyappend} \
Provides: pip \
Provides: python-pip \
Obsoletes: python-pip < 20.3 \
Obsoletes: python-pip-py36 <= 20.3
%pyver_package
%endif
@ -43,15 +48,22 @@ CFLAGS="%{optflags}" %{__python} setup.py build
#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%if "%{?pyappend}"
rm -f %{buildroot}%{_bindir}/pip
sed -i "\,%{_bindir}/pip$,d" %{name}.filelist
%endif
#%if "%{?pyappend}"
#rm -f %{buildroot}%{_bindir}/pip
#sed -i "\,%{_bindir}/pip$,d" %{name}.filelist
#%endif
%posttrans %{?pyappend}
find %{python_sitearch}/*.egg-info -type d -empty -exec rmdir {} \;
:
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%changelog
* Tue Jan 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 21.0-1mamba
- update to 21.0
* Sat Jan 23 2021 Automatic Build System <autodist@mambasoft.it> 20.3-1mamba
- automatic version update by autodist