2013-09-11 08:55:33 +02:00
|
|
|
#
|
|
|
|
# spec file for package fence-agents
|
|
|
|
#
|
2017-02-01 19:40:51 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX 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
|
2017-08-28 11:35:48 +02:00
|
|
|
Version: 4.0.25+git.1501671877.7bae40a0
|
2013-10-31 20:06:59 +01:00
|
|
|
Release: 0
|
2015-04-07 11:35:53 +02:00
|
|
|
Url: https://github.com/ClusterLabs/fence-agents
|
2016-12-01 14:22:57 +01:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2016-02-22 10:28:31 +01:00
|
|
|
# PATCH-FIX-UPSTREAM: fence_compute: Only list nova-compute services when getting status
|
2016-12-01 14:22:57 +01:00
|
|
|
Patch1: 0001-fence_compute-Only-list-nova-compute-services-when-g.patch
|
2016-06-30 12:01:27 +02:00
|
|
|
# PATCH-FIX-UPSTREAM: fence_compute: On list, don't list hypervisors but nova-compute services
|
2016-12-01 14:22:57 +01:00
|
|
|
Patch2: 0002-fence_compute-Don-t-list-hypervisors-but-nova-comput.patch
|
2016-06-30 12:01:27 +02:00
|
|
|
# PATCH-FIX-UPSTREAM: fence_compute: Do not override domain if it is already correct
|
2016-12-01 14:22:57 +01:00
|
|
|
Patch3: 0003-fence_compute-Do-not-override-domain-if-it-is-alread.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: fence_compute: Fix handling of domain == None
|
|
|
|
Patch4: 0004-fence_compute-Fix-handling-of-domain-None.patch
|
2016-06-30 12:01:27 +02:00
|
|
|
# PATCH-FIX-UPSTREAM: fence_compute: Fix fix_domain to not return too early
|
2016-12-01 14:22:57 +01:00
|
|
|
Patch5: 0005-fence_compute-Fix-fix_domain-to-not-return-too-early.patch
|
2016-06-30 12:01:27 +02:00
|
|
|
# PATCH-FIX-UPSTREAM: fence_compute: Fix fix_plug_name when looking if plug has domain
|
2016-12-01 14:22:57 +01:00
|
|
|
Patch6: 0006-fence_compute-Fix-fix_plug_name-when-looking-if-plug.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: fence_compute: Remove duplicate check for binary name
|
|
|
|
Patch7: 0007-fence_compute-Remove-duplicate-check-for-binary-name.patch
|
2016-06-30 12:01:27 +02:00
|
|
|
# PATCH-FIX-UPSTREAM: fence_compute: Fix disabling force_down on node when action is on
|
|
|
|
Patch9: 0009-fence_compute-Fix-disabling-force_down-on-node-when-.patch
|
2014-09-16 09:48:32 +02:00
|
|
|
|
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
|
2016-01-27 11:28:56 +01:00
|
|
|
BuildRequires: fdupes
|
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
|
2017-08-28 11:35:48 +02:00
|
|
|
BuildRequires: openwsman-python
|
2013-10-31 20:06:59 +01:00
|
|
|
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
|
|
|
|
|
|
|
Requires: net-snmp
|
|
|
|
Requires: openssh
|
2013-10-31 20:06:59 +01:00
|
|
|
Requires: perl-Net-Telnet
|
2016-01-27 11:28:56 +01:00
|
|
|
Requires: python-curl
|
|
|
|
Requires: python-openssl
|
|
|
|
Requires: python-pexpect
|
|
|
|
Requires: python-requests
|
|
|
|
Requires: python-suds
|
2013-10-31 20:06:59 +01:00
|
|
|
Requires: sg3_utils
|
|
|
|
Requires: telnet
|
2017-02-14 15:46:03 +01:00
|
|
|
|
2013-09-11 08:55:33 +02:00
|
|
|
# This is required by fence_virsh. Per discussion on fedora-devel
|
|
|
|
# switching from package to file based require.
|
2017-02-14 15:46:03 +01:00
|
|
|
Recommends: /usr/bin/virsh
|
2013-09-11 08:55:33 +02:00
|
|
|
|
|
|
|
# This is required by fence_ipmilan. it appears that the packages
|
|
|
|
# have changed Requires around. Make sure to get the right one.
|
2017-02-14 15:46:03 +01:00
|
|
|
Recommends: /usr/bin/ipmitool
|
|
|
|
|
|
|
|
Recommends: openwsman-python
|
2013-09-11 08:55:33 +02:00
|
|
|
|
2016-01-27 11:28:56 +01:00
|
|
|
%if 0%{?with_regression_tests}
|
|
|
|
BuildRequires: time
|
|
|
|
%endif
|
|
|
|
|
2013-09-11 08:55:33 +02:00
|
|
|
%description
|
|
|
|
Fence Agents is a collection of scripts to handle remote power
|
|
|
|
management for several devices.
|
|
|
|
|
2016-01-27 11:28:56 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Fence Agents for Pacemaker from RHCS
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
Requires: %{name} = %{version}
|
2013-09-11 08:55:33 +02:00
|
|
|
|
2016-01-27 11:28:56 +01:00
|
|
|
%description devel
|
2013-09-11 08:55:33 +02:00
|
|
|
Fence Agents is a collection of scripts to handle remote power
|
2016-01-27 11:28:56 +01:00
|
|
|
management for several devices. This package contains
|
|
|
|
fence agents only suitable for development.
|
2013-09-11 08:55:33 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
2016-02-22 10:28:31 +01:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
2016-06-30 12:01:27 +02:00
|
|
|
%patch9 -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
|
2016-01-27 11:28:56 +01:00
|
|
|
chmod 0755 %{buildroot}%{_datadir}/fence/fenc*.py
|
2013-09-11 08:55:33 +02:00
|
|
|
# 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}
|
2016-01-27 11:28:56 +01:00
|
|
|
%fdupes %buildroot%{_sbindir}
|
|
|
|
%fdupes %buildroot%{_datadir}/cluster
|
2013-09-11 08:55:33 +02:00
|
|
|
|
2016-01-27 11:28:56 +01:00
|
|
|
%if 0%{?with_regression_tests}
|
|
|
|
%check
|
|
|
|
make check
|
|
|
|
PYTHONPATH=fence/agents/lib python fence/agents/lib/tests/test_fencing.py
|
|
|
|
%endif
|
2013-09-11 08:55:33 +02:00
|
|
|
|
2014-12-15 14:55:47 +01:00
|
|
|
%files
|
2013-09-11 08:55:33 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc doc/COPYING.* doc/COPYRIGHT doc/README.licence
|
|
|
|
%dir %{plugin_dir}
|
|
|
|
%dir %{_libdir}/stonith/plugins
|
|
|
|
%dir %{_libdir}/stonith
|
|
|
|
%{_datadir}/fence
|
|
|
|
%{_datadir}/cluster
|
|
|
|
%{plugin_dir}/fence_cisco_ucs
|
|
|
|
%{_sbindir}/fence_*
|
2014-05-15 11:25:41 +02:00
|
|
|
%exclude %{_sbindir}/fence_dummy
|
|
|
|
%exclude %{_mandir}/man8/fence_dummy*
|
2013-09-11 08:55:33 +02:00
|
|
|
%{_mandir}/man8/fence_*
|
2013-09-11 13:24:08 +02:00
|
|
|
%{_libexecdir}/fence_*
|
2013-09-11 08:55:33 +02:00
|
|
|
|
2016-01-27 11:28:56 +01:00
|
|
|
%files devel
|
|
|
|
%{_sbindir}/fence_dummy
|
|
|
|
%{_mandir}/man8/fence_dummy*
|
|
|
|
|
2013-09-11 08:55:33 +02:00
|
|
|
%changelog
|