jordansissel/fpm — Issue #162: Support automated post-processing of spec files
Author: jaymzh
Created: 2012-02-24 18:36:14+00:00
State: open

I'd like an option to be able to run a script on a spec file before building the RPM (along the lines of -e, but more automated).

Background: I have a script that uses FPM to build a bunch of gems, and but the requirements all need tweaking so it does stuff like echo out "You're about to get dumped into vim, please modify the Requires lines by doing XYZ" for each RPM it builds, which is nasty. If I could have a sed script with the right bits and say "--spec-post-processor=./somescript.sh" that would be awesome!