|
|
@ -50,6 +50,15 @@ License: MIT and Python and ASL 2.0 and BSD and ISC and LGPLv2 and MPLv2.
|
|
|
|
URL: https://pip.pypa.io/
|
|
|
|
URL: https://pip.pypa.io/
|
|
|
|
Source0: https://github.com/pypa/pip/archive/%{upstream_version}/%{srcname}-%{upstream_version}.tar.gz
|
|
|
|
Source0: https://github.com/pypa/pip/archive/%{upstream_version}/%{srcname}-%{upstream_version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# To generate the man pages for RHEL8 on a system with Python >= 3.7
|
|
|
|
|
|
|
|
# rhpkg prep
|
|
|
|
|
|
|
|
# cd into the pip folder
|
|
|
|
|
|
|
|
# sed -i '/myst_parser/d;/sphinx_copybutton/d;/sphinx_inline_tabs/d;/sphinxcontrib.towncrier/d' docs/html/conf.py
|
|
|
|
|
|
|
|
# sphinx-build-3 -b man docs/man docs/build/man -c docs/html
|
|
|
|
|
|
|
|
# tar -czf pip-23.2.1-man.tar.gz --exclude=".[^/]*" -v docs/build/man
|
|
|
|
|
|
|
|
# mv pip-23.2.1-man.tar.gz ..
|
|
|
|
|
|
|
|
Source1: pip-%{base_version}-man.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
# Prevent removing of the system packages installed under /usr/lib
|
|
|
|
# Prevent removing of the system packages installed under /usr/lib
|
|
|
@ -152,6 +161,14 @@ BuildRequires: python%{python3_pkgversion}-installer
|
|
|
|
# Side note: pip bundles pkg_resources from setuptools for internal usage.
|
|
|
|
# Side note: pip bundles pkg_resources from setuptools for internal usage.
|
|
|
|
Recommends: python%{python3_pkgversion}-setuptools
|
|
|
|
Recommends: python%{python3_pkgversion}-setuptools
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Require alternatives version that implements the --keep-foreign flag and fixes rhbz#2203820
|
|
|
|
|
|
|
|
Requires(postun): alternatives >= 1.19.2-1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# python3.12 installs the alternatives master symlink to which we attach a slave
|
|
|
|
|
|
|
|
Requires: python%{python3_pkgversion}
|
|
|
|
|
|
|
|
Requires(post): python%{python3_pkgversion}
|
|
|
|
|
|
|
|
Requires(postun): python%{python3_pkgversion}
|
|
|
|
|
|
|
|
|
|
|
|
# Virtual provides for the packages bundled by pip:
|
|
|
|
# Virtual provides for the packages bundled by pip:
|
|
|
|
%{bundled %{python3_pkgversion}}
|
|
|
|
%{bundled %{python3_pkgversion}}
|
|
|
|
|
|
|
|
|
|
|
@ -194,10 +211,6 @@ sed -i '/\.exe/d' setup.py
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%py3_build_wheel
|
|
|
|
%py3_build_wheel
|
|
|
|
|
|
|
|
|
|
|
|
export PYTHONPATH=./src/
|
|
|
|
|
|
|
|
sphinx-build-3 -b man docs/man docs/build/man -c docs/html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
# The following is similar to %%pyproject_install, but we don't have
|
|
|
|
# The following is similar to %%pyproject_install, but we don't have
|
|
|
|
# /usr/bin/pip yet, so we install using the wheel directly.
|
|
|
|
# /usr/bin/pip yet, so we install using the wheel directly.
|
|
|
@ -217,6 +230,7 @@ sphinx-build-3 -b man docs/man docs/build/man -c docs/html
|
|
|
|
'pip==%{upstream_version}'
|
|
|
|
'pip==%{upstream_version}'
|
|
|
|
|
|
|
|
|
|
|
|
# Install the man pages
|
|
|
|
# Install the man pages
|
|
|
|
|
|
|
|
tar -xvf %{SOURCE1}
|
|
|
|
pushd docs/build/man
|
|
|
|
pushd docs/build/man
|
|
|
|
install -d %{buildroot}%{_mandir}/man1
|
|
|
|
install -d %{buildroot}%{_mandir}/man1
|
|
|
|
for MAN in *1; do
|
|
|
|
for MAN in *1; do
|
|
|
@ -252,6 +266,11 @@ install -p dist/%{python_wheel_name} -t %{buildroot}%{python_wheel_dir}
|
|
|
|
rm %{buildroot}%{_bindir}/pip
|
|
|
|
rm %{buildroot}%{_bindir}/pip
|
|
|
|
rm %{buildroot}%{_bindir}/pip3
|
|
|
|
rm %{buildroot}%{_bindir}/pip3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# All ghost files controlled by alternatives need to exist for the files
|
|
|
|
|
|
|
|
# section check to succeed
|
|
|
|
|
|
|
|
touch %{buildroot}%{_bindir}/pip3
|
|
|
|
|
|
|
|
touch %{buildroot}%{_bindir}/pip-3
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%if 0%{?rhel} >= 9
|
|
|
|
%if 0%{?rhel} >= 9
|
|
|
|
# The test cannot run on RHEL8 due to the test script missing from RPM.
|
|
|
|
# The test cannot run on RHEL8 due to the test script missing from RPM.
|
|
|
@ -274,6 +293,34 @@ pytest_k='not completion'
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
|
|
|
|
alternatives --keep-foreign --add-slave python3 %{_bindir}/python%{python3_version} \
|
|
|
|
|
|
|
|
%{_bindir}/pip3 \
|
|
|
|
|
|
|
|
pip3 \
|
|
|
|
|
|
|
|
%{_bindir}/pip%{python3_version}
|
|
|
|
|
|
|
|
alternatives --keep-foreign --add-slave python3 %{_bindir}/python%{python3_version} \
|
|
|
|
|
|
|
|
%{_bindir}/pip-3 \
|
|
|
|
|
|
|
|
pip-3 \
|
|
|
|
|
|
|
|
%{_bindir}/pip-%{python3_version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
|
|
|
|
# Do this only during uninstall process (not during update)
|
|
|
|
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
|
|
|
|
# Only remove the slave links if the master link for python3 still exists.
|
|
|
|
|
|
|
|
# Due to a possible bug in yum, python3.12 gets removed before python3.12-pip
|
|
|
|
|
|
|
|
# even though we have declared Requires(postun): python3.12
|
|
|
|
|
|
|
|
EXISTS=`alternatives --display python3 | \
|
|
|
|
|
|
|
|
grep -c "^/usr/bin/python%{python3_version} - priority [0-9]*"`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ $EXISTS -ne 0 ]; then
|
|
|
|
|
|
|
|
alternatives --keep-foreign --remove-slave python3 %{_bindir}/python%{python3_version} \
|
|
|
|
|
|
|
|
pip3
|
|
|
|
|
|
|
|
alternatives --keep-foreign --remove-slave python3 %{_bindir}/python%{python3_version} \
|
|
|
|
|
|
|
|
pip-3
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.rst
|
|
|
|
%license %{python3_sitelib}/pip-%{upstream_version}.dist-info/LICENSE.txt
|
|
|
|
%license %{python3_sitelib}/pip-%{upstream_version}.dist-info/LICENSE.txt
|
|
|
@ -286,6 +333,8 @@ pytest_k='not completion'
|
|
|
|
%{python3_sitelib}/pip*
|
|
|
|
%{python3_sitelib}/pip*
|
|
|
|
%dir %{bashcompdir}
|
|
|
|
%dir %{bashcompdir}
|
|
|
|
%{bashcompdir}/pip%{python3_pkgversion}
|
|
|
|
%{bashcompdir}/pip%{python3_pkgversion}
|
|
|
|
|
|
|
|
%ghost %{_bindir}/pip3
|
|
|
|
|
|
|
|
%ghost %{_bindir}/pip-3
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{python_wheel_pkg_prefix}-%{srcname}-wheel
|
|
|
|
%files -n %{python_wheel_pkg_prefix}-%{srcname}-wheel
|
|
|
|
%license LICENSE.txt
|
|
|
|
%license LICENSE.txt
|
|
|
@ -294,6 +343,9 @@ pytest_k='not completion'
|
|
|
|
%{python_wheel_dir}/%{python_wheel_name}
|
|
|
|
%{python_wheel_dir}/%{python_wheel_name}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Fri Mar 29 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 23.2.1-4
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 8.10 beta
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 16 2024 Charalampos Stratakis <cstratak@redhat.com> - 23.2.1-4
|
|
|
|
* Fri Feb 16 2024 Charalampos Stratakis <cstratak@redhat.com> - 23.2.1-4
|
|
|
|
- Use tarfile.data_filter for extracting (CVE-2007-4559, PEP-721, PEP-706)
|
|
|
|
- Use tarfile.data_filter for extracting (CVE-2007-4559, PEP-721, PEP-706)
|
|
|
|
Resolves: RHEL-25737
|
|
|
|
Resolves: RHEL-25737
|
|
|
|