|
|
@ -3,6 +3,7 @@ |
|
|
|
%define gogs_group git |
|
|
|
%define gogs_group git |
|
|
|
%define gogs_home /var/lib/gogs/ |
|
|
|
%define gogs_home /var/lib/gogs/ |
|
|
|
%define gogs_logdir /var/log/gogs/ |
|
|
|
%define gogs_logdir /var/log/gogs/ |
|
|
|
|
|
|
|
%define debug_package %{nil} |
|
|
|
|
|
|
|
|
|
|
|
Name : gogs |
|
|
|
Name : gogs |
|
|
|
Version : 0.11.79 |
|
|
|
Version : 0.11.79 |
|
|
@ -31,7 +32,7 @@ go get -u github.com/gogs/gogs |
|
|
|
export GOPATH=`pwd` |
|
|
|
export GOPATH=`pwd` |
|
|
|
cd src/github.com/gogs/gogs |
|
|
|
cd src/github.com/gogs/gogs |
|
|
|
git checkout tags/v%{version} |
|
|
|
git checkout tags/v%{version} |
|
|
|
go build -ldflags '-extldflags -s -w' |
|
|
|
go build -ldflags '-extldflags -s -w -buildid %{version}' |
|
|
|
sed -i 's|^STATIC_ROOT_PATH =$|STATIC_ROOT_PATH = /usr/share/gogs/templates/default/|g' conf/app.ini |
|
|
|
sed -i 's|^STATIC_ROOT_PATH =$|STATIC_ROOT_PATH = /usr/share/gogs/templates/default/|g' conf/app.ini |
|
|
|
sed -i 's|^ROOT =$|ROOT = /var/lib/gogs/|g' conf/app.ini |
|
|
|
sed -i 's|^ROOT =$|ROOT = /var/lib/gogs/|g' conf/app.ini |
|
|
|
sed -i 's|^APP_DATA_PATH = data$|APP_DATA_PATH = /var/lib/gogs/data|g' conf/app.ini |
|
|
|
sed -i 's|^APP_DATA_PATH = data$|APP_DATA_PATH = /var/lib/gogs/data|g' conf/app.ini |
|
|
|