Just for some extra information, RPM supports 'noarch' sub-packages from 4.6.0 onwards; So, better check in which version of SLE this version of RPM was introduced and you get the 'magic' number. Most likely in the version that came out after February 2009 :) http://lists.rpm.org/pipermail/rpm-announce/2009-February/000015.html Keep in mind one thing though... If the main package is arch dependent, you can have 'noarch' sub-packages... but if the main package is 'noarch' then all the packages will be 'noarch'. I haven't confirmed this on *SUSE, but thats how it works on RHEL, since this is a RPM feature, it should be the same I guess. NM 2012/8/28 Michael Schroeder <mls@suse.de>:
On Tue, Aug 28, 2012 at 03:52:08PM +0100, Nelson Marques wrote:
I guess the rpm version in SLE doesn't understand noarch for subpackages, so the "BuildArch: noarch" line turns everything into a noarch package. So disable all those BuildArch lines when building for SLE 11.
This makes sense.... it happens all the time in RHEL-5 (rpm 4.3) but not on 6 (rpm 4.8).
On RHEL we can use conditionals like:
%if 0%{?rhel} >= 6 BuildArch: noarch %endif
I suppose this can be done for SLE, but I don't know the correct versioning for it, should be something like: %if 0%{?suse_version} >= 11XX BuildArch: noarch %endif
I thinkit works since openSUSE 11.2, i.e. use:
%if 0%{?suse_version} > 1110 BuildArch: noarch %endif
Cheers, Michael.
-- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
-- Nelson Marques /* Y aquel viejo trovador con el alba se marchó, rumbo de nuevo a salvar otra corazón. */ -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org