LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File fence.spec of Package fence (Project home:pmullaney:baracus)

###############################################################################
###############################################################################
##
##  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 fence_major 2
%define fence_minor 0.98
%define fence_find_requires %{_builddir}/fence-find-requires
%define _use_internal_dependency_generator 0

Name: fence
Version: %{fence_major}.%{fence_minor}
Release: 1
License: GPL
Group: System Environment/Base
Summary: Fence - The Baracus BMC controller agents

URL: http://sources.redhat.com/cluster/
Source0: %{name}-%{version}.tar.bz2

Requires: python-pexpect python-openssl

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
fence - The Baracus BMC controller agents

%prep
%setup -q

%{__cat} <<EOF >%{fence_find_requires}
#!/bin/sh
%{__find_requires} | grep -v '^perl(Net::SSLeay'
exit 0
EOF
chmod +x %{fence_find_requires}
%define __find_requires %{fence_find_requires}

%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,-)
/sbin/*
%dir /usr/lib/fence
/usr/lib/fence/*
%dir %{_datadir}/snmp
%{_datadir}/snmp/*
 
%doc
#%{_mandir}

%changelog
* Mon Nov 23 2009 dwestervelt <dwestervelt@novell.com>
- Initial Baracus BMC controllers (via RH fence agents)