https://bugzilla.redhat.com/show_bug.cgi?id=2034758
--- Comment #24 from Maxwell G gotmax@e.email --- (In reply to Dave Dykstra from comment #23)
But the documentation https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/rawhide/f/ buildflags.md says that %set_build_flags is automatically called before the %build step, so how would that help?
That is only valid for F36+ and above, so you should still add it.