With a bit of work and "out of the box" thinking, I have managed to resolve this by adding a template with a reference to the rpm-q command, and then call that within my recipe.