passing macros into mock

Rex Dieter rdieter at math.unl.edu
Fri May 5 14:35:35 UTC 2006


Tim Jackson wrote:

> Rex Dieter wrote:
>> Tim Jackson wrote:
>>> Is there any way (not in the live buildsys, but locally for testing
>>> purposes) to pass a macro that isn't normally defined into a mock build
>>> environment? I was hoping to do something like:
>>> mock --define "something 123" blah.src.rpm

>> Put
>> %define something 123
>> at the top of the specfile?

> Sorry, I thought it was implicit but perhaps I should have added
> "...without rebuilding the SRPM". Like when you do "rpmbuild --define
> 'foo bar' something.src.rpm".

AFAIK, mock currently does not have the ability to do that.

-- Rex




More information about the fedora-extras-list mailing list