From Bugzilla Helper: User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i686) Using BuildArch: or BuildArchitectures: tag in spec file changes the rpm query output in the following way: 1. When the spec file contains several packages, 'rpm -q --specfile' lists only the name/version of the main one. Expanded names of the sub packages are not included like they are when "BuildArch" is not used. 2. 'rpm -q --queryformat "%{ARCH}"' returns "(none)" rather than the real build architecture. Reproducible: Always Steps to Reproduce: 1.Take a simple spec file containing at least one %package directive, but no BuildArch: 2.rpm -q --specfile <spec file name> 3.Insert 'BuildArch: noarch' in package headers. 4.Repeat 2.
*** Bug 30650 has been marked as a duplicate of this bug. ***
I am having similar problems. With 'BuildArchitecture: noarch', the ouput of rpm -q --changelog --specfile <file> returns nothing.
Fixed in rpm-4.0.3-0.15 (be careful if you upgrade, there's still known bugs for rpm > 4.0.3-0.6, you might want to fish out the changes in build/parseSpec.c and apply to rpm-4.0.2 if needed).