[ILUG] Help install package from sources (FC3)
Paul Jakma
paul at clubi.ie
Wed Dec 22 23:58:41 GMT 2004
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.ie paul at jakma.org Key ID: 64A2FF6A
Fortune:
I may not be totally perfect, but parts of me are excellent.
-- Ashleigh Brilliant
More information about the ILUG
mailing list