diff --git a/SPECS/insights-client.spec b/SPECS/insights-client.spec
index c62c4fb..29d1baf 100644
--- a/SPECS/insights-client.spec
+++ b/SPECS/insights-client.spec
@@ -3,7 +3,7 @@
Name: insights-client
Summary: Uploads Insights information to Red Hat on a periodic basis
Version: 3.1.7
-Release: 5%{?dist}
+Release: 7%{?dist}
Source0: https://github.com/RedHatInsights/insights-client/releases/download/v%{version}/insights-client-%{version}.tar.gz
Epoch: 0
License: GPLv2+
@@ -27,6 +27,7 @@ Requires: tar
Requires: gpg
Requires: pciutils
+%global __python3 /usr/libexec/platform-python
%{?__python3:Requires: %{__python3}}
%{?systemd_requires}
Requires: python3-requests >= 2.6
@@ -38,6 +39,7 @@ Requires: coreutils
BuildRequires: wget
BuildRequires: binutils
BuildRequires: python3-devel
+BuildRequires: platform-python-devel
BuildRequires: systemd
BuildRequires: pam
@@ -50,7 +52,7 @@ Sends insightful information to Red Hat for automated analysis
%build
-%{configure} PYTHON=%{_libexecdir}/platform-python
+%{configure} PYTHON=%{__python3}
%{__make}
@@ -122,6 +124,9 @@ fi
%changelog
+* Wed Jun 29 2022 Link Dupont 0:3.1.7-6
+- Ensure __python3 macro is globally set to platform-python (RHBZ#2102213)
+
* Wed Apr 06 2022 Gael Chamoulaud (Strider) 0:3.1.7-5
- Add several insights /var directories in files directives (RHBZ#2070595)