|
|
@ -5,7 +5,7 @@ |
|
|
|
%define gitea_logdir /var/log/gitea/ |
|
|
|
%define gitea_logdir /var/log/gitea/ |
|
|
|
|
|
|
|
|
|
|
|
Name : gitea |
|
|
|
Name : gitea |
|
|
|
Version : 1.15.7 |
|
|
|
Version : 1.16.4 |
|
|
|
Release : 1%{dist} |
|
|
|
Release : 1%{dist} |
|
|
|
License : MIT |
|
|
|
License : MIT |
|
|
|
URL : http://gitea.io |
|
|
|
URL : http://gitea.io |
|
|
@ -34,7 +34,8 @@ export GOPATH=`pwd` |
|
|
|
cd src/github.com/go-gitea/gitea |
|
|
|
cd src/github.com/go-gitea/gitea |
|
|
|
git checkout tags/v%{version} |
|
|
|
git checkout tags/v%{version} |
|
|
|
### BACKEND - golang |
|
|
|
### BACKEND - golang |
|
|
|
sed -i 's|^var Version = "1.[0-9].[0-9]-dev"$|var Version = "'%{version}'"|g' main.go |
|
|
|
sed 's|^var Version = "1.[0-9].[0-9]-dev"$|var Version = "'%{version}'"|g' -i main.go |
|
|
|
|
|
|
|
sed 's|h1:NCWpmDDNjHNsrei6VmnYXzOiyZUxV8LVU19REGQ8dKA=|h1:CRDpKE90NuksNOWe7qjq1JHh7yonOht8f7rzAJQSDhc=|' -i go.sum |
|
|
|
GO111MODULE=on go build -v -ldflags "-extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid "%{version}" -X 'main.Version="%{version}"' -X 'main.MakeVersion="%{release}"'" |
|
|
|
GO111MODULE=on go build -v -ldflags "-extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid "%{version}" -X 'main.Version="%{version}"' -X 'main.MakeVersion="%{release}"'" |
|
|
|
### FRONTEND - nodejs |
|
|
|
### FRONTEND - nodejs |
|
|
|
make frontend V=1 |
|
|
|
make frontend V=1 |
|
|
|