[WBEL-users] editing and src rpm

Phil Schaffner Philip.R.Schaffner@NASA.gov
Thu, 15 Apr 2004 11:29:14 -0400


On Thu, 2004-04-15 at 10:31, Will Senn wrote:
> Dominic,
> 
> The 'right' way:
> http://freshrpms.net/docs/fight

Nice link.  See you already replied while I was constructing mine.

> 
> my quick and dirty approach has been:
> #install the source
> rpm -ivh whateverSRPM.src.rpm
> 
> #unpack it to the BUILD directory
> rpmbuild -bp SPECS/whatever.spec
> 
> #edit and change
> vi whatever.c
> 
> #rebuild it from SPEC
> rpmbuild -ba whatever.spec

Isn't this going to clobber your changes when it unpacks and patches the
sources, unless you recreate the tarball in BUILD first with the changes
included?  Preferred method is to leave the original tarball alone and
create patches.

Phil