Added a gemCopySpec utility function

Will be useful for downstream JRuby plugins.