build requires query?

Panu Matilainen pmatilai at laiskiainen.org
Sat Feb 27 11:10:46 UTC 2010


On Wed, 24 Feb 2010, Todd Rinaldo wrote:

> If I want to know what pre-requisites a src.rpm has, I can do
>
> rpm -qpR file.src.rpm
>
> This seems to tell me the Requires values. How can I get the 
> BuildRequires values?

The requires of an src.rpm *are* the BuildRequires. But do note that the 
buildrequires recorded in an src.rpm are subject to build-conditionals 
that were active at the time the src.rpm was generated.

Eg if you have
%ifarch ppc64
BuildRequires: libppc-devel
%endif

...then the requires from src.rpm depend on which arch the src.rpm was 
generated on.

 	- Panu -


More information about the Rpm-list mailing list