per package BuildRoot does not work

Jos Vos jos at xos.nl
Tue Jun 7 22:22:14 UTC 2011


On Tue, Jun 07, 2011 at 11:55:21PM +0200, Marten Lehmann wrote:

> I tried to not specify a global "BuildRoot" but directly in each 
> %package section. But rpmbuild just takes the first occurence and uses 
> it globally and ignores the second. So I get dozends of "error: File not 
> found:" errors.
> 
> How can I rewrite the %files macro to use a different buildroot?

This is not possible.

You may want to put the two filesets in different directories and/or use
different filenames and then use the "alternatives" system to select one
of them (this even would allow you to install both packages).

-- 
--    Jos Vos <jos at xos.nl>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


More information about the Rpm-list mailing list