diff --git a/ghc-streaming-commons.changes b/ghc-streaming-commons.changes index 03ad885..ac57f4f 100644 --- a/ghc-streaming-commons.changes +++ b/ghc-streaming-commons.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 17 12:20:00 UTC 2020 - Ondřej Súkup + +- force i686 arch on i586 + ------------------------------------------------------------------- Tue Aug 18 10:46:06 UTC 2020 - Peter Simons diff --git a/ghc-streaming-commons.spec b/ghc-streaming-commons.spec index 0817753..aafe0c1 100644 --- a/ghc-streaming-commons.spec +++ b/ghc-streaming-commons.spec @@ -39,6 +39,12 @@ BuildRequires: ghc-text-devel BuildRequires: ghc-transformers-devel BuildRequires: ghc-unix-devel BuildRequires: ghc-zlib-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-deepseq-devel