Can I use rpm to expand the macros in a specfile?

Viewed 12909

The concrete example being I have lots of specfiles with Source0: or other Source lines containing macros. How can I have these macros expanded without actually starting a build on the specfile or writing my own parser?

5 Answers
Related