]> git.pld-linux.org Git - packages/darcs.git/blame - darcs.spec
subpackage docs
[packages/darcs.git] / darcs.spec
CommitLineData
9ebc03ec
JR
1#
2# Conditional build:
3%bcond_without tests # build without tests
6d32792e 4
d8a15745 5Summary: David's Advanced Revision Control System - yet another replacement for CVS
0765a5cd 6Summary(pl.UTF-8): David's Advanced Revision Control System - jeszcze jeden zamiennik CVS-a
c9782df6 7Name: darcs
2dc05737 8Version: 2.5.2
479c0f57 9Release: 1
c9782df6
AM
10License: GPL v2
11Group: Development/Version Control
677fe055 12Source0: http://darcs.net/releases/%{name}-%{version}.tar.gz
2dc05737
JR
13# Source0-md5: 491b6ca01dec245a16112ad2c7e07dc1
14Patch0: %{name}-ghc72.patch
15Patch1: %{name}-relax-regex-libs-deps.patch
16Patch2: %{name}-tests-ghc72.patch
ab3e5650 17URL: http://darcs.net/
1c75109a 18BuildRequires: curl-devel >= 7.19.1
87d858c5
JR
19BuildRequires: ghc >= 6.12.3
20BuildRequires: ghc-hashed-storage >= 0.5
af3ac60f 21BuildRequires: ghc-haskeline >= 0.6.1
87d858c5 22BuildRequires: ghc-mmap >= 1:0.5
3cc0dbe6 23BuildRequires: ghc-tar >= 0.3
1c75109a 24BuildRequires: ghc-terminfo >= 0.3
af3ac60f 25BuildRequires: ghc-utf8-string >= 0.3
1c75109a 26BuildRequires: ghc-zlib >= 0.5.1.0
d0ff7293 27BuildRequires: gmp-devel
28BuildRequires: pkgconfig
c9782df6
AM
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
87d858c5 31%define ghcdir ghc-%(/usr/bin/ghc --numeric-version)
1c75109a 32
c9782df6
AM
33%description
34David's Advanced Revision Control System is yet another replacement
35for CVS. It is written in Haskell, and has been used on Linux, MacOS
d8a15745 36X, FreeBSD, OpenBSD and Microsoft Windows. Darcs includes a CGI
c9782df6
AM
37script, which can be used to view the contents of your repository.
38
24e0d6cb 39%description -l pl.UTF-8
d8a15745
JB
40David's Advanced Revision Control System (zaawansowany system kontroli
41wersji Davida) to jeszcze jeden zamiennik CVS-a. Jest napisany w
24e0d6cb
JR
42Haskellu, dotychczas był używany na Linuksie, MacOS-ie X, FreeBSD,
43OpenBSD i Microsoft Windows. Darcs zawiera skrypt CGI, który może być
44używany do oglądania zawartości repozytorium.
d8a15745 45
6d32792e
ER
46%package doc
47Summary: Documentation for darcs
48Group: Documentation
49%if "%{_rpmversion}" >= "5"
50BuildArch: noarch
51%endif
52
53%description doc
54The documentation files that come with darcs.
55
f1123fc2
JR
56%package -n bash-completion-darcs
57Summary: bash-completion for darcs
58Summary(pl.UTF-8): bashowe uzupełnianie nazw dla darcsa
59Group: Applications/Shells
60Requires: bash-completion
be3cffe5
ER
61%if "%{_rpmversion}" >= "5"
62BuildArch: noarch
63%endif
f1123fc2
JR
64
65%description -n bash-completion-darcs
66This package provides bash-completion for darcs.
67
68%description -n bash-completion-darcs -l pl.UTF-8
69Pakiet ten dostarcza bashowe uzupełnianie nazw dla darcsa.
70
c9782df6 71%prep
ab3e5650 72%setup -q
9ebc03ec 73%patch0 -p1
2dc05737
JR
74%patch1 -p1
75%patch2 -p1
ab3e5650 76
c9782df6 77%build
1c75109a
JR
78runhaskell Setup.lhs configure -v2 \
79 --prefix=%{_prefix} \
80 --libdir=%{_libdir} \
81 --libexecdir=%{_libexecdir} \
1c75109a
JR
82 --docdir=%{_docdir}/%{name}-%{version} \
83 --flags="curl curl-pipelining terminfo color mmap"
84
677fe055 85runhaskell Setup.lhs build
9ebc03ec
JR
86%{?with_tests:runhaskell Setup.lhs test}
87
1c75109a
JR
88runhaskell Setup.lhs haddock --executables \
89 --css=doc/darcs.css
c9782df6
AM
90
91%install
92rm -rf $RPM_BUILD_ROOT
1c75109a 93
677fe055 94runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
c9782df6 95
1c75109a
JR
96# work around automatic haddock docs installation
97rm -rf %{name}-%{version}-doc
98cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
99
f1123fc2
JR
100# bash completion
101install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
1c75109a
JR
102install -p contrib/darcs_completion $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/%{name}
103
104# we only want the binary
87d858c5 105rm -r $RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}
1c75109a 106
c9782df6
AM
107%clean
108rm -rf $RPM_BUILD_ROOT
109
110%files
111%defattr(644,root,root,755)
1c75109a 112%doc NEWS README
c9782df6 113%attr(755,root,root) %{_bindir}/*
1c75109a 114%{_mandir}/man1/*
f1123fc2 115
6d32792e
ER
116%files doc
117%defattr(644,root,root,755)
118%doc %{name}-%{version}-doc/html/*
119
f1123fc2
JR
120%files -n bash-completion-darcs
121%defattr(644,root,root,755)
122%{_sysconfdir}/bash_completion.d/%{name}
This page took 0.085826 seconds and 4 git commands to generate.