# # spec file for package fence-agents # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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 License: GPL-2.0 and LGPL-2.1 Group: Productivity/Clustering/HA Version: 4.0.9 Release: 0 Url: http://git.fedorahosted.org/git/fence-agents.git Source0: %{name}-%{version}.tar.xz Requires: python-curl Requires: python-openssl Requires: python-pexpect BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake BuildRequires: glibc-devel BuildRequires: libtool BuildRequires: libxml2-tools BuildRequires: libxslt BuildRequires: mozilla-nspr-devel BuildRequires: mozilla-nss-devel BuildRequires: perl BuildRequires: perl-Net-Telnet BuildRequires: pkg-config BuildRequires: python BuildRequires: python-curl BuildRequires: python-pexpect BuildRequires: python-suds BuildRequires: python-xml BuildRequires: xz %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 Requires: perl-Net-Telnet Requires: sg3_utils Requires: telnet # 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 Adam Manthei A. J. Lewis Alasdair G. Kergon Andrew Price Benjamin Marzinski Bob Peterson Chris Feist Christine Caulfield Daniel Phillips David Teigland Fabio M. Di Nitto James Parsons Joel Becker Jonathan Brassow jparsons Ken Preslan Lon Hohberger Marc - A. Dahlhaus Marek 'marx' Grac Mark Hlawatschek Michael Conrad Tadpol Tilstra Patrick Caulfield Robert Peterson Ross Vandegrift Ryan McCabe Ryan O'Hara Stanko Kupcevic Steven Whitehouse Wendy Cheng %description -n fence-agents-unsupported Fence Agents is a collection of scripts to handle remote power management for several devices. Authors: -------- Abhijith Das Adam Manthei A. J. Lewis Alasdair G. Kergon Andrew Price Benjamin Marzinski Bob Peterson Chris Feist Christine Caulfield Daniel Phillips David Teigland Fabio M. Di Nitto James Parsons Joel Becker Jonathan Brassow jparsons Ken Preslan Lon Hohberger Marc - A. Dahlhaus Marek 'marx' Grac Mark Hlawatschek Michael Conrad Tadpol Tilstra Patrick Caulfield Robert Peterson Ross Vandegrift Ryan McCabe Ryan O'Hara Stanko Kupcevic Steven Whitehouse Wendy Cheng %prep %setup -q -n %{name}-%{version} %build CFLAGS="${CFLAGS} ${RPM_OPT_FLAGS}" export CFLAGS ./autogen.sh %{configure} make %{_smp_mflags} %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 #%%dir %%{_sysconfdir}/cluster %dir %{plugin_dir} %dir %{_libdir}/stonith/plugins %dir %{_libdir}/stonith %{_datadir}/fence %{_datadir}/cluster #%%{_sbindir}/fence_cisco_ucs #%%{_mandir}/man8/fence_cisco_ucs* %{plugin_dir}/fence_cisco_ucs #%%files -n fence-agents-unsupported #%%defattr(-,root,root,-) #%%config(noreplace) %%{_sysconfdir}/cluster/fence_na.conf %{_sbindir}/fence_* #%%exclude %%{_sbindir}/fence_cisco_ucs %exclude %{_sbindir}/fence_dummy %exclude %{_mandir}/man8/fence_dummy* %{_mandir}/man8/fence_* #%%exclude %%{_mandir}/man8/fence_cisco_ucs* %{_libexecdir}/fence_* %changelog