SHA256
1
0
forked from pool/ghc-aeson

Accepting request 257531 from devel:languages:haskell

1

OBS-URL: https://build.opensuse.org/request/show/257531
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-aeson?expand=0&rev=3
This commit is contained in:
Stephan Kulow 2014-10-20 05:27:10 +00:00 committed by Git OBS Bridge
commit b5bf6159b5
3 changed files with 20 additions and 0 deletions

10
aeson-disable-TH.patch Normal file
View File

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

View File

@ -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 Mon Oct 28 19:50:03 UTC 2013 - sbahling@suse.com

View File

@ -27,6 +27,7 @@ Group: System/Libraries
Url: http://hackage.haskell.org/package/%{pkg_name} Url: http://hackage.haskell.org/package/%{pkg_name}
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
@ -75,6 +76,9 @@ This package provides the Haskell %{pkg_name} library development files.
%prep %prep
%setup -q -n %{pkg_name}-%{version} %setup -q -n %{pkg_name}-%{version}
%ifnarch %{ghc_arches_with_ghci}
%patch0 -p1
%endif
%build %build
%ghc_lib_build %ghc_lib_build