[CentOS] How get a spec preprocesed with all macros expanded.

Tue Mar 27 13:30:23 UTC 2012
Marcos Lois Bermúdez <marcos.discalis at gmail.com>


I need to get a spec file with all macro exanded, so i can extract info 
of some tags, that my be consitional based on macros, i know that some 
rpm utils need to make this to figure out dependencies and so on.

I don't know if is posible to get a preprocesed spec file with actual 
Centos & rpm tools, if this is on librpm, i can make a simple tool to 
make this.