--- rpmlint-rpmlint-1.10.orig/SpecCheck.py +++ rpmlint-rpmlint-1.10/SpecCheck.py @@ -235,7 +235,9 @@ class SpecCheck(AbstractCheck.AbstractCh 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())