Make version specification work with "pkgs" (yum)

This makes yumpkg{,5}.py ready for #3278. It also makes version
specification for single-package installs work in yumpkg5.py.