7e1b55
From e0e1d6f94dd16c8066be8ce3c75ef306890a3e2b Mon Sep 17 00:00:00 2001
7e1b55
From: =?UTF-8?q?Fran=C3=A7ois=20Cami?= <fcami@redhat.com>
7e1b55
Date: Wed, 28 Jul 2021 18:47:02 +0200
7e1b55
Subject: [PATCH] freeipa.spec.in: remove python3-pexpect from Requires
7e1b55
MIME-Version: 1.0
7e1b55
Content-Type: text/plain; charset=UTF-8
7e1b55
Content-Transfer-Encoding: 8bit
7e1b55
7e1b55
python3-pexpect will be removed in RHEL9.
7e1b55
Update BuildRequires/Requires accordingly.
7e1b55
7e1b55
Fixes: https://pagure.io/freeipa/issue/8938
7e1b55
Signed-off-by: François Cami <fcami@redhat.com>
7e1b55
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
7e1b55
Reviewed-By: Antonio Torres <antorres@redhat.com>
7e1b55
---
7e1b55
 freeipa.spec.in | 14 ++++++++++----
7e1b55
 1 file changed, 10 insertions(+), 4 deletions(-)
7e1b55
7e1b55
diff --git a/freeipa.spec.in b/freeipa.spec.in
7e1b55
index c33d2e216..9440f3602 100755
7e1b55
--- a/freeipa.spec.in
7e1b55
+++ b/freeipa.spec.in
7e1b55
@@ -328,11 +328,18 @@ BuildRequires: python3-m2r
7e1b55
 # Build dependencies for lint and fastcheck
7e1b55
 #
7e1b55
 %if %{with lint}
7e1b55
-BuildRequires:  git
7e1b55
-%if 0%{?fedora} < 34
7e1b55
+
7e1b55
+# python3-pexpect might not be available in RHEL9
7e1b55
+%if 0%{?fedora} || 0%{?rhel} < 9
7e1b55
+BuildRequires:  python3-pexpect
7e1b55
+%endif
7e1b55
+
7e1b55
 # jsl is orphaned in Fedora 34+
7e1b55
+%if 0%{?fedora} < 34
7e1b55
 BuildRequires:  jsl
7e1b55
 %endif
7e1b55
+
7e1b55
+BuildRequires:  git
7e1b55
 BuildRequires:  nss-tools
7e1b55
 BuildRequires:  rpmlint
7e1b55
 BuildRequires:  softhsm
7e1b55
@@ -357,7 +364,6 @@ BuildRequires:  python3-lxml
7e1b55
 BuildRequires:  python3-netaddr >= %{python_netaddr_version}
7e1b55
 BuildRequires:  python3-netifaces
7e1b55
 BuildRequires:  python3-paste
7e1b55
-BuildRequires:  python3-pexpect
7e1b55
 BuildRequires:  python3-pki >= %{pki_version}
7e1b55
 BuildRequires:  python3-polib
7e1b55
 BuildRequires:  python3-pyasn1
7e1b55
@@ -878,11 +884,11 @@ Requires: python3-ipaclient = %{version}-%{release}
7e1b55
 Requires: python3-ipaserver = %{version}-%{release}
7e1b55
 Requires: iptables
7e1b55
 Requires: python3-cryptography >= 1.6
7e1b55
-Requires: python3-pexpect
7e1b55
 %if 0%{?fedora}
7e1b55
 # These packages do not exist on RHEL and for ipatests use
7e1b55
 # they are installed on the controller through other means
7e1b55
 Requires: ldns-utils
7e1b55
+Requires: python3-pexpect
7e1b55
 # update-crypto-policies
7e1b55
 Requires: crypto-policies-scripts
7e1b55
 Requires: python3-polib
7e1b55
-- 
7e1b55
2.31.1
7e1b55