diff --git a/coreutils.spec b/coreutils.spec index 6195358..2b93e66 100644 --- a/coreutils.spec +++ b/coreutils.spec @@ -18,16 +18,19 @@ %bcond_with ringdisabled -%global build_flavor @BUILD_FLAVOR@%{nil} -%if "%build_flavor" == "" -%undefine build_flavor +# there are more fancy ways to define a package name using magic +# macros but OBS and the bots that rely on parser information from +# OBS can't deal with all of them +%if "@BUILD_FLAVOR@" == "" +%define name coreutils %else +%define name coreutils-@BUILD_FLAVOR@ %if %{with ringdisabled} ExclusiveArch: do_not_build %endif %endif -Name: coreutils%{?build_flavor:-%build_flavor} +Name: %name Summary: GNU Core Utilities License: GPL-3.0-or-later Group: System/Base