summaryrefslogtreecommitdiffstats
path: root/tools/cabal-dev/cabal-dev.spec
blob: bdb54f68704f9e0a90957f5b1b6e0494dbd80333 (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# https://fedoraproject.org/wiki/Packaging:Haskell
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell

Name:           cabal-dev
Version:        0.9.1
Release:        6%{?dist}
Summary:        Manage sandboxed Haskell build environments

Group:          Development/Tools
License:        BSD
URL:            http://hackage.haskell.org/package/%{name}
Source0:        http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
Patch1:         cabal-dev-0.9.1-tar-0.4.patch

BuildRequires:  ghc-Cabal-devel
BuildRequires:  ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires:  ghc-HTTP-devel
BuildRequires:  ghc-bytestring-devel
BuildRequires:  ghc-containers-devel
BuildRequires:  ghc-directory-devel
BuildRequires:  ghc-filepath-devel
BuildRequires:  ghc-mtl-devel
BuildRequires:  ghc-network-devel
BuildRequires:  ghc-pretty-devel
BuildRequires:  ghc-process-devel
BuildRequires:  ghc-tar-devel
BuildRequires:  ghc-template-haskell-devel
BuildRequires:  ghc-transformers-devel
BuildRequires:  ghc-zlib-devel
# End cabal-rpm deps
BuildRequires:  cabal-install
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
Requires:       cabal-install

%description
cabal-dev is a tool for managing development builds of Haskell projects.
It supports maintaining sandboxed cabal-install repositories,
and sandboxed ghc package databases.

By default, it uses a cabal-dev directory under the current working directory
as the sandbox.

For most packages, just use cabal-dev instead of cabal, and you will get
a sandboxed build that will not install anything (even automatically installed
dependencies) into the user or global ghc package databases.

If your build depends on patched or unreleased libraries, you can add them to
your sandboxed build environment.


%prep
%setup -q
%patch1 -p1 -b .orig

cabal-tweak-dep-ver mtl "< 2.1" "< 2.2"
cabal-tweak-dep-ver transformers "< 0.3" "< 0.4"
cabal-tweak-dep-ver tar ">= 0.3 && < 0.4" "== 0.4.*"


%build
%ghc_bin_build


%install
%ghc_bin_install

%{__rm} %buildroot%{_bindir}/ghc-pkg-6_8-compat


%files
%doc LICENSE
%attr(755,root,root) %{_bindir}/%{name}
%attr(755,root,root) %{_bindir}/fake-ghc-cabal-dev
%{_datadir}/%{name}-%{version}


%changelog
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Fri Nov  9 2012 Jens Petersen <petersen@redhat.com> - 0.9.1-5
- patch to build with tar-0.4
- update with cabal-rpm

* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Sun Jun 10 2012 Jens Petersen <petersen@redhat.com> - 0.9.1-3
- allow building with mtl-2.1 and transformers-0.3

* Sat Mar 17 2012 Jens Petersen <petersen@redhat.com> - 0.9.1-2
- drop ghc_without_dynamic for patched ghc-7.4 Cabal

* Thu Feb  9 2012 Jens Petersen <petersen@redhat.com> - 0.9.1-1
- update to 0.9.1
- patches to buildsys for cabal-install no longer needed

* Tue Jan 24 2012 Jens Petersen <petersen@redhat.com> - 0.9-4
- build only for ghc_arches_with_ghci

* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Wed Oct 26 2011 Jens Petersen <petersen@redhat.com> - 0.9-2
- rebuild against new gmp

* Mon Sep 26 2011 Jens Petersen <petersen@redhat.com> - 0.9-1
- update to 0.9

* Thu Jul 21 2011 Jens Petersen <petersen@redhat.com> - 0.8-2
- depends on template-haskell

* Tue Jul 19 2011 Jens Petersen <petersen@redhat.com> - 0.8-1
- update to 0.8
- disable dynamic linking since it seems to break with Template Haskell
- add new fake-ghc-cabal-dev helper program

* Thu Jul 14 2011 Jens Petersen <petersen@redhat.com> - 0.7.4.1-3
- use ghc_arches and BR Cabal (cabal2spec-0.23.2)

* Tue May  3 2011 Jens Petersen <petersen@redhat.com> - 0.7.4.1-2
- add BRs for ghc-HTTP, ghc-mtl, ghc-network, ghc-tar, and ghc-zlib devel
- patch out cabal-install from .cabal and Setup files
- requires cabal-install

* Thu Mar 17 2011 Jens Petersen <petersen@redhat.com> - 0.7.4.1-1
- license is BSD
- remove ghc-pkg-6_8-compat

* Thu Mar 17 2011 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 0.7.4.1-0
- initial packaging for Fedora automatically generated by cabal2spec-0.22.5