2013-09-11 08:55:33 +02:00
|
|
|
#
|
|
|
|
# spec file for package fence-agents
|
|
|
|
#
|
2023-03-16 15:14:58 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
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.
|
|
|
|
|
2019-02-18 14:27:27 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-09-11 08:55:33 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-06-25 16:47:35 +02:00
|
|
|
%define python_version python3
|
|
|
|
|
2013-09-11 08:55:33 +02:00
|
|
|
%global plugin_dir %{_libdir}/stonith/plugins/rhcs
|
2023-03-20 12:21:14 +01:00
|
|
|
%define agent_list aliyun alom amt amt_ws apc apc_snmp azure_arm bladecenter brocade cisco_mds cisco_ucs compute docker drac5 dummy eaton_snmp emerson eps evacuate gce hds_cb hpblade ibmblade ibmz ifmib ilo ilo_moonshot ilo_mp ilo_ssh intelmodular ipdu ipmilan ironic kdump ldom lpar mpath netio openstack powerman pve raritan rcd_serial redfish rhevm rsa rsb sanbox2 sbd scsi vbox virsh vmware vmware_rest wti xenapi zvm
|
2013-09-11 08:55:33 +02:00
|
|
|
|
|
|
|
Name: fence-agents
|
2017-08-29 16:12:44 +02:00
|
|
|
Summary: Fence Agents for High Availability
|
2018-04-11 22:08:37 +02:00
|
|
|
License: GPL-2.0-only AND LGPL-2.1-only
|
2013-09-11 08:55:33 +02:00
|
|
|
Group: Productivity/Clustering/HA
|
2023-03-16 15:14:58 +01:00
|
|
|
Version: 4.12.1+git.1677142927.bf55c675
|
2013-10-31 20:06:59 +01:00
|
|
|
Release: 0
|
2021-02-03 11:01:55 +01:00
|
|
|
URL: https://github.com/ClusterLabs/fence-agents
|
2016-12-01 14:22:57 +01:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2017-11-01 10:31:59 +01:00
|
|
|
Patch1: 0001-Use-Python-3-for-all-scripts-bsc-1065966.patch
|
2014-09-16 09:48:32 +02:00
|
|
|
|
2013-09-11 08:55:33 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2018-06-25 16:47:35 +02:00
|
|
|
BuildRequires: %{python_version}
|
2018-06-25 16:55:47 +02:00
|
|
|
BuildRequires: python3-google-api-python-client
|
|
|
|
BuildRequires: python3-keystoneclient
|
|
|
|
BuildRequires: python3-novaclient
|
2023-03-20 12:21:14 +01:00
|
|
|
BuildRequires: python3-oauth2client
|
2022-04-13 07:45:40 +02:00
|
|
|
%if 0%{suse_version} >= 1550
|
|
|
|
BuildRequires: python3-oauth2
|
2018-06-25 16:47:35 +02:00
|
|
|
%endif
|
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
|
2021-04-19 18:55:48 +02:00
|
|
|
BuildRequires: libxml2-devel
|
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
|
2023-03-20 12:21:14 +01:00
|
|
|
BuildRequires: python3-openwsman
|
|
|
|
BuildRequires: python3-pexpect
|
|
|
|
BuildRequires: python3-pycurl
|
|
|
|
BuildRequires: python3-requests
|
|
|
|
BuildRequires: python3-xml
|
2013-10-31 20:06:59 +01:00
|
|
|
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
|
2023-03-20 12:21:14 +01:00
|
|
|
Requires: python3-pexpect
|
|
|
|
Requires: python3-pycurl
|
|
|
|
Requires: python3-requests
|
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
|
|
|
|
|
2017-11-21 09:58:39 +01:00
|
|
|
Recommends: python3-openwsman
|
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
|
2017-08-29 16:12:44 +02:00
|
|
|
Fence agents are device drivers able to prevent computers from
|
|
|
|
destroying data on shared storage. Their aim is to isolate a
|
|
|
|
corrupted computer by controlling power, network or storage
|
|
|
|
configuration. This package provides both a Python API for
|
|
|
|
creating agents as well as a collection of existing agents.
|
2013-09-11 08:55:33 +02:00
|
|
|
|
2019-06-12 10:10:54 +02:00
|
|
|
%package amt_ws
|
|
|
|
Summary: Fence Agent for Intel AMT (WS)
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Productivity/Clustering/HA
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description amt_ws
|
|
|
|
Fence agents are device drivers able to prevent computers from
|
|
|
|
destroying data on shared storage. Their aim is to isolate a
|
|
|
|
corrupted computer by controlling power, network or storage
|
|
|
|
configuration. This packages provides an agent for Intel AMT (WS).
|
|
|
|
|
2016-01-27 11:28:56 +01:00
|
|
|
%package devel
|
2017-08-29 16:12:44 +02:00
|
|
|
Summary: Fence Agents for High Availability
|
2019-06-12 10:10:54 +02:00
|
|
|
License: GPL-2.0-only AND LGPL-2.1-only
|
2016-01-27 11:28:56 +01:00
|
|
|
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
|
2017-08-29 16:12:44 +02:00
|
|
|
Fence agents are device drivers able to prevent computers from
|
|
|
|
destroying data on shared storage. Their aim is to isolate a
|
|
|
|
corrupted computer by controlling power, network or storage
|
|
|
|
configuration. This package provides agents suitable only 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
|
2013-09-11 08:55:33 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="${CFLAGS} ${RPM_OPT_FLAGS}"
|
|
|
|
export CFLAGS
|
2017-11-01 10:31:59 +01:00
|
|
|
PYTHON="%{_bindir}/python3"
|
2017-09-09 18:54:14 +02:00
|
|
|
export PYTHON
|
2021-04-19 18:55:48 +02:00
|
|
|
echo "%{version}" >.tarball-version
|
2014-05-15 11:25:41 +02:00
|
|
|
./autogen.sh
|
2017-08-29 16:12:44 +02:00
|
|
|
%{configure} --with-agents='%{agent_list}'
|
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
|
2021-02-03 11:01:55 +01:00
|
|
|
PYTHONPATH=fence/agents/lib "%{python_version}" fence/agents/lib/tests/test_fencing.py
|
2016-01-27 11:28:56 +01:00
|
|
|
%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,-)
|
2018-04-17 16:14:36 +02:00
|
|
|
%license doc/COPYING.* doc/COPYRIGHT doc/README.licence
|
2013-09-11 08:55:33 +02:00
|
|
|
%dir %{plugin_dir}
|
|
|
|
%dir %{_libdir}/stonith/plugins
|
|
|
|
%dir %{_libdir}/stonith
|
|
|
|
%{_datadir}/fence
|
|
|
|
%{_datadir}/cluster
|
|
|
|
%{plugin_dir}/fence_cisco_ucs
|
|
|
|
%{_sbindir}/fence_*
|
2019-06-12 10:23:46 +02:00
|
|
|
%exclude %{_sbindir}/fence_amt_ws
|
|
|
|
%exclude %{_mandir}/man8/fence_amt_ws*
|
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
|
|
|
|
2019-06-12 10:10:54 +02:00
|
|
|
%files amt_ws
|
|
|
|
%{_sbindir}/fence_amt_ws
|
2019-07-01 13:37:59 +02:00
|
|
|
%{_mandir}/man8/fence_amt_ws*
|
2019-06-12 10:10:54 +02:00
|
|
|
|
2016-01-27 11:28:56 +01:00
|
|
|
%files devel
|
2021-04-19 18:55:48 +02:00
|
|
|
/usr/share/pkgconfig/fence-agents.pc
|
2016-01-27 11:28:56 +01:00
|
|
|
%{_sbindir}/fence_dummy
|
|
|
|
%{_mandir}/man8/fence_dummy*
|
|
|
|
|
2013-09-11 08:55:33 +02:00
|
|
|
%changelog
|