diff --git a/ghc-iproute.changes b/ghc-iproute.changes index 58ed764..b4737f1 100644 --- a/ghc-iproute.changes +++ b/ghc-iproute.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 17 12:20:00 UTC 2020 - Ondřej Súkup + +- force i686 arch on i586 + ------------------------------------------------------------------- Tue Nov 17 15:26:56 UTC 2020 - psimons@suse.com diff --git a/ghc-iproute.spec b/ghc-iproute.spec index 2f4c97c..3fb562a 100644 --- a/ghc-iproute.spec +++ b/ghc-iproute.spec @@ -32,6 +32,12 @@ BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-network-devel BuildRequires: ghc-rpm-macros +# GHC dont support i586 +%ifarch %{ix86} +ExclusiveArch: i586 i686 +ExclusiveArch: i686 +%{expand:%%global optflags %(echo "%{optflags}"|sed -e s/i586/i686/) -march=i686 -mtune=generic} +%endif %if %{with tests} BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-doctest-devel