User Tools

Site Tools


rpm5

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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.
rpm5.txt · Last modified: 2015-01-13 16:01 by glen