From 3db1e1b4ff496849f51a2c4f2c043efa75c18d62 Mon Sep 17 00:00:00 2001 From: Daniel Steiner Date: Fri, 8 Apr 2022 10:18:03 +0200 Subject: [PATCH] Gitea updated to 1.16.5 --- fedora/SPECS/gitea.spec | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/fedora/SPECS/gitea.spec b/fedora/SPECS/gitea.spec index b16923e..45c9c5f 100644 --- a/fedora/SPECS/gitea.spec +++ b/fedora/SPECS/gitea.spec @@ -1,5 +1,5 @@ Name: gitea -Version: 1.16.4 +Version: 1.16.5 Release: 1%{?dist} Summary: Gitea is a painless self-hosted Git service. %define MyVersion %version @@ -10,7 +10,7 @@ URL: https://gitea.io Source0: %name-%MyVersion.tar.gz Source1: gitea.service -BuildRequires: golang >= 1.8 +BuildRequires: golang >= 1.16 %if 0%{?rhel} >= 8 %else BuildRequires: go-bindata @@ -43,12 +43,14 @@ done %endif %build -#cd ../ -#mkdir src/code.gitea.io -p -#cp -av %name-%{MyVersion} src/code.gitea.io/gitea -#export GOPATH=$(pwd) -#cd src/code.gitea.io/gitea/ +# Fedora only provides golang 1.16, but we require 1.17 in mimimum: +if [ -x /usr/local/go/bin/go ]; then +export PATH=/usr/local/go/bin:$PATH TAGS="bindata" make build +else +echo -e "Please install go from https://golang.org/dl/ into /usr/local/go first, exiting" +exit 1 +fi %install rm -rf $RPM_BUILD_ROOT @@ -82,6 +84,11 @@ getent passwd gitea > /dev/null || \ %changelog +* Fri Apr 8 2022 Daniel Steiner +- This version requires go 1.17 or greater for the build. +- Depends now on /usr/local/go/bin/go installation. +- Update to 1.16.5. + * Fri Mar 18 2022 Daniel Steiner - Update to 1.16.4.