2013-09-11 08:55:33 +02:00
|
|
|
#
|
|
|
|
# spec file for package fence-agents
|
|
|
|
#
|
2014-01-11 14:49:50 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-09-11 08:55:33 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global plugin_dir %{_libdir}/stonith/plugins/rhcs
|
|
|
|
|
|
|
|
Name: fence-agents
|
|
|
|
Summary: Fence Agents for Pacemaker from RHCS
|
2013-09-11 13:24:08 +02:00
|
|
|
License: GPL-2.0 and LGPL-2.1
|
2013-09-11 08:55:33 +02:00
|
|
|
Group: Productivity/Clustering/HA
|
2014-07-01 14:33:15 +02:00
|
|
|
Version: 4.0.10
|
2013-10-31 20:06:59 +01:00
|
|
|
Release: 0
|
2013-09-11 08:55:33 +02:00
|
|
|
Url: http://git.fedorahosted.org/git/fence-agents.git
|
2014-05-15 11:25:41 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2014-09-16 09:48:32 +02:00
|
|
|
|
|
|
|
# PATCH-FIX-UPSTREAM: fence_brocade: Add support for 'list' action
|
|
|
|
Patch1: 0001-fence_brocade-Add-support-for-list-action.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: fencing: Monitor is not working correctly without 'list' or 'status'
|
|
|
|
Patch2: 0002-fencing-Monitor-is-not-working-correctly-without-lis.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: fence_apc_snmp: Add support for firmware 6.x
|
|
|
|
Patch3: 0003-fence_apc_snmp-Add-support-for-firmware-6.x.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: fence_zvm: Add support for "on" and "status"
|
|
|
|
Patch4: 0004-fence_zvm-Add-support-for-on-and-status.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: fence_zvm: Add current XML metadata to test suite
|
|
|
|
Patch5: 0005-fence_zvm-Add-current-XML-metadata-to-test-suite.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: [build] Fix automake files, so 'make distcheck' works
|
|
|
|
Patch6: 0006-build-Fix-automake-files-so-make-distcheck-works.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: fencing: Add new options --ssl-secure and --ssl-insecure
|
|
|
|
Patch7: 0007-fencing-Add-new-options-ssl-secure-and-ssl-insecure.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: [tests] Update XML metadata of fence agents
|
|
|
|
Patch8: 0008-tests-Update-XML-metadata-of-fence-agents.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: fence_cisco_ucs & fence_vmware_soap: Logout has to be performed even when fencing fails
|
|
|
|
Patch9: 0009-fence_cisco_ucs-fence_vmware_soap-Logout-has-to-be-p.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: fence_zvm: Fixes for better upstream inclusion
|
|
|
|
Patch10: 0010-fence_zvm-Fixes-for-better-upstream-inclusion.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: fence_zvm: Add support for 'on', improve documentation
|
|
|
|
Patch11: 0011-fence_zvm-Add-support-for-on-improve-documentation.patch
|
|
|
|
|
2013-09-11 08:55:33 +02:00
|
|
|
Requires: python-curl
|
|
|
|
Requires: python-openssl
|
2013-10-31 20:06:59 +01:00
|
|
|
Requires: python-pexpect
|
2014-09-16 09:48:32 +02:00
|
|
|
Requires: python-requests
|
2014-10-06 10:59:02 +02:00
|
|
|
Requires: python-suds
|
2013-09-11 08:55:33 +02:00
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-05-15 11:25:41 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2013-09-11 08:55:33 +02:00
|
|
|
BuildRequires: glibc-devel
|
2014-05-15 11:25:41 +02:00
|
|
|
BuildRequires: libtool
|
2013-10-31 20:06:59 +01:00
|
|
|
BuildRequires: libxml2-tools
|
2013-09-11 08:55:33 +02:00
|
|
|
BuildRequires: libxslt
|
2013-10-31 20:06:59 +01:00
|
|
|
BuildRequires: mozilla-nspr-devel
|
|
|
|
BuildRequires: mozilla-nss-devel
|
|
|
|
BuildRequires: perl
|
2013-09-11 09:17:43 +02:00
|
|
|
BuildRequires: perl-Net-Telnet
|
2013-10-31 20:06:59 +01:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: python
|
|
|
|
BuildRequires: python-curl
|
|
|
|
BuildRequires: python-pexpect
|
2014-09-16 09:48:32 +02:00
|
|
|
BuildRequires: python-requests
|
2013-10-31 20:06:59 +01:00
|
|
|
BuildRequires: python-suds
|
|
|
|
BuildRequires: python-xml
|
|
|
|
BuildRequires: xz
|
2013-09-11 08:55:33 +02:00
|
|
|
|
|
|
|
%package -n fence-agents-unsupported
|
|
|
|
Summary: Fence Agents for Pacemaker from RHCS
|
|
|
|
Group: Productivity/Clustering/HA
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
# These are requirements of specific fencing agents; when moving the
|
|
|
|
# agent over to the supported main package, make sure to also shift the
|
|
|
|
# Requires if needed
|
|
|
|
Requires: net-snmp
|
|
|
|
Requires: openssh
|
2013-10-31 20:06:59 +01:00
|
|
|
Requires: perl-Net-Telnet
|
|
|
|
Requires: sg3_utils
|
|
|
|
Requires: telnet
|
2013-09-11 08:55:33 +02:00
|
|
|
# for fence_vmware_soap:
|
|
|
|
Requires: python-suds
|
|
|
|
# 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
|
|
|
|
|
|
|
|
%description
|
|
|
|
Fence Agents is a collection of scripts to handle remote power
|
|
|
|
management for several devices.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Abhijith Das <adas@redhat.com>
|
|
|
|
Adam Manthei <amanthei@redhat.com>
|
|
|
|
A. J. Lewis <alewis@redhat.com>
|
|
|
|
Alasdair G. Kergon <agk@redhat.com>
|
|
|
|
Andrew Price <andy@andrewprice.me.uk>
|
|
|
|
Benjamin Marzinski <bmarzins@redhat.com>
|
|
|
|
Bob Peterson <rpeterso@redhat.com>
|
|
|
|
Chris Feist <cfeist@redhat.com>
|
|
|
|
Christine Caulfield <ccaulfie@redhat.com>
|
|
|
|
Daniel Phillips <phillips@redhat.com>
|
|
|
|
David Teigland <teigland@redhat.com>
|
|
|
|
Fabio M. Di Nitto <fdinitto@redhat.com>
|
|
|
|
James Parsons <jparsons@redhat.com>
|
|
|
|
Joel Becker <joel.becker@oracle.com>
|
|
|
|
Jonathan Brassow <jbrassow@redhat.com>
|
|
|
|
jparsons <jparsons@redhat.com>
|
|
|
|
Ken Preslan <kpreslan@redhat.com>
|
|
|
|
Lon Hohberger <lhh@redhat.com>
|
|
|
|
Marc - A. Dahlhaus <mad@wol.de>
|
|
|
|
Marek 'marx' Grac <mgrac@redhat.com>
|
|
|
|
Mark Hlawatschek <hlawatschek@atix.de>
|
|
|
|
Michael Conrad Tadpol Tilstra <mtilstra@redhat.com>
|
|
|
|
Patrick Caulfield <pcaulfie@redhat.com>
|
|
|
|
Robert Peterson <rpeterso@redhat.com>
|
|
|
|
Ross Vandegrift <ross@kallisti.us>
|
|
|
|
Ryan McCabe <rmccabe@redhat.com>
|
|
|
|
Ryan O'Hara <rohara@redhat.com>
|
|
|
|
Stanko Kupcevic <kupcevic@redhat.com>
|
|
|
|
Steven Whitehouse <swhiteho@redhat.com>
|
|
|
|
Wendy Cheng <wcheng@redhat.com>
|
|
|
|
|
|
|
|
%description -n fence-agents-unsupported
|
|
|
|
Fence Agents is a collection of scripts to handle remote power
|
|
|
|
management for several devices.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Abhijith Das <adas@redhat.com>
|
|
|
|
Adam Manthei <amanthei@redhat.com>
|
|
|
|
A. J. Lewis <alewis@redhat.com>
|
|
|
|
Alasdair G. Kergon <agk@redhat.com>
|
|
|
|
Andrew Price <andy@andrewprice.me.uk>
|
|
|
|
Benjamin Marzinski <bmarzins@redhat.com>
|
|
|
|
Bob Peterson <rpeterso@redhat.com>
|
|
|
|
Chris Feist <cfeist@redhat.com>
|
|
|
|
Christine Caulfield <ccaulfie@redhat.com>
|
|
|
|
Daniel Phillips <phillips@redhat.com>
|
|
|
|
David Teigland <teigland@redhat.com>
|
|
|
|
Fabio M. Di Nitto <fdinitto@redhat.com>
|
|
|
|
James Parsons <jparsons@redhat.com>
|
|
|
|
Joel Becker <joel.becker@oracle.com>
|
|
|
|
Jonathan Brassow <jbrassow@redhat.com>
|
|
|
|
jparsons <jparsons@redhat.com>
|
|
|
|
Ken Preslan <kpreslan@redhat.com>
|
|
|
|
Lon Hohberger <lhh@redhat.com>
|
|
|
|
Marc - A. Dahlhaus <mad@wol.de>
|
|
|
|
Marek 'marx' Grac <mgrac@redhat.com>
|
|
|
|
Mark Hlawatschek <hlawatschek@atix.de>
|
|
|
|
Michael Conrad Tadpol Tilstra <mtilstra@redhat.com>
|
|
|
|
Patrick Caulfield <pcaulfie@redhat.com>
|
|
|
|
Robert Peterson <rpeterso@redhat.com>
|
|
|
|
Ross Vandegrift <ross@kallisti.us>
|
|
|
|
Ryan McCabe <rmccabe@redhat.com>
|
|
|
|
Ryan O'Hara <rohara@redhat.com>
|
|
|
|
Stanko Kupcevic <kupcevic@redhat.com>
|
|
|
|
Steven Whitehouse <swhiteho@redhat.com>
|
|
|
|
Wendy Cheng <wcheng@redhat.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
2014-09-16 09:48:32 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
2013-09-11 08:55:33 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="${CFLAGS} ${RPM_OPT_FLAGS}"
|
|
|
|
export CFLAGS
|
2014-05-15 11:25:41 +02:00
|
|
|
./autogen.sh
|
2013-09-11 08:55:33 +02:00
|
|
|
%{configure}
|
2014-05-19 14:04:01 +02:00
|
|
|
make
|
2013-09-11 08:55:33 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
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
|
|
|
|
# create links to agents in the plugins dir
|
|
|
|
mkdir -p %{buildroot}%{plugin_dir}
|
|
|
|
ln -s %{_sbindir}/fence_cisco_ucs %{buildroot}%{plugin_dir}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
if
|
|
|
|
[ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ]
|
|
|
|
then
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc doc/COPYING.* doc/COPYRIGHT doc/README.licence
|
2014-05-15 11:25:41 +02:00
|
|
|
#%%dir %%{_sysconfdir}/cluster
|
2013-09-11 08:55:33 +02:00
|
|
|
%dir %{plugin_dir}
|
|
|
|
%dir %{_libdir}/stonith/plugins
|
|
|
|
%dir %{_libdir}/stonith
|
|
|
|
%{_datadir}/fence
|
|
|
|
%{_datadir}/cluster
|
2014-05-15 11:25:41 +02:00
|
|
|
#%%{_sbindir}/fence_cisco_ucs
|
|
|
|
#%%{_mandir}/man8/fence_cisco_ucs*
|
2013-09-11 08:55:33 +02:00
|
|
|
%{plugin_dir}/fence_cisco_ucs
|
|
|
|
|
2014-05-15 11:25:41 +02:00
|
|
|
#%%files -n fence-agents-unsupported
|
|
|
|
#%%defattr(-,root,root,-)
|
|
|
|
#%%config(noreplace) %%{_sysconfdir}/cluster/fence_na.conf
|
2013-09-11 08:55:33 +02:00
|
|
|
%{_sbindir}/fence_*
|
2014-05-15 11:25:41 +02:00
|
|
|
#%%exclude %%{_sbindir}/fence_cisco_ucs
|
|
|
|
%exclude %{_sbindir}/fence_dummy
|
|
|
|
%exclude %{_mandir}/man8/fence_dummy*
|
2013-09-11 08:55:33 +02:00
|
|
|
%{_mandir}/man8/fence_*
|
2014-05-15 11:25:41 +02:00
|
|
|
#%%exclude %%{_mandir}/man8/fence_cisco_ucs*
|
2013-09-11 13:24:08 +02:00
|
|
|
%{_libexecdir}/fence_*
|
2013-09-11 08:55:33 +02:00
|
|
|
|
|
|
|
%changelog
|