Use versioned dependencies in the RPM spec file

fixes #7017