howto generate i386 and noarch rpms from single .spec ?

Jos Vos jos at xos.nl
Tue Sep 20 18:01:13 UTC 2005


On Tue, Sep 20, 2005 at 01:28:54PM -0400, Ignacio Vazquez-Abrams wrote:

> On Tue, 2005-09-20 at 12:05 -0400, John Ellson wrote:

> > I know how to generate multiple rpms from a single .spec, but I don't 
> > know how to generate
> > a mix of .i386 and .noarch rpms.   Is this possible?
> 
> You can't. Single spec file, single arch.

Not true, see the kernel spec file as a counter example.

Use

  %ifarch noarch
  ...
  %endif

and

  %ifarch i386
  ...
  %endif

in your spec file and generate with "--target noarch" and
"--target i386" (default for ix86 systems).  Do not include
a BuildArch header.

-- 
--    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 fedora-devel-list mailing list