def _read(self, spec_path, product_name):
matches = []<EOL>with codecs.open(spec_path, '<STR_LIT:r>') as f:<EOL><INDENT>for entry in json.loads(f.read()):<EOL><INDENT>if product_name in entry.get('<STR_LIT>'):<EOL><INDENT>matches.append(entry)<EOL><DEDENT><DEDENT><DEDENT>return matches<EOL>
Reads the spec files and extracts the concrete product spec.
:param spec_path:
:param product_name:
:return: