]> git.pld-linux.org Git - packages/darcs.git/blame - darcs.spec
- rel 2
[packages/darcs.git] / darcs.spec
CommitLineData
d8a15745 1Summary: David's Advanced Revision Control System - yet another replacement for CVS
0765a5cd 2Summary(pl.UTF-8): David's Advanced Revision Control System - jeszcze jeden zamiennik CVS-a
c9782df6 3Name: darcs
03f0b79d 4Version: 2.4
f1123fc2 5Release: 2
c9782df6
AM
6License: GPL v2
7Group: Development/Version Control
677fe055 8Source0: http://darcs.net/releases/%{name}-%{version}.tar.gz
03f0b79d 9# Source0-md5: 169a6d245a33da97b2daa0eda60b28e5
1c75109a 10Patch0: %{name}-issue1753.patch
ab3e5650 11URL: http://darcs.net/
1c75109a
JR
12BuildRequires: curl-devel >= 7.19.1
13BuildRequires: ghc >= 6.10
af3ac60f
JR
14BuildRequires: ghc-hashed-storage >= 0.3.8
15BuildRequires: ghc-haskeline >= 0.6.1
1c75109a
JR
16BuildRequires: ghc-mmap = 1:0.4.1
17BuildRequires: ghc-terminfo >= 0.3
af3ac60f 18BuildRequires: ghc-utf8-string >= 0.3
1c75109a 19BuildRequires: ghc-zlib >= 0.5.1.0
c9782df6
AM
20BuildRoot: %{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
25David's Advanced Revision Control System is yet another replacement
26for CVS. It is written in Haskell, and has been used on Linux, MacOS
d8a15745 27X, FreeBSD, OpenBSD and Microsoft Windows. Darcs includes a CGI
c9782df6
AM
28script, which can be used to view the contents of your repository.
29
24e0d6cb 30%description -l pl.UTF-8
d8a15745
JB
31David's Advanced Revision Control System (zaawansowany system kontroli
32wersji Davida) to jeszcze jeden zamiennik CVS-a. Jest napisany w
24e0d6cb
JR
33Haskellu, dotychczas był używany na Linuksie, MacOS-ie X, FreeBSD,
34OpenBSD i Microsoft Windows. Darcs zawiera skrypt CGI, który może być
35używany do oglądania zawartości repozytorium.
d8a15745 36
f1123fc2
JR
37%package -n bash-completion-darcs
38Summary: bash-completion for darcs
39Summary(pl.UTF-8): bashowe uzupełnianie nazw dla darcsa
40Group: Applications/Shells
41Requires: bash-completion
42
43%description -n bash-completion-darcs
44This package provides bash-completion for darcs.
45
46%description -n bash-completion-darcs -l pl.UTF-8
47Pakiet 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
54runhaskell 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 62runhaskell Setup.lhs build
1c75109a
JR
63runhaskell Setup.lhs haddock --executables \
64 --css=doc/darcs.css
c9782df6
AM
65
66%install
67rm -rf $RPM_BUILD_ROOT
1c75109a 68
677fe055 69runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
c9782df6 70
1c75109a
JR
71# work around automatic haddock docs installation
72rm -rf %{name}-%{version}-doc
73cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
74
f1123fc2
JR
75# bash completion
76install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
1c75109a
JR
77install -p contrib/darcs_completion $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/%{name}
78
79# we only want the binary
80rm -r $RPM_BUILD_ROOT/%{_libdir}/%{libsubdir}
81
c9782df6
AM
82%clean
83rm -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}
This page took 0.059192 seconds and 4 git commands to generate.