Fix bug 1101779

RPM can't handle directories being replaced by symlinks and
thus %pretrans workaround is needed.

Credit: Troy Dawson
Merge pull request #5454 from VojtechVitek/fix_ruby_rpm

Merged by openshift-bot