BTW here are a couple of other commands I find useful when working
with .src rpms:

rpm -i <src.rpm> : unpack tar and spec
to /usr/src/redhat/{SOURCES,SPECS}  (as Neale mentioned the rpm db isn't
updated)

rpmbuild -bp SPECS/<specfile>.spec : unpack tar to BUILD/, apply
patches, and usually run ./configure

rpmbuild -bb SPECS/<specfile>.spec : same as -bp but also run the
compile.  This writes the RPM to the RPMS/s390{x} directory

rpmbuild -ba SPECS/<specfile>.spec: same as -bb but also builds a .src
rpm in SRPMS/

Of course these are only useful if you want to look at or change the
source.  If you just want to build, rpmbuild --rebuild is all you need.

-Brad

On Mon, 2006-12-18 at 12:18 -0500, Peter Webb, Toronto Transit
Commission wrote:
> The Red Hat RPM Guide
> http://fedora.redhat.com/docs/drafts/rpm-guide-en/ch-rpm-overview.html#i
> d2928597 and
> http://fedora.redhat.com/docs/drafts/rpm-guide-en/ch03s02.html#id2934186
> .
>
> Peter
>
> -----Original Message-----
> From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
> Mark Post
> Sent: December 18, 2006 12:15
> To: [email protected]
> Subject: Re: Source RPM Install Problem
>
> Peter,
>
> Which documentation is that?  Most likely, a patch submitted to the
> developers would be worth trying.
>
>
> Mark Post
>
> -----Original Message-----
> From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of
> Peter Webb, Toronto Transit Commission
> Sent: Monday, December 18, 2006 10:54 AM
> To: [email protected]
> Subject: Re: Source RPM Install Problem
>
>
> Thanks Neal, that worked. I just the documentation actually stated that
> you had to do that, instead of obliquely implying it.
>
> Peter
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
> visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
>
>
> The information transmitted is intended only for the person or entity to 
> which it is addressed and may contain confidential and/or privileged 
> material.  Any review retransmission dissemination or other use of or taking 
> of any action in reliance upon this information by persons or entities other 
> than the intended recipient or delegate is strictly prohibited.  If you 
> received this in error please contact the sender and delete the material from 
> any computer.  The integrity and security of this message cannot by 
> guaranteed on the Internet.  The Sender accepts no liability for the content 
> of this e-mail or for the consequences of any actions taken on basis of the 
> information provided.  The recipient should check this e-mail and any 
> attachments for the presence of viruses.  The sender accepts no liability for 
> any damage caused by any virus transmitted by this e-mail.  This disclaimer 
> is the property of the TTC and must not be altered or circumvented in any 
> manner.
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
--
Brad Hinson <[EMAIL PROTECTED]>
Technical Account Manager
Red Hat, Inc.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to