From ed4665e337986e5da5e486554beb0746e36fd964 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 4 Nov 2017 00:29:53 -0400 Subject: [PATCH] Use %gobuild macro more. --- git-lfs.spec | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/git-lfs.spec b/git-lfs.spec index 4cd27ec..8934da8 100644 --- a/git-lfs.spec +++ b/git-lfs.spec @@ -122,12 +122,9 @@ popd # Build test executables for go in test/cmd/*.go; do - go build -o "bin/$(basename $go .go)" "$go" + %gobuild -o "bin/$(basename $go .go)" "$go" done -go build -o "bin/git-lfs-test-server-api" \ - "test/git-lfs-test-server-api/main.go" \ - "test/git-lfs-test-server-api/testdownload.go" \ - "test/git-lfs-test-server-api/testupload.go" +%{gobuild} -o "bin/git-lfs-test-server-api" "test/git-lfs-test-server-api/*.go" %install