]>
Commit | Line | Data |
---|---|---|
d8a15745 | 1 | Summary: David's Advanced Revision Control System - yet another replacement for CVS |
0765a5cd | 2 | Summary(pl.UTF-8): David's Advanced Revision Control System - jeszcze jeden zamiennik CVS-a |
c9782df6 | 3 | Name: darcs |
03f0b79d | 4 | Version: 2.4 |
f1123fc2 | 5 | Release: 2 |
c9782df6 AM |
6 | License: GPL v2 |
7 | Group: Development/Version Control | |
677fe055 | 8 | Source0: http://darcs.net/releases/%{name}-%{version}.tar.gz |
03f0b79d | 9 | # Source0-md5: 169a6d245a33da97b2daa0eda60b28e5 |
1c75109a | 10 | Patch0: %{name}-issue1753.patch |
ab3e5650 | 11 | URL: http://darcs.net/ |
1c75109a JR |
12 | BuildRequires: curl-devel >= 7.19.1 |
13 | BuildRequires: ghc >= 6.10 | |
af3ac60f JR |
14 | BuildRequires: ghc-hashed-storage >= 0.3.8 |
15 | BuildRequires: ghc-haskeline >= 0.6.1 | |
1c75109a JR |
16 | BuildRequires: ghc-mmap = 1:0.4.1 |
17 | BuildRequires: ghc-terminfo >= 0.3 | |
af3ac60f | 18 | BuildRequires: ghc-utf8-string >= 0.3 |
1c75109a | 19 | BuildRequires: ghc-zlib >= 0.5.1.0 |
c9782df6 AM |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
1c75109a JR |
22 | %define libsubdir ghc-%(/usr/bin/ghc --numeric-version)/%{name}-%{version} |
23 | ||
c9782df6 AM |
24 | %description |
25 | David's Advanced Revision Control System is yet another replacement | |
26 | for CVS. It is written in Haskell, and has been used on Linux, MacOS | |
d8a15745 | 27 | X, FreeBSD, OpenBSD and Microsoft Windows. Darcs includes a CGI |
c9782df6 AM |
28 | script, which can be used to view the contents of your repository. |
29 | ||
24e0d6cb | 30 | %description -l pl.UTF-8 |
d8a15745 JB |
31 | David's Advanced Revision Control System (zaawansowany system kontroli |
32 | wersji Davida) to jeszcze jeden zamiennik CVS-a. Jest napisany w | |
24e0d6cb JR |
33 | Haskellu, dotychczas był używany na Linuksie, MacOS-ie X, FreeBSD, |
34 | OpenBSD i Microsoft Windows. Darcs zawiera skrypt CGI, który może być | |
35 | używany do oglądania zawartości repozytorium. | |
d8a15745 | 36 | |
f1123fc2 JR |
37 | %package -n bash-completion-darcs |
38 | Summary: bash-completion for darcs | |
39 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla darcsa | |
40 | Group: Applications/Shells | |
41 | Requires: bash-completion | |
42 | ||
43 | %description -n bash-completion-darcs | |
44 | This package provides bash-completion for darcs. | |
45 | ||
46 | %description -n bash-completion-darcs -l pl.UTF-8 | |
47 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla darcsa. | |
48 | ||
c9782df6 | 49 | %prep |
ab3e5650 | 50 | %setup -q |
1c75109a | 51 | %patch0 -p1 |
ab3e5650 | 52 | |
c9782df6 | 53 | %build |
1c75109a JR |
54 | runhaskell Setup.lhs configure -v2 \ |
55 | --prefix=%{_prefix} \ | |
56 | --libdir=%{_libdir} \ | |
57 | --libexecdir=%{_libexecdir} \ | |
58 | --libsubdir=%{libsubdir} \ | |
59 | --docdir=%{_docdir}/%{name}-%{version} \ | |
60 | --flags="curl curl-pipelining terminfo color mmap" | |
61 | ||
677fe055 | 62 | runhaskell Setup.lhs build |
1c75109a JR |
63 | runhaskell Setup.lhs haddock --executables \ |
64 | --css=doc/darcs.css | |
c9782df6 AM |
65 | |
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
1c75109a | 68 | |
677fe055 | 69 | runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT |
c9782df6 | 70 | |
1c75109a JR |
71 | # work around automatic haddock docs installation |
72 | rm -rf %{name}-%{version}-doc | |
73 | cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc | |
74 | ||
f1123fc2 JR |
75 | # bash completion |
76 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d | |
1c75109a JR |
77 | install -p contrib/darcs_completion $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/%{name} |
78 | ||
79 | # we only want the binary | |
80 | rm -r $RPM_BUILD_ROOT/%{_libdir}/%{libsubdir} | |
81 | ||
c9782df6 AM |
82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
1c75109a JR |
87 | %doc NEWS README |
88 | %doc %{name}-%{version}-doc/html | |
c9782df6 | 89 | %attr(755,root,root) %{_bindir}/* |
1c75109a | 90 | %{_mandir}/man1/* |
f1123fc2 JR |
91 | |
92 | %files -n bash-completion-darcs | |
93 | %defattr(644,root,root,755) | |
94 | %{_sysconfdir}/bash_completion.d/%{name} |