On Wed, Aug 26, 2009 at 8:50 AM, Michael Schwendt<mschwendt(a)gmail.com> wrote:
On Wed, 26 Aug 2009 14:22:29 +0800, solarflow99 wrote:
> yes, I noticed my builds are going ppc, etc. All my program works with is
> i386, its not able to build on other platforms.
ExclusiveArch: i386
This answer is of course correct, but I think you meant that you
wanted to build for ix86 only. That is i386 for F-10, i586 for F-11
and i686 for devel.
You would normally use this:
ExclusiveArch: %{ix86}
But this do not work in plague. Plague would build for ALL ix86 arch available.
Therefore, to achieve the wanted result you should do something like this:
%if 0%{?fedora} >= 12
ExclusiveArch: i686
%endif
%if 0%{?fedora} >= 11
ExclusiveArch: i586
%else
ExclusiveArch: i386
%endif
It's ugly but it works.
Bye,
Andrea.