###############################################################################
###############################################################################
##
##  Copyright (C) 2004 Red Hat, Inc.  All rights reserved.
##
##  This copyrighted material is made available to anyone wishing to use,
##  modify, copy, or redistribute it subject to the terms and conditions
##  of the GNU General Public License v.2.
##
###############################################################################
###############################################################################
%define vers @VERS@
%define rel @REL@

Name: cman
Version: %vers
Release: %rel
License: GPL
Group: System Environment/Base
Summary: cman - The Cluster Manager
BuildRequires: cman-kernheaders >= 2.6.9
BuildRequires: ccs-devel
Conflicts: GFS <= 6.0
Conflicts: GFS-modules
Requires: ccs
Requires: cman-kernel >= 2.6.9

Source0: %{name}-%{version}-%{release}.tar.gz

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
cman - The Cluster Manager

%prep
%setup -q 

%build
./configure --mandir=%{_mandir}
make

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
# Binaries
/sbin/cman_tool

%doc
%{_mandir}

%changelog
* Fri Oct 22 2004 Chris Feist <cfeist@redhat.com>
- various bug fixes (new upstream sources)
* Mon Aug 16 2004 Jon Brassow <jbrassow@redhat.com>
- update the requirements field
* Fri Aug 13 2004 Jon Brassow <jbrassow@redhat.com>
- various bug fixes (new upstream sources)
- add man pages
* Wed Jul 14 2004 Jon Brassow <jbrassow@redhat.com>
- build for i386 and x86_64 only
* Tue Jul 13 2004 Jon Brassow <jbrassow@redhat.com> 
- New upstream sources
* Thu Jun 17 2004 Jon Brassow <jbrassow@redhat.com> 
- Initial build.


