[KLUG Members] building from rpm source

Adam Williams members@kalamazoolinux.org
01 Jun 2002 13:30:30 -0400


>Yep, sorry about that. I'm actually doing this (as root):
>rpm -ivh mypackage.src.rpm
>rpm --rebuild mypackage.src.rpm

This (the second one) should have caused a rebuild and dumped the
resulting RPM in /usr/src/redhat/RPMS/i386/

><momentary pause as Tony slaps himself for impersonating an end
>user...WHACK...ah, that's better :) 

Ah, those user moments.  Some people spend their entire lives like
that,  which might explain a few things about human civilization....

>Looking at the man page, I thought maybe rpm -ba would work, but that
>requires a spec file. I have no spec file, just the .src.rpm.
>But I got to thinking, 

Uh Oh!

>if I installed the source rpm, where did it go?
>Thanks to your message, I got to looking in /usr/src/redhat and found
>what looked to be the directory of the source in BUILD. Sure enough, I
>found it. rpm --rebuild in here (a .spec file was present now) didn't
>work, but configure, make, and make install did. So, now my app is
>installed. 
>Is there a better method for installing from source rpm? 

Yes "installing" as source RPM usually leaves a tar ball in build and a
spec file in SPECS.  You can go into the SPECS dir and do an rpm -ba
blah.spec and the package will build and be found in
/usr/src/redhat/RPMS/i386