+#
+# TODO:
+# Setup.lhs: At least the following dependencies are missing:
+# hashed-storage >=0.3.8 && <0.4 && >=0.3.8 && <0.4,
+# haskeline >=0.6.1 && <0.7 && >=0.6.1 && <0.7
+# utf8-string ==0.3.* && ==0.3.*,
+# zlib >=0.5.1.0 && <0.6.0.0 && >=0.5.1.0 && <0.6.0.0 && >=0.5.1.0 && <0.6.0.0
+#
Summary: David's Advanced Revision Control System - yet another replacement for CVS
-Summary(pl): David's Advanced Revision Control System - jeszcze jeden zamiennik CVS-a
+Summary(pl.UTF-8): David's Advanced Revision Control System - jeszcze jeden zamiennik CVS-a
Name: darcs
-Version: 1.0.6
-Release: 1
+Version: 2.4
+Release: 0.1
License: GPL v2
Group: Development/Version Control
-Source0: http://abridgegame.org/darcs/%{name}-%{version}.tar.gz
-# Source0-md5: 8f3a1ee21b7bfbcca11bf4f9f0042cfd
-URL: http://abridgegame.org/darcs/
-BuildRequires: curl-devel
+Source0: http://darcs.net/releases/%{name}-%{version}.tar.gz
+# Source0-md5: 169a6d245a33da97b2daa0eda60b28e5
+URL: http://darcs.net/
BuildRequires: ghc >= 6.2
-BuildRequires: ncurses-devel
-BuildRequires: readline-devel
-BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
X, FreeBSD, OpenBSD and Microsoft Windows. Darcs includes a CGI
script, which can be used to view the contents of your repository.
-%description -l pl
+%description -l pl.UTF-8
David's Advanced Revision Control System (zaawansowany system kontroli
wersji Davida) to jeszcze jeden zamiennik CVS-a. Jest napisany w
-Haskellu, dotychczas by³ u¿ywany na Linuksie, MacOS-ie X, FreeBSD,
-OpenBSD i Microsoft Windows. Darcs zawiera skrypt CGI, który mo¿e byæ
-u¿ywany do ogl±dania zawarto¶ci repozytorium.
+Haskellu, dotychczas był używany na Linuksie, MacOS-ie X, FreeBSD,
+OpenBSD i Microsoft Windows. Darcs zawiera skrypt CGI, który może być
+używany do oglądania zawartości repozytorium.
%prep
%setup -q
%build
-CPPFLAGS="-I/usr/include/ncurses"
-%configure
-%{__make}
+runhaskell Setup.lhs configure --prefix=%{_prefix}
+runhaskell Setup.lhs build
%install
rm -rf $RPM_BUILD_ROOT
-
-%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
-
-rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
+runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT