Fix several issues with the spec file used for building RPM installers