http://bugzilla.opensuse.org/show_bug.cgi?id=1188839
http://bugzilla.opensuse.org/show_bug.cgi?id=1188839#c7
--- Comment #7 from Richard Biener
(In reply to Guillaume GARDET from comment #5)
(In reply to Michael Matz from comment #3)
I'd rather find a way that would say "DontBuildOn: XXX".
You are looking for 'ExcludeArch:' then. It means build for all architectures except on the one(s) listed here.
Uhm, right. I wonder why we aren't using it already, is it only supported with "newer" rpm, or were we just not knowing ExcludeArch: 18 years ago? ;-)
IIRC it was unsupported on SLE-11. But binutils uses it now so I guess it's fine to use. Maybe it doesn't combine with ExclusiveArch:, who knows (and we don't want to build crosses on all "hosts" - well, we did so in the past).
FWIW I was just playing with
%ifarch XXX ExclusiveArch: dontbuild %endif
which works as well, but of course ExcludeArch is nicer.
-- You are receiving this mail because: You are on the CC list for the bug.