SRPM's and determining spec file

Michael Schwendt fedora at wir-sind-cool.org
Wed Oct 6 18:47:02 UTC 2004


On Wed, 6 Oct 2004 14:10:30 -0400, Matthew Miller wrote:

> > rpm -qpl package.src.rpm | grep \.spec
> 
> What do you do if there's more than one spec file?

Okay, okay. So, multiple additional spec files as %{SOURCEX} values?
Then I would use something like this

  $ rpm -qp package.src.rpm --qf '[%{basenames}\n]' \
    grep -v "$(rpm -qp package.src.rpm --qf '[%{source}\n]')"

or process the output with some scripting language (if need be).

-- 
Fedora Core release 2 (Tettnang) - Linux 2.6.8-1.521
loadavg: 1.69 1.20 1.08




More information about the devel mailing list