From a05861aa913123b1afeb9c75e00249fa8eef1e94 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <thrnciar@redhat.com>
Date: Fri, 7 Mar 2025 12:32:24 +0100
Subject: [PATCH] Make sure the INSTALLER is not pip and remove RECORD

Resolves: RHEL-82609
---
 python-setuptools.spec | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/python-setuptools.spec b/python-setuptools.spec
index e59666d..b551e7b 100644
--- a/python-setuptools.spec
+++ b/python-setuptools.spec
@@ -28,7 +28,7 @@
 Name:           python-setuptools
 # When updating, update the bundled libraries versions bellow!
 Version:        53.0.0
-Release:        13%{?dist}
+Release:        14%{?dist}
 Summary:        Easily build and distribute Python packages
 # setuptools is MIT
 # appdirs is MIT
@@ -206,6 +206,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
+
 %if %{with tests}
 %check
 # Verify bundled provides are up to date
@@ -241,6 +245,10 @@ PYTHONPATH=$(pwd) %pytest --ignore=pavement.py
 
 
 %changelog
+* Fri Mar 07 2025 Tomáš Hrnčiar <thrnciar@redhat.com> - 53.0.0-14
+- Make sure the INSTALLER is not pip and remove RECORD
+- Resolves: RHEL-82609
+
 * Wed Jul 24 2024 Lumír Balhar <lbalhar@redhat.com> - 53.0.0-13
 - Security fix for CVE-2024-6345
 Resolves: RHEL-49978