From c1d676596e3a633ddcf5dc3ebf00050b81b3c56e Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Thu, 8 Sep 2022 13:26:10 -0500 Subject: [PATCH] Use %autosetup to create directory in %_builddir `%autosetup -T -c` creates an empty directory in %_builddir and changes into it. It will also apply patches. This avoids clashes in %_builddir and cleans up old files on rebuild. --- go-rpm-macros-epel.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/go-rpm-macros-epel.spec b/go-rpm-macros-epel.spec index 61875be..7c24d1c 100644 --- a/go-rpm-macros-epel.spec +++ b/go-rpm-macros-epel.spec @@ -74,6 +74,7 @@ packaged as golist. %prep +%autosetup -T -c cp -a %{sources} .