bernd/fpm-cookery — pull request #3 by lusis (2011-10-25 18:51:29+00:00)
Title: Fixing for issue bernd/fpm-cookery#2

Here's the pull request. Right now it's using attributes as opposed to methods. I waffled between being opinionated on it being a new boolean attribute and just looking for files called `preinst`, `postinst`, etc. vs. allowing explicit naming. I went with the explicit naming for flexibility.

One limitation is that the CLI is build to look in the parent of the build directory for the named scripts. This should probably leverage the path better.

I've tested this myself and you can see the `rpm -qp --scripts` output here:

[rpmbuild@localhost brisk]$ rpm -qp --scripts /home/rpmbuild/packages/recipes/brisk/pkg/cassandra-brisk-1.0_beta2+va0.noarch.rpm
preinstall scriptlet (using /bin/sh):
I should do something here before installing.
postinstall scriptlet (using /bin/sh):
I should do something here after installing
[rpmbuild@localhost brisk]$