def parse_nvra(nvra):
if nvra.endswith("<STR_LIT>"):<EOL><INDENT>nvra = nvra[:-<NUM_LIT:4>]<EOL><DEDENT>result = RPM_NVRA_RE.match(nvra).groupdict()<EOL>result["<STR_LIT>"] = result["<STR_LIT>"] or <NUM_LIT:0><EOL>result["<STR_LIT>"] = int(result["<STR_LIT>"])<EOL>return result<EOL>
Parse RPM N-E:V-R.A string to a dict.

:param nvra: N-E:V-R.A string. This can be a file name or a file path including the '.rpm' suffix.
:type nvra: str
:rtype: dict, with "name", "epoch", "version", "release", and "arch" elements.