From: Jakub Ružička Date: Wed, 4 Aug 2021 14:33:17 +0000 (+0200) Subject: rpm: use autosetup macro to apply patches X-Git-Tag: v3.1.1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=956f4f6bb537e97cc396f1341933cbced7185bd2;p=thirdparty%2Fknot-dns.git rpm: use autosetup macro to apply patches %autosetup macro takes care of applying patches without the need for redundant %patch lines and their management. --- diff --git a/distro/pkg/rpm/knot.spec b/distro/pkg/rpm/knot.spec index 177a0bfbdc..84a20af6c6 100644 --- a/distro/pkg/rpm/knot.spec +++ b/distro/pkg/rpm/knot.spec @@ -145,8 +145,7 @@ mkdir --mode=700 ${GNUPGHOME} gpg2 --import %{SOURCE100} gpg2 --verify %{SOURCE1} %{SOURCE0} %endif -%setup -q -%patch1 -p1 +%autosetup -p1 %build # disable debug code (causes unused warnings)