How do you "configure" a source RPM (.src.rpm)

nathan r. rhuby yellowdog-general@lists.terrasoftsolutions.com
Wed Oct 2 19:35:01 2002


Samuel Flory wrote:
> nathan r. rhuby wrote:
> 
>>
>>
>> This will place the specfile in /usr/src/rpm/SPECS and the sources 
>> (with patches) in /usr/src/rpm/SOURCES.  Edit the specfile to control 
>> what options are passed to configure and the rpm -bb $specfile.
>>
> 
>  Generally I use rpm -ba.  That way you also build the src.rpm.  Which 
> is handy the next time you upgrade and need to recompile.  Or when your 
> friend wants to run it on <insert strange linux distro>.
> 

I do a -bs first then a -bb if the source build goes right.  The source 
build picks up the obvious fsck-ups in my less than steallar specfile 
authoring :)

-n