Browse Source

gitea upstream update

Signed-off-by: webbuilder_pel7ppc64bebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64bebuilder0 6 years ago
parent
commit
59fa87219d
  1. 6
      SPECS/gitea.spec

6
SPECS/gitea.spec

@ -5,7 +5,7 @@
%define gitea_logdir /var/log/gitea/ %define gitea_logdir /var/log/gitea/


Name : gitea Name : gitea
Version : 1.4.0 Version : 1.5.0
Release : 1%{dist} Release : 1%{dist}
License : MIT License : MIT
URL : http://gitea.io URL : http://gitea.io
@ -31,9 +31,9 @@ go get -u code.gitea.io/gitea
export GOPATH=`pwd` export GOPATH=`pwd`
cd src/code.gitea.io/gitea cd src/code.gitea.io/gitea
rm -rf src/code.gitea.io/gitea rm -rf src/code.gitea.io/gitea
git checkout -b v%{version} git checkout tags/v%{version}
sed -i 's|^var Version = "1.[0-9].[0-9]-dev"$|var Version = "'%{version}'"|g' main.go sed -i 's|^var Version = "1.[0-9].[0-9]-dev"$|var Version = "'%{version}'"|g' main.go
go build -ldflags '-s -w' go build -ldflags '-extldflags -s -w'
sed -i 's|^STATIC_ROOT_PATH =$|STATIC_ROOT_PATH = /usr/share/gitea/templates/default/|g' custom/conf/app.ini.sample 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|^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 sed -i 's|^APP_DATA_PATH = data$|APP_DATA_PATH = /var/lib/gitea/data|g' custom/conf/app.ini.sample

Loading…
Cancel
Save