diff --git a/ghc-crypto-api.changes b/ghc-crypto-api.changes index fbb7ee9..b1eda26 100644 --- a/ghc-crypto-api.changes +++ b/ghc-crypto-api.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 17 12:20:00 UTC 2020 - Ondřej Súkup + +- force i686 arch on i586 + ------------------------------------------------------------------- Mon Aug 31 09:34:36 UTC 2020 - psimons@suse.com diff --git a/ghc-crypto-api.spec b/ghc-crypto-api.spec index f204214..bb85350 100644 --- a/ghc-crypto-api.spec +++ b/ghc-crypto-api.spec @@ -32,6 +32,12 @@ BuildRequires: ghc-entropy-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-tagged-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 %description A generic interface for cryptographic operations (hashes, ciphers, randomness).