tweak build-tools
- need custom Setup for cabal-install - HsColour-1.20.x reports version 1.20
This commit is contained in:
parent
58abd73e3a
commit
e32ed2e5a2
2 changed files with 15 additions and 0 deletions
12
haskell-platform-2014.1.0.0-buildtools.patch
Normal file
12
haskell-platform-2014.1.0.0-buildtools.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
--- haskell-platform-2014.1.0.0/haskell-platform.cabal~ 2014-06-04 18:21:10.000000000 +0900
|
||||
+++ haskell-platform-2014.1.0.0/haskell-platform.cabal 2014-06-06 18:32:55.707251149 +0900
|
||||
@@ -103,7 +103,7 @@
|
||||
-- Depending on programs does not work, they are not registered
|
||||
-- We list them to help distro packaging.
|
||||
build-tools:
|
||||
- cabal-install ==1.18.0.4,
|
||||
+-- cabal-install ==1.18.0.4,
|
||||
alex ==3.1.3,
|
||||
happy ==1.19.3,
|
||||
- hscolour ==1.20.3
|
||||
+ hscolour ==1.20
|
||||
|
|
@ -49,6 +49,7 @@ License: BSD
|
|||
URL: http://hackage.haskell.org/platform
|
||||
Source0: http://lambda.haskell.org/platform/download/%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: LICENSE
|
||||
Patch1: haskell-platform-2014.1.0.0-buildtools.patch
|
||||
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-rpm-macros-extra
|
||||
|
|
@ -169,12 +170,14 @@ This provides the haskell-platform meta library package.
|
|||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%patch1 -p1 -b .orig
|
||||
|
||||
# hack for h-p.cabal in top dir
|
||||
mkdir packages/%{name}-%{version}
|
||||
cp %SOURCE1 hptool/Setup.hs packages/%{name}-%{version}
|
||||
mv %{name}.cabal packages/%{name}-%{version}
|
||||
|
||||
|
||||
%build
|
||||
HOME=$PWD
|
||||
%define cabal_configure_options --user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue