diff --git a/python-pip.spec b/python-pip.spec index 574e183..32d5af0 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -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. It’s 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 21.0-1mamba +- update to 21.0 + * Sat Jan 23 2021 Automatic Build System 20.3-1mamba - automatic version update by autodist