I've found something weird here, I think.

In the menu .spec file it says the following:

BuildRequires:  ImageMagick
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gettext
BuildRequires:  texinfo
*%ifnarch alpha
BuildRequires:  gcc-c++
%else
BuildRequires:  egcs-c++
%endif*


One would expect that if you do a rpm -qpR on the iX86 and alpha systems 
that they would differ, but this isn't the case:

[stefan@taz buildout]$ rpm -qpR 
/mirrors/cooker/SRPMS/menu-2.1.5-86mdk.src.rpm
ImageMagick 
autoconf 
automake 
gettext 
texinfo 
*gcc-c++  *
rpmlib(CompressedFileNames) <= 3.0.4-1
[stefan@taz buildout]$ uname -a
Linux taz.eijk.nu 2.4.16-11ste #1 Sat Dec 29 18:11:03 HKT 2001 *i686* 
unknown
[stefan@taz buildout]$

[stefan@alpha stefan]$ rpm -qpR 
/mirrors/cooker/SRPMS/menu-2.1.5-86mdk.src.rpm
ImageMagick 
autoconf 
automake 
gettext 
texinfo 
*gcc-c++* 
rpmlib(CompressedFileNames) <= 3.0.4-1
[stefan@alpha stefan]$ uname -a
Linux alpha 2.4.17-7mdk #1 Sun Jan 20 10:14:45 EST 2002 *alpha* unknown

Should I use a different command (which command?) to get the Requires 
for that package, and let it parse the ifnarch stuff? Or is this a bug 
in rpm?

With kind regards,

Stefan


Reply via email to