--- SpecCheck.py +++ SpecCheck.py @@ -223,7 +223,9 @@ continue - if current_section in ('prep', 'build') and \ + if current_section in ('prep', 'build','pre', 'post', 'postun', + 'trigger', 'triggerin', 'triggerprein', 'triggerun', 'triggerpostun', + 'pretrans', 'posttrans') and \ contains_buildroot(line): printWarning(pkg, 'rpm-buildroot-usage', '%' + current_section, line[:-1].strip())