rpmbuild
Henry Cejtin
henry@sourcelight.com
Thu, 9 Aug 2001 22:52:02 -0500
I don't know where you saw anything about a --macros option since it isn't in
my man pages or in the usage message. I still don't get the problem: is it
just that you can't set the place in ~/.rpmmacros because you don't want to
use it for all of your RPM stuff? If that is the case, the easiest thing to
do (a hack, but easy) is to just change your HOME directory before you run
rpm. I.e., create a directory which has a .rpmmacros file which sets
%_topdir to something, and then do, in bash,
HOME=dir-with-.rpmmacros-file rpm ...
and it will look for stuff there instead of your home directory.
Is this not sufficient (but gross, I admit)?
Note, I always have my .rpmmacros file setting %_topdir to the place that I
build all my RPMs. This place is not specific to the RPM I am building. It
is just my RPM building world.