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