From ca69664dc91feeb067367d89956fc12ef6aca365 Mon Sep 17 00:00:00 2001 From: Jason Rothstein Date: Tue, 26 Mar 2024 09:08:02 -0500 Subject: [PATCH] Go doesn't like LDFLAGS so drop debug packages Signed-off-by: Jason Rothstein --- gitea.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gitea.spec b/gitea.spec index dd3c4a0..7ec59d3 100644 --- a/gitea.spec +++ b/gitea.spec @@ -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 \