Multiple packages out of a single build?

Marco listaddr at gmail.com
Thu Nov 10 09:11:39 UTC 2011


2011/11/9 Stuart D. Gathman <stuart at bmsi.com>:
> On Wed, 9 Nov 2011, Marco wrote:
>
>> This is indeed an interesting idea, thanks. I suppose there cannot be
>> something like "%install foo", "%install bar" etc., right? (it's
>> because if not, we'll have to modify the installation step itself to
>> install into all valid paths).
>
> If the makefile can only install one, then call it multiple times:
>
> %install
>
> make install foo DEST=$RPM_BUILD_ROOT
> make install bar DEST=$RPM_BUILD_ROOT
>
> Note the DEST=, your makefile needs to support something like that.
> You want to be able to run the rpmbuild as a non-root user.
>
> --

Yes, that makes sense too. I think working on subpackages + %install
is the way to go. Thanks everybody for their answers.


More information about the Rpm-list mailing list