|
|
|
@ -3,6 +3,7 @@
@@ -3,6 +3,7 @@
|
|
|
|
|
%define gitea_group git |
|
|
|
|
%define gitea_home /var/lib/gitea/ |
|
|
|
|
%define gitea_logdir /var/log/gitea/ |
|
|
|
|
%define debug_package %{nil} |
|
|
|
|
|
|
|
|
|
Name : gitea |
|
|
|
|
Version : 1.6.1 |
|
|
|
@ -33,7 +34,7 @@ cd src/code.gitea.io/gitea
@@ -33,7 +34,7 @@ cd src/code.gitea.io/gitea
|
|
|
|
|
rm -rf src/code.gitea.io/gitea |
|
|
|
|
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 '-extldflags -s -w' |
|
|
|
|
go build -ldflags '-extldflags -s -w -buildid '%{version} |
|
|
|
|
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 |
|
|
|
|