Mark Hull-Richter
2007-Feb-22 18:19 UTC
[CentOS] How do I build a modified rpm (Another newbie question)?
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. Thanks.
Pierre Bourgin
2007-Feb-23 09:13 UTC
[CentOS] How do I build a modified rpm (Another newbie question)?
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