[CentOS] How do I build a modified rpm (Another newbie question)?

Fri Feb 23 09:13:28 UTC 2007
Pierre Bourgin <pierre.bourgin at arteris.com>

Mark Hull-Richter a écrit :
> I made a minor change to the XFS package (in the unpacked source files),
> but I can't figure out which rpmbuild option to use to build from that
> changed source file (instead of re-unpacking all the source files,
> overwriting all the source files, etc.).
> 
> Please assist/explain.

you'd better generate patch files instead of modifying directly source 
files: once generated, you store them in SOURCES/ directory and modify 
the .spec file to include them in the package generation.

good overview of RPM & spec file:
http://www.gurulabs.com/GURULABS-RPM-LAB/GURULABS-RPM-GUIDE-v1.0.PDF

more complete informations about RPM and their generation:
http://www.rpm.org/max-rpm/

 From a mid/long-term perspective, it will be easier for you to manage 
it, especially if you also generate the .src.rpm source package file: it 
will contains your modify .spec file and also the patches you've created.

my $0.02

Pierre