On Thu, 2006-03-30 at 09:23 +0300, Omer Faruk Sen wrote: > Hi, > > I want to build a customized version of a source rpm. I have my own patches > > I do > # rpmbuild -bp --target i686 *.spec > > patch BUILD/PACKAGE and after that when I do rpmbuild -bc --target i686 > it deletes my patched BUILD/Package directory and starts from scratch. How > can I just %build and after that how can I just %install? Since -bc and > -bi also applies -bp (%prep) and deletes my patched source rpm? Add and apply your patches in the spec so that they will be applied when %prep is done. Paul.