RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Another strange request

From: Jeff Johnson <n3npq@mac.com>
Date: Fri 14 Dec 2007 - 14:20:00 CET
Message-Id: <0BAAB965-00B0-4A65-A1B4-F2EFD99ECE8A@mac.com>

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
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.