Make sure the INSTALLER is not pip and remove RECORD

Resolves: RHEL-82611
This commit is contained in:
Tomáš Hrnčiar 2025-03-07 14:27:34 +01:00
parent 5363f951ac
commit a3593cab3f

View File

@ -21,7 +21,7 @@
Name: python%{python3_pkgversion}-setuptools
# When updating, update the bundled libraries versions bellow!
Version: 65.5.1
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Easily build and distribute Python packages
# setuptools is MIT
# appdirs is MIT
@ -172,6 +172,10 @@ mkdir -p %{buildroot}%{python_wheel_dir}
install -p dist/%{python_wheel_name} -t %{buildroot}%{python_wheel_dir}
%endif
# Make sure the INSTALLER is not pip and remove RECORD
echo rpm > %{buildroot}%{python3_sitelib}/setuptools-%{version}.dist-info/INSTALLER
rm %{buildroot}%{python3_sitelib}/setuptools-%{version}.dist-info/RECORD
%check
# Regression tests
@ -237,6 +241,10 @@ PYTHONPATH=$(pwd) %pytest \
%changelog
* Fri Mar 07 2025 Tomáš Hrnčiar <thrnciar@redhat.com> - 65.5.1-4
- Make sure the INSTALLER is not pip and remove RECORD
Resolves: RHEL-82611
* Wed Jul 24 2024 Lumír Balhar <lbalhar@redhat.com> - 65.5.1-3
- Security fix for CVE-2024-6345
Resolves: RHEL-49992