This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
rpm5 [2012-11-19 22:06] baggins noarch subpackages |
rpm5 [2012-11-20 11:18] glen [noarch subpackages] |
||
---|---|---|---|
Line 82: | Line 82: | ||
Rpm 5.x supports **noarch** subpackages, a feature that can save space on ftp server and mirrors and ease use of multiarch packages. | 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 all what is needed is to put | ||
- | <file>BuildArch: noarch</file> | + | 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. | in the preamble of a subpackage that should be/is architecture independent. |