Fix version string?

This commit is contained in:
Alex Manning 2022-11-08 21:11:33 +00:00
parent c8605c786e
commit 69cc392bf7

View file

@ -35,9 +35,10 @@ Gitea
%prep %prep
%autosetup %autosetup
sed -i 's/GITEA_VERSION ?= .*$/GITEA_VERSION = v%version/' Makefile
%build %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\" -X \"main.Version=%{version}\" %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\"
TAGS="bindata" LDFLAGS="%{ldflags}" %{__make} build TAGS="bindata" LDFLAGS="%{ldflags}" %{__make} build
%install %install