Index: SpecCheck.py =================================================================== --- SpecCheck.py.orig +++ SpecCheck.py @@ -29,7 +29,7 @@ applied_patch_regex = re.compile("^%patc applied_patch_p_regex = re.compile("\s-P\s+(\d+)\\b") source_dir_regex = re.compile("^[^#]*(\$RPM_SOURCE_DIR|%{?_sourcedir}?)") obsolete_tags_regex = re.compile("^(Copyright|Serial)\s*:\s*([^\s]+)") -buildroot_regex = re.compile('Buildroot\s*:\s*([^\s]+)', re.IGNORECASE) +buildroot_regex = re.compile('^\s*Buildroot\s*:\s*([^\s]+)', re.IGNORECASE) prefix_regex = re.compile('^Prefix\s*:\s*([^\s]+)', re.IGNORECASE) packager_regex = re.compile('^Packager\s*:\s*([^\s]+)', re.IGNORECASE) noarch_regex = re.compile('^BuildArch(?:itectures)?\s*:\s*\\bnoarch\\b', re.IGNORECASE)