Re: Installing during rebuild

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

 



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 

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux