From dfe66d94010ef9751eea2ea5645d00db956644b03ea4d8edec7d4b4b7145466f Mon Sep 17 00:00:00 2001 From: Peter Trommler Date: Sat, 18 Oct 2014 15:05:55 +0000 Subject: [PATCH] Accepting request 257529 from openSUSE:Factory:PowerPC - disable TH module on arch's without ghci aeson-disable-TH.patch OBS-URL: https://build.opensuse.org/request/show/257529 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-aeson?expand=0&rev=4 --- aeson-disable-TH.patch | 10 ++++++++++ ghc-aeson.changes | 6 ++++++ ghc-aeson.spec | 4 ++++ 3 files changed, 20 insertions(+) create mode 100644 aeson-disable-TH.patch diff --git a/aeson-disable-TH.patch b/aeson-disable-TH.patch new file mode 100644 index 0000000..6c6d4ff --- /dev/null +++ b/aeson-disable-TH.patch @@ -0,0 +1,10 @@ +--- aeson-0.6.2.1/aeson.cabal~ 2013-10-14 12:59:08.000000000 +0900 ++++ aeson-0.6.2.1/aeson.cabal 2014-04-20 15:03:05.037735911 +0900 +@@ -98,7 +98,6 @@ + Data.Aeson.Generic + Data.Aeson.Parser + Data.Aeson.Types +- Data.Aeson.TH + + other-modules: + Data.Aeson.Functions diff --git a/ghc-aeson.changes b/ghc-aeson.changes index 610f073..446662c 100644 --- a/ghc-aeson.changes +++ b/ghc-aeson.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Oct 18 14:50:27 UTC 2014 - dvaleev@suse.com + +- disable TH module on arch's without ghci + aeson-disable-TH.patch + ------------------------------------------------------------------- Mon Oct 28 19:50:03 UTC 2013 - sbahling@suse.com diff --git a/ghc-aeson.spec b/ghc-aeson.spec index f2e3b19..71f6b4d 100644 --- a/ghc-aeson.spec +++ b/ghc-aeson.spec @@ -27,6 +27,7 @@ Group: System/Libraries Url: http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +Patch0: aeson-disable-TH.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ghc-Cabal-devel @@ -75,6 +76,9 @@ This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} +%ifnarch %{ghc_arches_with_ghci} +%patch0 -p1 +%endif %build %ghc_lib_build