]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
golang: update
authorElan Ruusamäe <glen@delfi.ee>
Thu, 18 Aug 2016 11:42:40 +0000 (14:42 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 18 Aug 2016 11:43:22 +0000 (14:43 +0300)
golang-package.spec

index a0a68d7ee4cc6be6f349c471a22db034e2abd1fe..cc9841df9e7eb0a7974755753bf7b6b2475da2b5 100644 (file)
@@ -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
This page took 0.050213 seconds and 4 git commands to generate.