From 8bff699fcfb20808d9b6ac2f4151f1260c0fc0c8fef6f2035d48ae477920b455 Mon Sep 17 00:00:00 2001
From: Valentin Lefebvre <valentin.lefebvre@suse.com>
Date: Fri, 1 Mar 2024 13:24:12 +0000
Subject: [PATCH] Accepting request 1153264 from home:dimstar:rpm4.20:p

Prepare for RPM 4.20

OBS-URL: https://build.opensuse.org/request/show/1153264
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam_krb5?expand=0&rev=42
---
 pam_krb5.changes | 6 ++++++
 pam_krb5.spec    | 5 +----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/pam_krb5.changes b/pam_krb5.changes
index 83b81d5..ac3d87f 100644
--- a/pam_krb5.changes
+++ b/pam_krb5.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Thu Feb 29 14:31:23 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
+
+- Use %autopatch macro. Allows to eliminate the usage of deprecated
+  %patchN.
+
 -------------------------------------------------------------------
 Wed Jan 12 10:29:54 UTC 2022 - Josef Möllers <josef.moellers@suse.com>
 
diff --git a/pam_krb5.spec b/pam_krb5.spec
index f03e830..2db0998 100644
--- a/pam_krb5.spec
+++ b/pam_krb5.spec
@@ -52,10 +52,7 @@ supports updating your Kerberos password.
 %prep
 %setup -q -n pam_krb5-%{version}
 %setup -a 2 -T -D -n pam_krb5-%{version}
-%patch1 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
+%autopatch -p1
 
 %build
 CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE "         \