On Wed, 23 Mar 2011 21:21:16 -0400
Todd Zullinger <tmz(a)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