diff --git a/ghc-generic-lens-core.changes b/ghc-generic-lens-core.changes index 5c55b25..22b7ae3 100644 --- a/ghc-generic-lens-core.changes +++ b/ghc-generic-lens-core.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:55 UTC 2020 - Peter Simons diff --git a/ghc-generic-lens-core.spec b/ghc-generic-lens-core.spec index e03d6be..f3192aa 100644 --- a/ghc-generic-lens-core.spec +++ b/ghc-generic-lens-core.spec @@ -28,6 +28,12 @@ BuildRequires: ghc-Cabal-devel BuildRequires: ghc-indexed-profunctors-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-text-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 %description This library uses GHC.Generics to derive efficient optics (traversals, lenses