Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > by-pkgid > f38c674dab894b663259b555b9104ecb > files > 2

darcs-1.0.3-1mdk.src.rpm

%define name darcs
%define version 1.0.3
%define release 1

Summary: David's Advanced Revision Control System
Name: %{name}
Version: %version
Release: %mkrel %release
Source0: %{name}-%{version}.tar.bz2
License: GPL
Group: Development/Other
Url: http://abridgegame.org/darcs/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: ghc

%description
Darcs is a revision control system, along the lines of CVS
or arch. That means that it keeps track of various revisions
and branches of your project, allows for changes to
propogate from one branch to another. Darcs is intended to
be an ``advanced'' revision control system. Darcs has two
particularly distinctive features which differ from other
revision control systems: 1) each copy of the source is a
fully functional branch, and 2) underlying darcs is a
consistent and powerful theory of patches.

%package server
Summary: David's advanced revision control system Server
Group: Development/Other
Requires: webserver

%description server
Darcs is a revision control system, along the lines of CVS
or arch. That means that it keeps track of various revisions
and branches of your project, allows for changes to
propogate from one branch to another. Darcs is intended to
be an ``advanced'' revision control system. Darcs has two
particularly distinctive features which differ from other
revision control systems: 1) each copy of the source is a
fully functional branch, and 2) underlying darcs is a
consistent and powerful theory of patches.

This package contains the darcs cgi server program.

%prep
%setup -q

%build
%configure
%make all
PATH="$PATH:$PWD" make check

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=%{buildroot}  installbin installserver manual/index.html
# yes, it is a hack
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/www/
mv -f $RPM_BUILD_ROOT/%{_libdir}/cgi-bin/ $RPM_BUILD_ROOT/%{_localstatedir}/www/cgi/



%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS manual 
%config(noreplace) %{_sysconfdir}/bash_completion.d/darcs
%{_bindir}/darcs
%{_mandir}/man1/darcs*

%files server
%defattr(-,root,root,-)
%{_localstatedir}/www/cgi/*
%{_sbindir}/darcs-createrepo
%config(noreplace) %{_sysconfdir}/darcs
%{_datadir}/darcs

%changelog
* Thu May 27 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 1.0.3-1mdk
- New release 1.0.3 (also fix build with ghc 6.4)
- use mkrel

* Tue Feb 22 2005 Michael Scherer <misc@mandrake.org> 1.0.2-1mdk
- Initial package, based on haskell.org spec file.