diff --git a/ghc-data-default.changes b/ghc-data-default.changes index 265d3e6..33e9b02 100644 --- a/ghc-data-default.changes +++ b/ghc-data-default.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:44:34 UTC 2020 - Peter Simons diff --git a/ghc-data-default.spec b/ghc-data-default.spec index c048e26..ad51473 100644 --- a/ghc-data-default.spec +++ b/ghc-data-default.spec @@ -30,6 +30,12 @@ BuildRequires: ghc-data-default-instances-containers-devel BuildRequires: ghc-data-default-instances-dlist-devel BuildRequires: ghc-data-default-instances-old-locale-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 %description A class for types with a default value.