<div>Hi all,</div>
<div> </div>
<div>I&#39;m trying to construct a spec file with a few small sources, and I find the rpmbuild macros and documentation (creating and changing directories, unpacking files before or after, etc) impossible to follow. An obvious solution, documented in &quot;Maximum RPM,&quot; is to use the rpmbuild --test option to generate the build scripts, examine them, and tinker the options on %setup and the like until things fall into their slots.</div>

<div> </div>
<div>However, in my version (4.4.2) of rpmbuild, --test gives an &quot;unknown option&quot; error. There is no mention of this in documentation or FAQ, and I found a couple other queries on the web which got no answer. Attempt to use &quot;--nobuild&quot; apparently generates no script. Actually running rpmbuild -bp (in this case) references a script with output like</div>

<div> </div>
<div>Executing(%prep): /bin/sh -e /home/ldickson/ew/ew-dev/rpmbuild/tmp/rpm-tmp.7356<br> </div>
<div>but it presumably deletes it because I can&#39;t find it afterwards. There&#39;s stuff preceded by &quot;+&quot; signs in the output, but this information is incomplete. There&#39;s a script dated Feb 11 that I found in /var/tmp, but I do not know how it got there, and new ones do not appear.</div>

<div> </div>
<div>This is extremely frustrating, because the usual approach of slightly varying an older spec file does not work for me here. The old one had a single source, the new one multiple sources. Can anyone show me how to capture this script?</div>

<div> </div>
<div>Larry Dickson</div>
<div>Cutting Edge Networked Storage</div>