Add version to gitea.

This commit is contained in:
Alex Manning 2022-11-08 16:59:47 +00:00
parent badd49f99c
commit c8605c786e

View file

@ -1,5 +1,5 @@
%global forgeurl https://github.com/go-gitea/gitea
Version: 1.16.4
Version: 1.17.3
%forgemeta
@ -37,7 +37,7 @@ Gitea
%autosetup
%build
%global ldflags -X \"code.gitea.io/gitea/modules/setting.CustomPath=/etc/gitea/\" -X \"code.gitea.io/gitea/modules/setting.AppWorkPath=/var/lib/gitea\" -X \"code.gitea.io/gitea/modules/setting.StaticRootPath=/var/lib/gitea/static\" -X \"code.gitea.io/gitea/modules/setting.PIDFile=/run/gitea/gitea.pid\"
%global ldflags -X \"code.gitea.io/gitea/modules/setting.CustomPath=/etc/gitea/\" -X \"code.gitea.io/gitea/modules/setting.AppWorkPath=/var/lib/gitea\" -X \"code.gitea.io/gitea/modules/setting.StaticRootPath=/var/lib/gitea/static\" -X \"code.gitea.io/gitea/modules/setting.PIDFile=/run/gitea/gitea.pid\" -X \"main.Version=%{version}\"
TAGS="bindata" LDFLAGS="%{ldflags}" %{__make} build
%install