Go doesn't like LDFLAGS so drop debug packages

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
Jason Rothstein 2024-03-26 09:08:02 -05:00
parent ce7afd32ca
commit ca69664dc9

View File

@ -2,10 +2,16 @@ ExclusiveArch: %{go_arches}
%if 0%{?el8}
%global debug_package %{nil}
%endif
%if 0%{?fc38}
%global debug_package %{nil}
%endif
%if 0%{?fc39}
%global debug_package %{nil}
%endif
Name: gitea
Version: 1.19.4
Release: 0%{?dist}
Release: 1%{?dist}
Summary: Gitea: Git with a cup of tea
License: MIT
@ -30,12 +36,11 @@ Requires: git
%build
sed -i -e 's/-s -w //g' Makefile
export LDFLAGS=`echo ${LDFLAGS} | sed -i -e 's/-Wl,-z,relro //g'`
unset LDFLAGS
make \
TAGS="bindata pam sqlite sqlite_unlock_notify"\
DRONE_TAG="%{version}-%{release}" \
GOFLAGS='-a' \
build
sed -i \