disable TH module on arch's without ghci like debian

epel9
Jens Petersen 11 years ago
parent 1d0c3f26af
commit 9bb2841f4b

@ -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

@ -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 <petersen@redhat.com> - 0.6.2.1-2
- disable TH module on arch's without ghci
* Wed Jan 22 2014 Jens Petersen <petersen@redhat.com> - 0.6.2.1-1
- update to 0.6.2.1

Loading…
Cancel
Save