It is impossible to do something like add_changelog -a '--define="php5_version 5.2.5" --define="php5_release alt1.M41.3"' -e '- Rebuilt with php5 5.2.5-alt1.M41.3' php5-*/*.spec without php5-devel isntalled since rpm args are passed only to stamper.
The code in this package is old and somewhat dirty, but patches are welcome, though.
rpm-utils-0.9.13-alt1 -> sisyphus: * Fri Apr 01 2011 Dmitry V. Levin <ldv@altlinux> 0.9.13-alt1 - cleanup_spec: strip -q from %setup (closes: #25011). - add_changelog: pass --args to all "rpm -q --qf" invocations (closes: #22346). - buildreq: added --no-pruned option, enabled --pruned y default. - stamp_spec, add_changelog, packagereq, buildreq: fixed quoting using shell-quote.