|
|
|
@ -37,7 +37,7 @@ git checkout tags/v%{version}
@@ -37,7 +37,7 @@ git checkout tags/v%{version}
|
|
|
|
|
export SHORTCOMMIT=$(git rev-parse --short HEAD) |
|
|
|
|
export BUILDDATE=$(date +%Y%m%d) |
|
|
|
|
go build -v -ldflags "-extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid "%{version}" -X 'github.com/gohugoio/hugo/common/hugo.buildDate="$BUILDDATE"' -X 'github.com/gohugoio/hugo/common/hugo.commitHash="$SHORTCOMMIT"'" -o hugo |
|
|
|
|
HUGO_BUILD_TAGS='extended' go build -v -ldflags "-extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid "%{version}" -X 'github.com/gohugoio/hugo/common/hugo.buildDate="$BUILDDATE"' -X 'github.com/gohugoio/hugo/common/hugo.commitHash="$SHORTCOMMIT"'" -o hugo-extended |
|
|
|
|
go build -v -ldflags "-extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid "%{version}" -X 'github.com/gohugoio/hugo/common/hugo.buildDate="$BUILDDATE"' -X 'github.com/gohugoio/hugo/common/hugo.commitHash="$SHORTCOMMIT"'" -tags "extended" -o hugo-extended |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|