|
|
@ -30,7 +30,7 @@ go get -u github.com/gogits/gogs |
|
|
|
%build |
|
|
|
%build |
|
|
|
export GOPATH=`pwd` |
|
|
|
export GOPATH=`pwd` |
|
|
|
cd src/github.com/gogits/gogs |
|
|
|
cd src/github.com/gogits/gogs |
|
|
|
git checkout -b v%{version} |
|
|
|
git checkout tags/v%{version} |
|
|
|
go build |
|
|
|
go build |
|
|
|
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 |
|
|
|