Improve RPM spec template
This PR makes some generic improvements to the RPM spec file template, mainly in adding some sanity check tests in the %check
section, which requires having all of the runtime dependencies declared as BuildRequires
as well.