This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
rpm5 [2012-10-08 14:53] baggins [Excluding dependencies] |
rpm5 [2012-11-20 11:18] glen [noarch subpackages] |
||
---|---|---|---|
Line 79: | Line 79: | ||
</file> | </file> | ||
+ | ==== noarch subpackages ==== | ||
+ | |||
+ | Rpm 5.x supports **noarch** subpackages, a feature that can save space on ftp server and mirrors and ease use of multiarch packages. | ||
+ | |||
+ | To use it within a package you should add to subpackage: | ||
+ | |||
+ | <file> | ||
+ | # noarch subpackages only when building with rpm5 | ||
+ | %if "%{_rpmversion}" >= "5" | ||
+ | BuildArch: noarch | ||
+ | %endif | ||
+ | </file> | ||
+ | |||
+ | in the preamble of a subpackage that should be/is architecture independent. |