From 9bb2841f4bc33c333fee40ba369fa7eb5a2a75f2 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 20 Apr 2014 15:08:33 +0900 Subject: [PATCH] disable TH module on arch's without ghci like debian --- aeson-disable-TH.patch | 10 ++++++++++ ghc-aeson.spec | 11 +++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) 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..d02bcac --- /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.spec b/ghc-aeson.spec index 1da0029..325d627 100644 --- a/ghc-aeson.spec +++ b/ghc-aeson.spec @@ -4,12 +4,14 @@ Name: ghc-%{pkg_name} Version: 0.6.2.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Fast JSON parsing and encoding License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +# for archs without ghci +Patch1: aeson-disable-TH.patch BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros @@ -29,7 +31,6 @@ BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-devel -ExclusiveArch: %{ghc_arches_with_ghci} # End cabal-rpm deps %description @@ -51,6 +52,9 @@ This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} +%ifnarch %{ghc_arches_with_ghci} +%patch1 -p1 -b .orig +%endif %build @@ -78,6 +82,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Sun Apr 20 2014 Jens Petersen - 0.6.2.1-2 +- disable TH module on arch's without ghci + * Wed Jan 22 2014 Jens Petersen - 0.6.2.1-1 - update to 0.6.2.1