Jay Lee wrote:
Gordon Messmer wrote:
It'd be nice to see this in the FAQ, but don't think it can be made a
standard "BuildRequires" item. It's not available for CentOS 5 x86,
(and I assume RHEL 5 x86). I'm not sure under what situations it is
available and required.
Looks to me like CentOS, Fedora and RHEL all have redhat-rpm-config:
Thanks, Jay. I was looking at this way too early. I thought I did a
"yum search", and I hadn't. I've really got to quit computing in the
morning. :(
The package generally includes all files in /usr/lib/rpm/redhat which
rpmbuild looks at for macros and rc files after looking for the files
in /usr/lib/rpm. I believe the purpose is to allow distribution
specific options to be passed to rpmbuild. rpmbuild will work fine if
all the variables courier.spec uses are defined in the /usr/lib/rpm
files but if they're not (as is the case in CentOS5) then the build
will fail.
I'm using CentOS 5, and my builds went fine. I think the problem is
that "/usr/lib/rpm/ia32e-linux/macros" wasn't present on Wayne's system,
and rpm reported that was the file it was using.
I just downloaded rpm x86_64 from CentOS, and looked at the package
contents. I can see that "/usr/lib/rpm/x86_64-linux/macros" is
included, but rpm is looking for "/usr/lib/rpm/ia32e-linux/macros".
This should be reported to Red Hat as a bug in rpm. That file needs to
be put in a directory which reflects the arch name that rpm is going to
use to locate it later. Duh.
Installing "redhat-rpm-config" fixes things in a roundabout way, but
shouldn't be necessary.