code: def _spec_to_globs(address_mapper, specs):
    
    patterns = set()
    for spec in specs:
      patterns.update(spec.make_glob_patterns(address_mapper))
    return PathGlobs(include=patterns, exclude=address_mapper.build_ignore_patterns)
docs: Given a Specs object, return a PathGlobs object for the build files that it matches.