If you already have a source rpm, rather use rpmbuild to automatically apply patches and build rpm. When you install the source rpm, it will create a directory hierarchy in your home directory something like this:<br>BUILD<br>
SOURCES<br>SPEC<br>RPMS<br><br>SOURCES will hold the tar ball and SPEC holds rpm specification file, which is the main file used for building rpm use this file and feed it to rpmbuild command.<br><br># rpmbuild -ba &lt;spec file&gt;<br>
<br>Also refer to maximum rpm, the ultimate reference about rpms: <a href="http://www.rpm.org/max-rpm/">http://www.rpm.org/max-rpm/</a>. I bet you will get everything you need to know about rpm here.<br><br>-Rajat<br><br>
<div class="gmail_quote">On Fri, Sep 28, 2012 at 12:55 PM, K Arun Kumar <span dir="ltr">&lt;<a href="mailto:ziconium03@gmail.com" target="_blank">ziconium03@gmail.com</a>&gt;</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-09-28 at 12:45 +0530, Rahul Bedarkar wrote:<br>
&gt; Can you write command here, how you have applied patches ?<br>
&gt;<br>
</div>I went into the extracted tarball and tried applying patches one after<br>
another like this -<br>
  patch -p1 &lt; ../&lt;patchname&gt;<br>
<div class="im">&gt; Packages (.deb, .rpm and others) meant to build and installed automatically.<br>
&gt;<br>
&gt; You can build and install it by following command<br>
&gt;<br>
&gt; $sudo rpm -i &lt;package-name&gt;<br>
</div>I am just interested in fully-patched source I want to compile and<br>
install it myself without any rpm tools - more clearly -<br>
I want to -<br>
(1) extract the source tarball available with the rpm package<br>
(2) patch this source with all the packages available in the rpm package<br>
(3) configure , build and install this source at *custom* location<br>
<br>
** I do not want to use any rpm tools for this **<br>
<div class="im">&gt; On Fri, Sep 28, 2012 at 11:51 AM, K Arun Kumar &lt;<a href="mailto:ziconium03@gmail.com">ziconium03@gmail.com</a>&gt; wrote:<br>
&gt; &gt; I have a rpm for a module  which I extracted like -<br>
&gt; &gt; rpm2cpio numactl-2.0.7-3.el6.src.rpm | cpio -idmv<br>
&gt; &gt;<br>
&gt; &gt; then I extracted the source like -<br>
&gt; &gt; tar -xzvf numactl-2.0.7-3.tar.gz<br>
&gt; &gt;<br>
&gt; &gt; then I tried to apply all the patches to available with<br>
&gt; &gt; this rpm to the extracted source which results in Hunks and<br>
&gt; &gt; rejections.<br>
&gt; &gt;<br>
&gt; &gt; I want to apply all patches and compile the source and get<br>
&gt; &gt; an exe. I am not much aware of the rpm build procedure<br>
&gt; &gt;<br>
&gt; &gt; I want to do similar thing to kernel source also<br>
&gt; &gt;<br>
&gt; &gt; Please help me...<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt; Arun<br>
&gt; &gt;<br>
</div>Thanks,<br>
<div class="HOEnZb"><div class="h5">Arun<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Kernelnewbies mailing list<br>
&gt; &gt; <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
&gt; &gt; <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br>
<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</div></div></blockquote></div><br>