On Wed, 22 Dec 2004, Timothy Murphy wrote:
> but the simplest way to compile from a source rpm
> is to install the rpm with "rpm -Uvh ..." or whatever,
> and then use rpmbuild to work from the SPEC file, something like
> "rpmbuild -ba ../SPECS/xorg-x11.spec"
Even easier:
rpmbuild --rebuild <whatever it is>.src.rpm
Which should result in the rpm's being deposited in RPMS/<arch>/
- the paths will be printed out at the end of the rpm build
process.
Some projects include the spec file in their source tar.{gz,bz2}'s,
for those you can do:
rpmbuild -tb <whatever it is>.tar.{gz.bz2}
rpmbuild will do all the rest.
Building rpms, or any software, as root is incredibly bad practice,
so either give a normal user permissions on /usr/src/rpm, or put the
following in ~/.rpmmacros for your normal user account:
%_topdir /whereever/rpm
Eg, I define it to /home/paul/rpm. You'll need to make the same RPMS,
SRPMS, SOURCES, BUILD and SPECS directories in this directory as
there are in /usr/src/rpm.
regards,
--
Paul Jakma paul at clubi.iepaul at jakma.org Key ID: 64A2FF6A
Fortune:
I may not be totally perfect, but parts of me are excellent.
-- Ashleigh Brilliant
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!