Need help with rpmbuild

Steve Blackwell zephod at cfl.rr.com
Thu Mar 24 11:18:56 UTC 2011


On Wed, 23 Mar 2011 21:21:16 -0400
Todd Zullinger <tmz at pobox.com> wrote:

> Steve Blackwell wrote:
> > Specifically the install section. I'm not understanding how the
> > %install section works with the %files section.
> > I hope this is not considered OT.

> 
> The RPM_BUILD_ROOT should exactly mirror the direcotry structure you
> want to have your package files installed into.  If you want the file
> in /tmp, then you would want to use $RPM_BUILD_ROOT/tmp as the
> destination.  You must create RPM_BUILD_ROOT/tmp.  If it was me, I'd
> use the install command to do this in one step:
> 
> %install
> install -p -m755 -D %{name} RPM_BUILD_ROOT/tmp/%{name}
> 

Ah, Thanks. That helped. Now I need to lookup the syntax of the install
macro. 
And thanks to Chris & JD too.

Steve


-- 
Changing lives one card at a time

http://www.send1cardnow.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20110324/c5f129f6/attachment-0001.bin 


More information about the users mailing list