diff --git a/ghc-attoparsec.changes b/ghc-attoparsec.changes index 0e6624d..8a663d6 100644 --- a/ghc-attoparsec.changes +++ b/ghc-attoparsec.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 17 12:20:00 UTC 2020 - Ondřej Súkup + +- force i686 arch on i586 + ------------------------------------------------------------------- Tue Sep 22 09:33:18 UTC 2020 - psimons@suse.com diff --git a/ghc-attoparsec.spec b/ghc-attoparsec.spec index bc9371a..2b068c2 100644 --- a/ghc-attoparsec.spec +++ b/ghc-attoparsec.spec @@ -35,6 +35,12 @@ BuildRequires: ghc-rpm-macros BuildRequires: ghc-scientific-devel BuildRequires: ghc-text-devel BuildRequires: ghc-transformers-devel +# 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-quickcheck-unicode-devel