All these years I've avoided building RPMs like the plague - if an RPM
didn't suit me, I'd just build from source in the good old fashioned way.
But I've just started working with amanda and I need to make a small change
so I decided that I'd combine that with learning about RPM building. So I
RTFM and I read about rpm --rebuild <source_package_file>+ and that worked
nicely (after I installed gnuplot and plotutils, although the amanda binary
RPM installed happily without them).
Now to work backwards and try to do the process in stages so that I'll have
a chance to make the changes I need. So, rpm -bp works fine but rpm -bl
fails miserably - I'm guessing that that's not appropriate at this point.
Now it appears that I need to do rpm -bc (effectively make) and rpm -bi
(effectively make install in /var/tmp/amanda-root) and then finally rpm -bb
to build the binary package.
Questions now are if my understanding as outline above is correct, and when
can I make the changes I need to make (just to run configure with some
options). I'm guessing that the -bc stage is where configure is run (or is it
run at all - is part of building an RPM running configure with appropriate
options so that you get the Makefile you want - told you I was an RPM
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!