diff --git a/texi2html.changes b/texi2html.changes
index a807058..5d703ee 100644
--- a/texi2html.changes
+++ b/texi2html.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Mon Feb 26 12:59:16 UTC 2024 - pgajdos@suse.com
+
+- Use %patch -P N instead of deprecated %patchN.
+
-------------------------------------------------------------------
Tue Sep 20 12:54:07 UTC 2022 - Dr. Werner Fink
diff --git a/texi2html.spec b/texi2html.spec
index 2adbd56..b7f834f 100644
--- a/texi2html.spec
+++ b/texi2html.spec
@@ -54,9 +54,9 @@ output not specified in the Texinfo input file to be specified.
%prep
%setup -q
-%patch1
-%patch2 -p0 -b .random
-%patch3 -p1
+%patch -P 1
+%patch -P 2 -p0 -b .random
+%patch -P 3 -p1
# Avoid regenerated translations.pl as this becomes broken
mkdir i18n