Go doesn't like LDFLAGS so drop debug packages
Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
parent
ce7afd32ca
commit
ca69664dc9
11
gitea.spec
11
gitea.spec
@ -2,10 +2,16 @@ ExclusiveArch: %{go_arches}
|
|||||||
%if 0%{?el8}
|
%if 0%{?el8}
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?fc38}
|
||||||
|
%global debug_package %{nil}
|
||||||
|
%endif
|
||||||
|
%if 0%{?fc39}
|
||||||
|
%global debug_package %{nil}
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: gitea
|
Name: gitea
|
||||||
Version: 1.19.4
|
Version: 1.19.4
|
||||||
Release: 0%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Gitea: Git with a cup of tea
|
Summary: Gitea: Git with a cup of tea
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -30,12 +36,11 @@ Requires: git
|
|||||||
%build
|
%build
|
||||||
sed -i -e 's/-s -w //g' Makefile
|
sed -i -e 's/-s -w //g' Makefile
|
||||||
|
|
||||||
export LDFLAGS=`echo ${LDFLAGS} | sed -i -e 's/-Wl,-z,relro //g'`
|
unset LDFLAGS
|
||||||
|
|
||||||
make \
|
make \
|
||||||
TAGS="bindata pam sqlite sqlite_unlock_notify"\
|
TAGS="bindata pam sqlite sqlite_unlock_notify"\
|
||||||
DRONE_TAG="%{version}-%{release}" \
|
DRONE_TAG="%{version}-%{release}" \
|
||||||
GOFLAGS='-a' \
|
|
||||||
build
|
build
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user