import python-pip-9.0.3-15.el8

This commit is contained in:
CentOS Sources 2020-01-21 13:24:39 -05:00 committed by Stepan Oksanichenko
parent a8bea55e2e
commit b9e88685db

View File

@ -4,9 +4,9 @@
%bcond_without doc %bcond_without doc
%global srcname pip %global srcname pip
%global python_wheelname %{srcname}-%{version}-py2.py3-none-any.whl %global python3_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
%if %{without bootstrap} %if %{without bootstrap}
%global python3_wheelname %python_wheelname %global python3_wheeldir %{_datadir}/python3-wheels
%endif %endif
# Note that with disabled python3, bashcomp2 will be disabled as well because # Note that with disabled python3, bashcomp2 will be disabled as well because
@ -19,7 +19,7 @@
Name: python-%{srcname} Name: python-%{srcname}
# When updating, update the bundled libraries versions bellow! # When updating, update the bundled libraries versions bellow!
Version: 9.0.3 Version: 9.0.3
Release: 14%{?dist} Release: 15%{?dist}
Summary: A tool for installing and managing Python packages Summary: A tool for installing and managing Python packages
Group: Development/Libraries Group: Development/Libraries
@ -174,9 +174,40 @@ A documentation for a tool for installing and managing Python packages
%endif %endif
%if %{without bootstrap}
%package -n python3-%{srcname}-wheel
Summary: The pip wheel
# Virtual provides for the packages bundled by pip.
# You can find the versions in pip/_vendor/vendor.txt file.
Provides: bundled(python3dist(appdirs)) = 1.4.0
Provides: bundled(python3dist(cachecontrol)) = 0.11.7
Provides: bundled(python3dist(colorama)) = 0.3.7
Provides: bundled(python3dist(distlib)) = 0.2.4
Provides: bundled(python3dist(distro)) = 1.0.1
Provides: bundled(python3dist(html5lib)) = 1.0b10
Provides: bundled(python3dist(ipaddress) = 1.0.17
Provides: bundled(python3dist(lockfile)) = 0.12.2
Provides: bundled(python3dist(packaging)) = 16.8
Provides: bundled(python3dist(setuptools)) = 28.8.0
Provides: bundled(python3dist(progress)) = 1.2
Provides: bundled(python3dist(pyparsing)) = 2.1.10
Provides: bundled(python3dist(requests)) = 2.11.1
Provides: bundled(python3dist(retrying)) = 1.3.3
Provides: bundled(python3dist(six)) = 1.10.0
Provides: bundled(python3dist(webencodings)) = 0.5
# Bundled within the requests bundle
Provides: bundled(python3dist(chardet)) = 2.3.0
Provides: bundled(python3dist(urllib3)) = 1.16
%description -n python3-%{srcname}-wheel
A Python wheel of pip to use with venv.
%endif
%prep %prep
%setup -q -n %{srcname}-%{version} %setup -q -n %{srcname}-%{version}
%if %{with tests} %if %{with tests}
tar -xf %{SOURCE1} tar -xf %{SOURCE1}
%endif %endif
@ -259,6 +290,10 @@ pathfix.py -i /usr/bin/python%{python3_version} -np %{buildroot}%{_bindir}/pip%{
# (Patch3) won't work # (Patch3) won't work
echo rpm > %{buildroot}%{python3_sitelib}/pip-%{version}.dist-info/INSTALLER echo rpm > %{buildroot}%{python3_sitelib}/pip-%{version}.dist-info/INSTALLER
%if %{without bootstrap}
mkdir -p %{buildroot}%{python3_wheeldir}
install -p dist/%{python3_wheelname} -t %{buildroot}%{python3_wheeldir}
%endif
%if %{with tests} %if %{with tests}
%check %check
@ -294,7 +329,19 @@ py.test-%{python3_version} -m 'not network'
%doc docs/_build/html %doc docs/_build/html
%endif # with doc %endif # with doc
%if %{without bootstrap}
%files -n python3-%{srcname}-wheel
%license LICENSE.txt
# we own the dir for simplicity
%dir %{python3_wheeldir}/
%{python3_wheeldir}/%{python3_wheelname}
%endif
%changelog %changelog
* Thu Jun 06 2019 Charalampos Stratakis <cstratak@redhat.com> - 9.0.3-15
- Create python-pip-wheel package with the wheel
Resolves: rhbz#1718031
* Wed Mar 13 2019 Lumír Balhar <lbalhar@redhat.com> - 9.0.3-14 * Wed Mar 13 2019 Lumír Balhar <lbalhar@redhat.com> - 9.0.3-14
- Move bash completion files from platform-python- to python3- subpackage - Move bash completion files from platform-python- to python3- subpackage
- resolves: rhbz#1664749 - resolves: rhbz#1664749