<div class="gmail_quote">On Thu, Nov 3, 2011 at 11:55 AM, anil arige <span dir="ltr"><<a href="mailto:arige.anil@gmail.com">arige.anil@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Team, <br><br>Need help in creating a new rpm from a .zip file . The .zip file has few .sql files which needs to be executed when tried to install this rpm. <br></blockquote><div><br>I am not sure to correctly understand your question. Anyway. RPM(or any package manager IMHO) is not so useful for executing something in general, but yes sometime can be useful to have a configuration rpm. <br>
<br>I have written iirc a toy tool for this, it is on github.<br><br>I attach  an example - more complex of your - that create, in particular, a table. The principal point is execute the action in the %pre stanza and abort if the action(s) fail.<br>
<br>Hope this help<br><br>Regards<br><br><br><br><br><br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Can some one some docs related to this. <br>
<br clear="all">
Regards,<br>Anil Bhargav Arige.<br>
<br>_______________________________________________<br>
Rpm-maint mailing list<br>
<a href="mailto:Rpm-maint@lists.rpm.org">Rpm-maint@lists.rpm.org</a><br>
<a href="http://lists.rpm.org/mailman/listinfo/rpm-maint" target="_blank">http://lists.rpm.org/mailman/listinfo/rpm-maint</a><br>
<br></blockquote></div><br>