This tool sounds really handy for clever tricks (and horrid hacks) http://www.redhatmagazine.com/2007/12/04/hacking-rpms-with-rpmrebuild/
Basically you can modify the spec file inside an rpm on the fly, or rebuild a package from the existing files on your system (with your customized settings files, for example). Nice.