]> git.pld-linux.org Git - packages/caddy.git/commitdiff
build only specific package master
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 5 Sep 2017 04:21:31 +0000 (07:21 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 5 Sep 2017 04:22:24 +0000 (07:22 +0300)
caddy.spec

index 3ada9b5da55bc8c78f34a59016136f350e4db687..d35107cbc3c766b5e3937352b08a17ab9edb5c83 100644 (file)
@@ -40,8 +40,8 @@ set -- $GOPATH/*
 install -d $GOPATH/src
 mv "$@" vendor/src
 
-install -d $GOPATH/src/github.com/mholt
-ln -s ../../../.. $GOPATH/src/github.com/mholt/caddy
+install -d $GOPATH/src/$(dirname %{import_path})
+ln -s ../../../.. $GOPATH/src/%{import_path}
 
 %build
 export GOPATH=$(pwd)/vendor
@@ -50,7 +50,7 @@ export GOPATH=$(pwd)/vendor
 # however only gitTag is relevant for release build
 LDFLAGS="-X main.gitTag=v%{version}"
 
-%gobuild -o caddy.bin
+%gobuild -o %{name}.bin %{import_path}
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.117115 seconds and 4 git commands to generate.