[projects/template-specs] golang: update
glen
glen at pld-linux.org
Thu Aug 18 13:43:25 CEST 2016
commit 57e15cf332acab0785ebe7e90bfa6d6e58ba740e
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Aug 18 14:42:40 2016 +0300
golang: update
golang-package.spec | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/golang-package.spec b/golang-package.spec
index a0a68d7..cc9841d 100644
--- a/golang-package.spec
+++ b/golang-package.spec
@@ -44,9 +44,13 @@ packages which use import path with %{import_path} prefix.
%prep
%setup -q
+install -d src/$(dirname %{import_path})
+ln -s ../../.. src/%{import_path}
+
%build
-export GOPATH=$(pwd)/vendor
-install -d $GOPATH
+export GOPATH=$(pwd)
+
+%gobuild -o "bin/%{name}"
%install
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/733ed35097f993080cc3abaa440a8c58b5e9965c
More information about the pld-cvs-commit
mailing list