]>
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 |
cf74db68 | 5 | Release: 1 |
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 | |
c9782df6 | 37 | %prep |
ab3e5650 | 38 | %setup -q |
1c75109a | 39 | %patch0 -p1 |
ab3e5650 | 40 | |
c9782df6 | 41 | %build |
1c75109a JR |
42 | runhaskell Setup.lhs configure -v2 \ |
43 | --prefix=%{_prefix} \ | |
44 | --libdir=%{_libdir} \ | |
45 | --libexecdir=%{_libexecdir} \ | |
46 | --libsubdir=%{libsubdir} \ | |
47 | --docdir=%{_docdir}/%{name}-%{version} \ | |
48 | --flags="curl curl-pipelining terminfo color mmap" | |
49 | ||
677fe055 | 50 | runhaskell Setup.lhs build |
1c75109a JR |
51 | runhaskell Setup.lhs haddock --executables \ |
52 | --css=doc/darcs.css | |
c9782df6 AM |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
1c75109a JR |
56 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/%{name} |
57 | ||
677fe055 | 58 | runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT |
c9782df6 | 59 | |
1c75109a JR |
60 | # work around automatic haddock docs installation |
61 | rm -rf %{name}-%{version}-doc | |
62 | cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc | |
63 | ||
64 | install -p contrib/darcs_completion $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/%{name} | |
65 | ||
66 | # we only want the binary | |
67 | rm -r $RPM_BUILD_ROOT/%{_libdir}/%{libsubdir} | |
68 | ||
c9782df6 AM |
69 | %clean |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
1c75109a JR |
74 | %doc NEWS README |
75 | %doc %{name}-%{version}-doc/html | |
c9782df6 | 76 | %attr(755,root,root) %{_bindir}/* |
af6e8194 | 77 | %{_sysconfdir}/bash_completion.d/%{name} |
1c75109a | 78 | %{_mandir}/man1/* |