gastonelhordoy/grunt-rpm — pull request #8 by jamesboehmer (2014-04-15 00:39:44+00:00)
Title: Preserve file mode when copying to the build root

grunt.file.copy streams the bits around without carrying over the mode. I modified the task to use the core fs module to read the mode from the source and set it on the destination. Now you do not need to specify explicit attributes for single %files, nor do you need to run chmod in your %post script, since a glob pattern will capture everything you need.

This can likely be retired once https://github.com/gruntjs/grunt/pull/732 gets merged.