Multiple packages out of a single build?

Stuart D. Gathman stuart at
Wed Nov 9 16:39:59 UTC 2011

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:


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.

 	      Stuart D. Gathman <stuart at>
     Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

More information about the Rpm-list mailing list