--- /dev/null
+--- cluster-2.00.00/fence/fenced/Makefile~ 2007-04-03 15:10:16.000000000 +0000
++++ cluster-2.00.00/fence/fenced/Makefile 2007-04-03 15:13:45.221772000 +0000
+@@ -35,9 +35,8 @@
+ group.o \
+ member_cman.o \
+ agent.o \
+- ../../ccs/lib/libccs.a \
+ ../../group/lib/libgroup.a
+- $(CC) $(LDFLAGS) -o $@ $^ -lcman
++ $(CC) $(LDFLAGS) -o $@ $^ -lcman -lccs
+
+ main.o: main.c fd.h
+ $(CC) $(CFLAGS) -c -o $@ $<
Group: Applications/System
Source0: ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz
# Source0-md5: 2ef3f4ba9d3c87b50adfc9b406171085
+Patch0: %{name}-antistatic.patch
URL: http://sources.redhat.com/cluster/fence/
BuildRequires: cman-devel
+BuildRequires: ccs-devel
BuildRequires: perl-base
BuildRequires: rpm-pythonprov
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q -n cluster-%{version}
+%patch0 -p1
cd %{name}
%{__perl} -pi -e 's/-Wall/%{rpmcflags} -Wall/' make/defines.mk.input
%{__perl} -pi -e 's@${top_srcdir}/../group/lib/libgroup.a@@' fence/fence_tool/Makefile
%build
+# libgroup.a is not packaged in group.spec, we must build it here
+%{__make} -C group/lib
cd %{name}
./configure \
--incdir=%{_includedir} \