![](https://seccdn.libravatar.org/avatar/bc67c2666cfb0f5c7770293291610cc9.jpg?s=120&d=mm&r=g)
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);} -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org