Mock question
Kevin Fenzi
kevin-fedora-extras at scrye.com
Mon Feb 6 17:33:12 UTC 2006
>>>>> "Eric" == Eric Tanguy <eric.tanguy at univ-nantes.fr> writes:
Eric> Is mock using buildsys-macros because it seems that %fedora and
Eric> %dist are not filled at least using mock with
Eric> fedora-5-i386-core. Eric
Aren't those variables filled in when you make the src.rpm that you
pass mock to build? I think you need to set them when you make a
src.rpm for it to build.
ie, if you look at what 'make mockbuild' target does:
generate the src.rpm from the spec file, and set dist, etc:
rpmbuild --define "_sourcedir /home/kevin/yourpackage" --define "_builddir /home/kevin/yourpackage" --define "_srcrpmdir /home/kevin/yourpackage" --define "_rpmdir /home/kevin/yourpackage" --define "dist .fc5" --define "fedora 5" --nodeps -bs yourpackage.spec
Now, build it with mock:
mock -r fedora-5-i386-core.cfg --resultdir=/home/kevin/yourpackage/mockbuild /home/kevin/yourpackage/yourpackage-0.1-1.fc5.src.rpm
kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20060206/343fb028/attachment.sig>
More information about the fedora-extras-list
mailing list