jordansissel/fpm — pull request #126 by ohookins (2011-11-23 23:19:59+00:00)
Title: Allow RPM generation to specify configuration files.

Right now --config-files is ignored for the rpm target, so this patch pulls each referenced file into the %files section prefaced by %config. If it was already listed in the sources path array it will be removed from there as files cannot be listed twice in the spec (at least without rpmbuild complaining bitterly).

As a general principle I think there should be tests for this but the current framework is a bit hard to manage. It should be possible to test the template outputs with given inputs pretty easily if Test::Unit or Rspec were in place but I'm hesistant to make that part of this patch. If desired I'll submit another pull request with support for either framework added.