Genericise the publish step for RPM Publish