rpmbuild is failing with extra debug files

Getting messages like:

    Installed (but unpackaged) file(s) found:

Related tags: Linux

Add the following code to your ~/.rpmmacros

%debug_package          %{nil} 

Rating: 1

Propose a different solution...