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 <spec file><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"><<a href="mailto:ziconium03@gmail.com" target="_blank">ziconium03@gmail.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-09-28 at 12:45 +0530, Rahul Bedarkar wrote:<br>
> Can you write command here, how you have applied patches ?<br>
><br>
</div>I went into the extracted tarball and tried applying patches one after<br>
another like this -<br>
patch -p1 < ../<patchname><br>
<div class="im">> Packages (.deb, .rpm and others) meant to build and installed automatically.<br>
><br>
> You can build and install it by following command<br>
><br>
> $sudo rpm -i <package-name><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">> On Fri, Sep 28, 2012 at 11:51 AM, K Arun Kumar <<a href="mailto:ziconium03@gmail.com">ziconium03@gmail.com</a>> wrote:<br>
> > I have a rpm for a module which I extracted like -<br>
> > rpm2cpio numactl-2.0.7-3.el6.src.rpm | cpio -idmv<br>
> ><br>
> > then I extracted the source like -<br>
> > tar -xzvf numactl-2.0.7-3.tar.gz<br>
> ><br>
> > then I tried to apply all the patches to available with<br>
> > this rpm to the extracted source which results in Hunks and<br>
> > rejections.<br>
> ><br>
> > I want to apply all patches and compile the source and get<br>
> > an exe. I am not much aware of the rpm build procedure<br>
> ><br>
> > I want to do similar thing to kernel source also<br>
> ><br>
> > Please help me...<br>
> ><br>
> > Regards,<br>
> > Arun<br>
> ><br>
</div>Thanks,<br>
<div class="HOEnZb"><div class="h5">Arun<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>
<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>