[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Installing during rebuild



Wyse, Chris wrote:
> Is there a way to prevent the rpmbuild of the source
rpm from 
> performing the installation?  My install section is
executed during 
> rpmbuild - I really only want the installation done
when I install the binary rpm.
> Am I missing something or doing something wrong (or
both)?

There is a terminology problem here.

The %install scriptlet is the logic required to copy
the files into a layout for a future binary
installation, not to install the component.

Typically, the logic is the same as the logic required
to install into the filesystem after a build, like
doing a make install. So the way most people implement
the %install scriptlet is to make install into a false
root, which rpm calls BuildRoot. The BuildRoot would
be set as a make variable from the command line.

After %install, rpm packages the files according to
the %files section.

Think of %install as "prepare file layout for
packaging".


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]