On Tue, Feb 14, 2006, Bill Campbell wrote: > [...] > Since this is mostly a style issue, can we suggest as a matter of policy > that the substitutions be put in the %build section?
Yes, I vote for doing it this way. > [...] > >I also think the %prep sections should only contain %setup and %patch > >commands because (1) that's how the %prep section AFAIK was intended > >for by the RPM authors (2) the %prep section and especially its %setup > >macro is REALLY DEEP magic (e.g. its expanded "cd" part is sticky and > >automatically duplicates into all other sections, etc) and (3) it also > >simplifies the developer tasks. > > Is there any way to figure this magic out other than reading the rpm source > code? I've assembled some of this magic some time ago in the file openpkg-dev.txt in the CVS. You can read it directly via URL http://cvs.openpkg.org/getfile/openpkg-doc/quickref/openpkg-dev.txt Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org Developer Communication List openpkg-dev@openpkg.org