Browse Source

caddy update to 2.6.2

Signed-off-by: webbuilder_pel7ppc64lebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64lebuilder0 1 year ago
parent
commit
ce7fe414b6
  1. 4
      SPECS/caddy.spec

4
SPECS/caddy.spec

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
%define debug_package %{nil}

Name : caddy
Version : 2.4.6
Version : 2.6.2
Release : 1%{?dist}
Summary : Fast, multi-platform web server with automatic HTTPS
Group : System/Web
@ -24,7 +24,6 @@ cd go/src/github.com/caddyserver/ @@ -24,7 +24,6 @@ cd go/src/github.com/caddyserver/
git clone https://github.com/caddyserver/caddy



%build
export GOPATH=`pwd`/go
export GO111MODULE=on
@ -32,6 +31,7 @@ cd go/src/github.com/caddyserver/caddy/ @@ -32,6 +31,7 @@ cd go/src/github.com/caddyserver/caddy/
git checkout tags/v%{version}
export SHORTCOMMIT=$(git rev-parse --short HEAD)
export BUILDDATE=$(date +%Y%m%d)
sed 's|h1:Mbb2CkunxAVig7Cr1NymS2NhjeOvkZqLPsfe9ZKMEfk=|h1:hw6+x46vAoB2/93skEhibjL3Ls+dilI+vnFwwHp8ojM=|g' -i go.sum
#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 caddyserver
go build -x -v -trimpath -ldflags "-extldflags" -o caddyserver ./cmd/caddy


Loading…
Cancel
Save