From b3f4e4f8d9d4163fd6491a7668ab4fc140df8868 Mon Sep 17 00:00:00 2001 From: webbuilder_pel7x64builder0 Date: Sun, 18 Aug 2019 15:42:56 +0200 Subject: [PATCH] gitea change build command Signed-off-by: webbuilder_pel7x64builder0 --- SPECS/gitea.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPECS/gitea.spec b/SPECS/gitea.spec index a057668..6a89ed5 100644 --- a/SPECS/gitea.spec +++ b/SPECS/gitea.spec @@ -34,7 +34,7 @@ cd src/code.gitea.io/gitea rm -rf src/code.gitea.io/gitea git checkout tags/v%{version} sed -i 's|^var Version = "1.[0-9].[0-9]-dev"$|var Version = "'%{version}'"|g' main.go -go build -ldflags '-extldflags -s -w -buildid '%{version} +GO111MODULE=on go build -v -ldflags '-extldflags -s -w -buildid '%{version}' -X "main.Version='%{version}'"' sed -i 's|^STATIC_ROOT_PATH =$|STATIC_ROOT_PATH = /usr/share/gitea/templates/default/|g' custom/conf/app.ini.sample sed -i 's|^ROOT =$|ROOT = /var/lib/gitea/repositories/|g' custom/conf/app.ini.sample sed -i 's|^APP_DATA_PATH = data$|APP_DATA_PATH = /var/lib/gitea/data|g' custom/conf/app.ini.sample