Circa 2001-Dec-29 04:27:31 -0500 dixit rpjday:
: i'm throwing together a quick writeup on how to build a non-source
: RPM, since that subject has come up a number of times recently in my
: social circle.
:
: being a newbie at this, i've tested an example involving just
: bundling up some image files into an RPM, but it builds as an
: i386 RPM -- how do i get it to construct a "noarch" RPM
: automatically? i didn't specify an architecture anywhere,
: so i'm assuming it's getting a default from, where?
: /usr/lib/rpm/macros?
:
: anyway, the build is working nicely, i just need to know
: how to specify the architecture.
This goes in the specfile preamble:
BuildArchitectures: noarch
You can also do:
ExclusiveArch: noarch
but that requires building with (for example):
rpm -bc --target noarch blah.spec
Whichever you decide to use, note that, due to limitations in RPM, the
architecture applies to the entire specfile. That is, you can't build
a main package with one architecture (blah-1.0-1.i386.rpm) and a
subpackage with another one (blah-extras-1.0-1.noarch.rpm).[*]
________________
[*] Actually, that's a lie. You can, but it's a multi-step process
which is too complex to explain here.
--
jim knoble | jmknoble@pobox.com | http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)
Attachment:
pgp00002.pgp
Description: PGP signature