The check_buildarch does not work correctly when the builder is called with the --define argument. Best solution that I could find is in the attachment. Best wishes, -- Kacper Kornet