From fb83c2754ef732f68bb53fe693d643a850f0f7db Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Fri, 1 Apr 2022 01:00:35 +0300 Subject: [PATCH] Improve spec --- .gitignore | 2 ++ common/uc.spec | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..707d379 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +vendor +uc diff --git a/common/uc.spec b/common/uc.spec index adbb6d8..07a6af4 100644 --- a/common/uc.spec +++ b/common/uc.spec @@ -36,7 +36,9 @@ Simple utility for counting unique lines. %build export GOPATH=$(pwd) -go build src/github.com/essentialkaos/%{name}/%{name}.go +pushd src/github.com/essentialkaos/%{name} + go build -mod vendor -o $GOPATH/%{name} %{name}.go +popd %install rm -rf %{buildroot}