Le lundi 06 février 2006 à 11:49 -0600, Rex Dieter a écrit : > Kevin Fenzi wrote: > > > 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 > > No, in the specfile, they're still referenced as %fedora and %dist, not > replaced with hard-coded values. > > -- Rex > So it seems that mock does not use buildsys-macros and i can't understand why ? Eric -- fedora-extras-list mailing list fedora-extras-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-extras-list