blob: b705e8eb6461adf39a36727b471431b0b970152d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
Name: cabal-install
Version: 0.14.0
Release: 1%{?dist}
Summary: Command-line interface for Cabal and Hackage
License: BSD
Group: Development/Tools
URL: http://hackage.haskell.org/package/%{name}
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
Patch0: cabal-install-0.14.0-bootstrap-url.patch
BuildRequires: ghc-Cabal-devel
#BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
#BuildRequires: ghc-HTTP-devel
BuildRequires: ghc-array-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-filepath-devel
#BuildRequires: ghc-mtl-devel
#BuildRequires: ghc-network-devel
BuildRequires: ghc-old-time-devel
BuildRequires: ghc-pretty-devel
BuildRequires: ghc-process-devel
#BuildRequires: ghc-random-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-unix-devel
#BuildRequires: ghc-zlib-devel
# End cabal-rpm deps
BuildRequires: zlib-devel%{?_isa}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
The 'cabal' command-line program simplifies the process of managing Haskell
software by automating the fetching, configuration, compilation and
installation of Haskell libraries and programs.
The program is statically linked to Haskell libraries.
%prep
%setup -q
%patch0 -p1 -b .orig
%build
%{nil}
%install
rm -rf %{buildroot}
# bootstrap ghc-pkg registers deps
HOME=$PWD
export PREFIX=%{buildroot}%{_prefix}
sh bootstrap.sh
# remove all the dep devel files
rm -r %{buildroot}%{_prefix}/{lib,share}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE
%{_bindir}/cabal
%changelog
* Sat Jan 25 2014 Jens Petersen <petersen@redhat.com> - 0.14.0-1
- build with bootstrap.sh patched for downloading from hackage2
|