On 20/7/07 13:08, "Paul Howarth" <paul(a)city-fan.org> wrote:
Try this:
config_opts['macros'] = """
%%_topdir %s/build
%%_rpmfilename %%%%{NAME}-%%%%{VERSION}-%%%%{RELEASE}.%%%%{ARCH}.rpm
%%_dist bbc_gems
""" % config_opts['chroothome']
Interesting, thanks, it worked a treat.
But, why do I have to set so many values: aren't _topdir and _rpmfilename
set elsewhere?
The mock source makes it look like setting config_opts['macros'] simply
prepends the string to a ~/.rpmmacros file, which I would've thought
wouldn't cause other things to be, what, undefined or redefined...
Thanks,
Matt
--
Matt Patterson
Senior Software Engineer, BBC Audio & Music Interactive
http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are
not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and
notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.