On Wed, 28 Nov 2001 22:02:08 +0800, Peter Santiago wrote:
>Sorry to bother you... If it happens that I would like to recompile Qpopper
>using the SRPM package, how do I make the neccessary modification?
It's not too difficult. First, I recommend rebuilding as a regular
user, not root. Check recent postings on the RPM mailing list for a
thread on how to set this up. (The list can be searched at Google
Groups.)
Then, "install" the SRPM ("rpm -i qpopper-4.0.4-0.1.src.rpm"), which
unpacks the sources (tarball and additional files) and the spec file
(rebuild instructions) into your RPM-building directory tree. You then
rebuild the SRPM into a binary RPM with the command "rpm -ba
qpopper.spec". If you just want to rebuild the SRPM without changing
the build options, use the command "rpm --rebuild
qpopper-4.0.4-0.1.src.rpm". This unpacks the source, builds it, and
packages it, all in one step. This is what I do with the SRPM's I
download from Red Hat.
The spec file is just a text file that describes how to build the
binary RPM from the source tarball and other files. It contains a
configure command to configure Qpopper. Edit that line to meet your own
needs and rebuild the package with "rpm -ba qpopper.spec".
For lots more info on RPM, visit http://www.rpm.org/.
Ken
mailto:[EMAIL PROTECTED]
http://www.sewingwitch.com/ken/
[If answering a mailing list posting, please don't cc me your reply. I'll take my
answer on the list.]