On Dec 14, 2007, at 8:04 AM, Jeff Johnson wrote:
>
> On Dec 14, 2007, at 8:00 AM, Jeff Johnson wrote:
>
>>
>>> 2. query all its SourceX and PatchX header.
>>> How can this be done?
>>> A "rpm -q --specfile *.spec --qf '%{SOURCE0}' didn't worked.
>>>
>>
>
> You also need to use --specsrpm, not --specfile.
>
The other (very sensible) approach taken by mezzanine
(and Michael Jennings) is to --eval the entire specfile
to replace all the bleeping macros, and then parse the
quite regular & predicatble content from the expanded
specfile.
That's a far far far more sensible approach to extracting content
from a recipe than --specfile and --specsrpm and ... will ever be.
73 de Jeff
Received on Fri Dec 14 14:20:58 2007