@ -24,14 +24,14 @@ Gogs(Go Git Service) is a painless self-hosted Git Service written in Go.
@@ -24,14 +24,14 @@ Gogs(Go Git Service) is a painless self-hosted Git Service written in Go.
%prep
%setup -T -q -c %{name}-%{version}
export GOPATH=`pwd`
go get -u github.com/gogits/gogs
go get -u github.com/gogs/gogs
%build
export GOPATH=`pwd`
cd src/github.com/gogits/gogs
cd src/github.com/gogs/gogs
git checkout tags/v%{version}
go build
go build -ldflags '-extldflags -s -w'
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|^APP_DATA_PATH = data$|APP_DATA_PATH = /var/lib/gogs/data|g' conf/app.ini