<div dir="ltr">Hello,<br><br>I&#39;m creating a &quot;super rpm&quot; which in turn installs other 
rpms, and executes a script and performs non-interactive installation 
(using expect). These are application specific RPMs and are currently 
not available in our rhn/spacewalk channels. These RPMs needs to be 
installed in a specific order and some of them also needs to be 
installed with nodeps (rpm -i --nodeps), since there are missing 
dependencies, and there are vendor instructions to do so.<br>
<br>I&#39;m seeking advise and suggestions on two issues below:<br><br>Issue
 1) What are general Fedora packaging guidelines around creating such an
 RPM? I&#39;m looking to understand what are the caveats 
(non-recommendations) to this approach.<br>
  - I&#39;m not adding a list of these RPMs in the %Requires section of the 
SPEC file because that requires further modification of the 
rhn/spacewalk channels.<br>  - RPM installation will be done in the 
%install section and the script will be run in the %postinstall using 
expect (haven&#39;t looked at this yet)<br>
<br>Issue 2) I went ahead and built this anyway. Please fine snippet from the SPEC file and output here:<br><br><a href="http://fpaste.org/fuK4/">http://fpaste.org/fuK4/</a><br><br>I&#39;m
 not clearing RPM_BUILD_ROOT in my install section, but while building 
it clears it anyway, hence my installation fails since there are not 
rpms there at that time. Is this normal?<br>
<br>So what *should* happen is:<br><br>%prep<br>.. unpacking source<br>.. cp %(_builddir)/foo %(buildroot)<br><br>%install<br>rpm -ivh a.rpm<br><br>But instead:<br>%prep<br>.. unpacking source<br>.. cp %(_builddir)/foo %(buildroot)<br>

<br>%install<br>rm -rf $RPM_BUILD_ROOT<br>.. no rpms to install<br><br>Any advise and suggestions is highly appreciated. - Thanks!</div>