Fix version string?
This commit is contained in:
parent
c8605c786e
commit
69cc392bf7
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue