(#19875) Spec improvements.

Specing rpm/dpkg parser tests through public query calls rather than the
private parser methods.

Removed a redundant expression of hash in Rpm#nevra_to_hash.