From a13bd65601a0e2c2686654a69fe8933b306efab1 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Thu, 26 Feb 2026 12:32:13 +0100 Subject: [PATCH] Update obsolete patch macro Since backward compatibility is broken with current tools (eg: rpm-6.0.1 from fedora-43). For the record: https://rpm.org/releases/4.20.0 Compatibility Notes The %patchN macro syntax (where N is a patch number) is now obsolete and will produce a build error. Use %patch N (or for maximum compatibility, %patch -P N) instead. Origin: https://github.com/agx/git-buildpackage/pull/98 Signed-off-by: Philippe Coval --- packaging/git-buildpackage.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/git-buildpackage.spec b/packaging/git-buildpackage.spec index 5aff21e8..dd8d67a3 100644 --- a/packaging/git-buildpackage.spec +++ b/packaging/git-buildpackage.spec @@ -157,7 +157,7 @@ Debian and the RPM tool set. %prep %setup -q -n %{name}-%{version} %if 0%{?centos_ver} && 0%{?centos_ver} >= 7 -%patch0 -p1 +%patch -P 0 -p1 %endif