Re: How do I build a modified rpm (Another newbie question)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux