On Mon, 30 May 2005, Jos Vos wrote:
On Mon, May 30, 2005 at 11:07:54AM +0300, Panu Matilainen wrote:
BuildRequires can vary between architectures, SRPM built on x86 might have
somewhat different requirements than SRPM built on s390 for example.
The BuildRequires is meant for generating the *binary* rpms and should
be only checked when generating a binary rpm.
That they are now also checked if you do *only* a "rpmbuild -bs" is
another issue, but "-bs --nodeps" is an easy workaround.
If you put BuildRequires between %ifarch's, the same src.rpm works
fine on different architectures.
That's the point I was making: the SRPM can have different requirements
across architectures if you check it's dependencies for example for
purposes of installing build dependencies of a given SRPM. So the SRPM
can have differences based on the arch it was built on, hence the arch of
an SRPM does have *some* meaning to it. :)
- Panu -