]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
rpm: use autosetup macro to apply patches
authorJakub Ružička <jakub.ruzicka@nic.cz>
Wed, 4 Aug 2021 14:33:17 +0000 (16:33 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Thu, 5 Aug 2021 06:15:41 +0000 (08:15 +0200)
%autosetup macro takes care of applying patches without the need
for redundant %patch lines and their management.

distro/pkg/rpm/knot.spec

index 177a0bfbdcdd447d1f3097ac1583ac36d3cf13e6..84a20af6c6d11d889afeab02645f95dfc656b4e5 100644 (file)
@@ -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)