|
|
|
@ -5,7 +5,7 @@
@@ -5,7 +5,7 @@
|
|
|
|
|
%define gitea_logdir /var/log/gitea/ |
|
|
|
|
|
|
|
|
|
Name : gitea |
|
|
|
|
Version : 1.4.0 |
|
|
|
|
Version : 1.5.0 |
|
|
|
|
Release : 1%{dist} |
|
|
|
|
License : MIT |
|
|
|
|
URL : http://gitea.io |
|
|
|
@ -31,9 +31,9 @@ go get -u code.gitea.io/gitea
@@ -31,9 +31,9 @@ go get -u code.gitea.io/gitea
|
|
|
|
|
export GOPATH=`pwd` |
|
|
|
|
cd 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 |
|
|
|
|
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|^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 |
|
|
|
|