improvement to, was: topdir

Richard Siddall richard.siddall at
Fri Aug 3 18:10:08 IST 2007

Jos Vos wrote:
> On Fri, Aug 03, 2007 at 11:46:26AM -0500, Steven Osborn wrote:
>> I'm running rpmbuild from a script, is there anyway to tell rpmbuild to 
>> use an rpmmacro file I specify?  I see how to specify my own spec file, 
>> but  that's not exactly doing the trick.
> A trick you can use is set $HOME to some temp dir, in which you
> generate dynamically the .rpmmacros you wish.


The above e-mail was just posted to the RPM discussion list and contains 
a technique MailScanner's script might use to avoid modifying 
the user's .rpmmacros, namely setting $HOME to a temp dir and writing 
the .rpmmacros in there.

If it's generally possible to do this, it might make running the install 
script less intrusive.


	Richard Siddall

More information about the MailScanner mailing list