blob: e5733103d1dc00c1171af05fdac9f342c2367b99 [file] [log] [blame]
###############################################################################
###############################################################################
##
## Copyright (C) 2004-2011 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.
##
###############################################################################
###############################################################################
# keep around ready for later user
## global alphatag git0a6184070
Name: fence-agents
Summary: Fence Agents for Red Hat Cluster
Version: %{version}
# Release: 61%{?alphatag:.%{alphatag}}%{?dist}.2
Release: %{release}%{?dist}
License: GPLv2+ and LGPLv2+
Group: System Environment/Base
URL: http://sources.redhat.com/cluster/wiki/
#Source0: https://fedorahosted.org/releases/f/e/fence-agents/%{name}-%{version}.tar.bz2
Source0: https://github.com/ClusterLabs/resource-agents/%{name}-%{version}.tar.bz2
ExclusiveArch: i686 x86_64
# shipped agents
%global supportedagents apc apc_snmp bladecenter brocade cisco_mds cisco_ucs drac drac5 eaton_snmp emerson eps hpblade kdump ibmblade ifmib ilo ilo_moonshot ilo_mp ilo_ssh intelmodular ipdu ipmilan ipmilan_actifio manual mpath rhevm rsb scsi wti vmware_soap
%global deprecated rsa sanbox2
%global testagents virsh vmware
%global requiresthirdparty egenera
## Runtime deps
Requires: sg3_utils telnet openssh-clients
Requires: pexpect net-snmp-utils
Requires: perl-Net-Telnet python-pycurl pyOpenSSL
Requires: python-suds gnutls-utils
Requires: platformmgr
# This is required by fence_virsh. Per discussion on fedora-devel
# switching from package to file based require.
Requires: /usr/bin/virsh
# This is required by fence_ipmilan. it appears that the packages
# have changed Requires around. Make sure to get the right one.
Requires: /usr/bin/ipmitool
## Setup/build bits
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
# Build dependencies
BuildRequires: perl python
BuildRequires: glibc-devel
BuildRequires: nss-devel nspr-devel
BuildRequires: libxslt pexpect
BuildRequires: python-pycurl
BuildRequires: python-suds
BuildRequires: automake autoconf pkgconfig libtool
BuildRequires: net-snmp-utils perl-Net-Telnet
BuildRequires: device-mapper-multipath
BuildRequires: openwsman-python
%prep
%setup -q -n %{name}-%{version}
%build
./autogen.sh
%{configure} \
--with-agents='%{supportedagents} %{deprecated} %{testagents} %{requiresthirdparty}'
CFLAGS="$(echo '%{optflags}')" make %{_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
## tree fix up
# fix libfence permissions
chmod 0755 %{buildroot}%{_datadir}/fence/*.py
# remove docs
rm -rf %{buildroot}/usr/share/doc/fence-agents
# compatibility symlink bladecenter_snmp to ibmblade
ln -sf %{_sbindir}/fence_ibmblade %{buildroot}/%{_sbindir}/fence_bladecenter_snmp
ln -sf %{_mandir}/man8/fence_ibmblade.8.gz %{buildroot}/%{_mandir}/man8/fence_bladecenter_snmp.8.gz
%clean
rm -rf %{buildroot}
%post
ccs_update_schema > /dev/null 2>&1 ||:
%description
Red Hat Fence Agents is a collection of scripts to handle remote
power management for several devices.
%files
%defattr(-,root,root,-)
%doc doc/COPYING.* doc/COPYRIGHT doc/README.licence
%{_sbindir}/fence*
%{_datadir}/fence
%{_datadir}/cluster
%{_mandir}/man8/fence*
%changelog
* Fri Nov 3 2017 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.0.15-13.2
- fence_rhevm: add "--api-path" and "--disable-http-filter" to be
able to explicitly use oVirt API version 3
Resolves: rhbz#1506694