From a7871f42d99860b4a154afab0bde1d56aedcbbe81639d8bad38f4bb134b8dc65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Fri, 18 Dec 2020 12:52:05 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-extra revision:15, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-extra?expand=0&rev=87 --- ghc-extra.changes | 5 +++++ ghc-extra.spec | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ghc-extra.changes b/ghc-extra.changes index 9848896..1f30668 100644 --- a/ghc-extra.changes +++ b/ghc-extra.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 17 12:20:00 UTC 2020 - Ondřej Súkup + +- force i686 arch on i586 + ------------------------------------------------------------------- Sat Sep 12 16:17:48 UTC 2020 - psimons@suse.com diff --git a/ghc-extra.spec b/ghc-extra.spec index 86f74cc..fe94fc3 100644 --- a/ghc-extra.spec +++ b/ghc-extra.spec @@ -33,6 +33,12 @@ BuildRequires: ghc-process-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-time-devel BuildRequires: ghc-unix-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-instances-devel