SRPM's and determining spec file

Michael Schwendt fedora at wir-sind-cool.org
Tue Oct 5 20:48:54 UTC 2004


On Wed, 06 Oct 2004 06:04:19 +1000, Alan Milligan wrote:

> Not sure if this is the right place to discuss the behaviour of RPM, but
> I'm sure somebody can correct me!
> 
> I have a requirement to determine the spec file from a SRPM so that my
> rpmbuild can be guaranteed to be passed a valid file.
> 
> I'd hoped to just find in the BASENAMES, however, it seems to be
> filtered out when using rpm -q.

rpm -qpl package.src.rpm | grep \.spec

Or maybe I don't understand your problem. ;)

-- 
Fedora Core release 2 (Tettnang) - Linux 2.6.8-1.521
loadavg: 1.02 1.08 1.03




More information about the fedora-devel-list mailing list