[PATCH] rpm: add conditionals around post scripts