From 46f45f96ad00e02b928a15e3a7e17d2458e9c836 Mon Sep 17 00:00:00 2001 From: Hurng-Chun Lee Date: Tue, 18 Feb 2020 15:23:55 +0100 Subject: [PATCH] updated rpm spec to clean go module cache --- build/rpm/centos7.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/rpm/centos7.spec b/build/rpm/centos7.spec index b8f6a97..fcdebf8 100644 --- a/build/rpm/centos7.spec +++ b/build/rpm/centos7.spec @@ -28,7 +28,7 @@ rm -rf %{gopath} mkdir -p %{gopath}/src/github.com/Donders-Institute # copy entire directory into gopath, this duplicate the source code cp -R %{_builddir}/%{name}-%{version} %{gopath}/src/github.com/Donders-Institute/%{name} -cd %{gopath}/src/github.com/Donders-Institute/%{name}; GOPATH=%{gopath} make; %{gopath}/bin/hpcutil-gbc > hpcutil +cd %{gopath}/src/github.com/Donders-Institute/%{name}; GOPATH=%{gopath} make; GOPATH=%{gopath} go clean --modcache; %{gopath}/bin/hpcutil-gbc > hpcutil %install mkdir -p %{buildroot}/%{_bindir}