<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 30, 2012 at 10:54 PM, Adam Williamson <span dir="ltr"><<a href="mailto:awilliam@redhat.com" target="_blank">awilliam@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, 2012-11-30 at 17:24 +0100, Nicolas Mailhot wrote:<br>
> Le Ven 30 novembre 2012 15:11, Mark Bidewell a écrit :<br>
> > I have been working on packaging software into RPMs for my company. These<br>
> > RPMs create directories in %post into which dependent RPMs install<br>
> > components.<br>
><br>
> You need to create those directories in %install and have your package own<br>
> them in %files, and have dependant rpms depend on your package then<br>
> everything will work fine<br>
<br>
</div>Or for bonus points, the app itself ought to create the directories in<br>
the first place, if they're associated with the app. Packages should<br>
only create directories for stuff that's added as part of the package,<br>
not part of the software per se - say, you're including a convenience<br>
script which is not upstream, or moving the icons around, or something.<br>
<span class="HOEnZb"><font color="#888888">--<br>
Adam Williamson<br>
Fedora QA Community Monkey<br>
IRC: adamw | Twitter: AdamW_Fedora | <a href="http://identi.ca" target="_blank">identi.ca</a>: adamwfedora<br>
<a href="http://www.happyassassin.net" target="_blank">http://www.happyassassin.net</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
devel mailing list<br>
<a href="mailto:devel@lists.fedoraproject.org">devel@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/devel" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/devel</a></div></div></blockquote></div><br>Here is the setup we have. </div><div class="gmail_extra">
1) An RPM which creates a raw JBoss install </div><div class="gmail_extra">2) An RPM which sets up a specialized server config (based on the default config from 1) with common configuration</div><div class="gmail_extra">
3) RPMs containing WARs (and configuration).</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">The reason we encounter the CentOS 5 bug is that the when the RPM in 2 uninstalls, it removes the server config and with it the WARs from 3. Is there a better way?</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Thanks<br clear="all"><div><br></div>-- <br>Mark Bidewell<br><a href="http://www.linkedin.com/in/markbidewell">http://www.linkedin.com/in/markbidewell</a><br>
</div>