The text for CheckMacros suggests that it tests that there are no hardcoded directory paths. However, the actual test is if there is both %{buildroot} and $RPM_BUILD_ROOT.
Test should be splitted into two, one manual for the overall macro usage and one automatic checking %{buildroot} and/or $RPM_BUILD_ROOT.
Fixed in fdd9fc10e60cac and 7c66285835177a5f