RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [CVS] RPM: rpm/ CHANGES rpm/build/ spec.c

From: Jeff Johnson <n3npq@mac.com>
Date: Sun 01 Jun 2008 - 20:23:15 CEST
Message-id: <D9E0B986-DCA7-4567-9146-3F7C67BA7686@mac.com>
Hmmm, this change may be useful to someone, so I should supply some  
context.

There's now a way to extract macro expanded build scriptlet bodies  
from spec
files using --query.

I'll append the output of
     rpm -q --yaml --specsrpm ../popt/popt.spec > /tmp/popt.yaml
to illustrate.

(aside) And a careful eye will notice several --yaml output issues
in the attached popt.yaml spew that are still in need of fixing.

Please note that
     rpm --eval "`cat popt.spec`"
achieves the same macro expanded spec file goal. The --eval command  
is easier
to remember, and the output includes comments etc and so is easier to  
read imho.

But YMMV, everyone's does.

hth

73 de Jeff


On Jun 1, 2008, at 2:03 PM, Jeff Johnson wrote:

>   RPM Package Manager, CVS Repository
>   http://rpm5.org/cvs/
>    
> ______________________________________________________________________ 
> ______
>
>   Server: rpm5.org                         Name:   Jeff Johnson
>   Root:   /v/rpm/cvs                       Email:  jbj@rpm5.org
>   Module: rpm                              Date:   01-Jun-2008  
> 20:03:08
>   Branch: HEAD                             Handle: 2008060118030800
>
>   Modified files:
>     rpm                     CHANGES
>     rpm/build               spec.c
>
>   Log:
>     - jbj: add expanded build scripts for --specsrpm --queryformat
>     spewage.
>


  • application/octet-stream attachment: popt.yaml
Received on Sun Jun 1 20:23:36 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.