From bfa3d3a3919757092dca156bbcb90cd6afcc647f Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Jan 15 2022 07:32:30 +0000 Subject: Workaround `%generate_buildrequires` debug_package issue Signed-off-by: Maxwell G --- diff --git a/go2rpm/templates/profile1.spec b/go2rpm/templates/profile1.spec index 886064b..394069d 100644 --- a/go2rpm/templates/profile1.spec +++ b/go2rpm/templates/profile1.spec @@ -1,5 +1,8 @@ # Generated by go2rpm {{ generator_version }} %bcond_without check +{% if not has_cmd and main_cmd is none and other_cmd|length == 0 and generate_buildrequires %} +%global debug_package %{nil} +{% endif %} # {{ forge }} %global goipath {{ goipath }} diff --git a/go2rpm/templates/profile2.spec b/go2rpm/templates/profile2.spec index 3d0bd9e..c41c083 100644 --- a/go2rpm/templates/profile2.spec +++ b/go2rpm/templates/profile2.spec @@ -1,5 +1,8 @@ # Generated by go2rpm {{ generator_version }} %bcond_without check +{% if not has_cmd and main_cmd is none and other_cmd|length == 0 and generate_buildrequires %} +%global debug_package %{nil} +{% endif %} # {{ forge }} %global goipath {{ goipath }}