2009-07-31 05:47:06 +00:00
|
|
|
%global gname haclient
|
|
|
|
%global uname hacluster
|
2009-10-29 12:57:06 +00:00
|
|
|
%global pcmk_docdir %{_docdir}/%{name}
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2015-10-13 19:04:29 +00:00
|
|
|
%global specversion 2.rev3
|
2015-08-20 05:01:03 +00:00
|
|
|
%global commit 6052cd16c2f455809f8088af76ce86483bf98353
|
2014-10-28 06:17:35 +00:00
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
%global github_owner ClusterLabs
|
2011-09-26 03:38:06 +00:00
|
|
|
|
2013-06-16 23:22:55 +00:00
|
|
|
# Turn off the auto compilation of python files not in the site-packages directory
|
|
|
|
# Needed so that the -devel package is multilib compliant
|
|
|
|
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
|
|
|
|
|
2015-10-13 17:10:12 +00:00
|
|
|
%global rawhide %(test ! -e /etc/yum.repos.d/fedora-rawhide.repo; echo $?)
|
2015-10-13 19:04:29 +00:00
|
|
|
%global cs_version %(pkg-config corosync --modversion | awk -F . '{print $1}')
|
|
|
|
%global py_site %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
|
2012-02-02 05:36:03 +00:00
|
|
|
|
2011-10-06 06:11:41 +00:00
|
|
|
# Conditionals
|
|
|
|
# Invoke "rpmbuild --without <feature>" or "rpmbuild --with <feature>"
|
|
|
|
# to disable or enable specific features
|
2011-09-26 03:38:06 +00:00
|
|
|
|
2012-08-07 22:46:33 +00:00
|
|
|
# Legacy stonithd fencing agents
|
|
|
|
%bcond_with stonithd
|
2010-05-12 11:11:52 +00:00
|
|
|
|
2011-09-26 03:38:06 +00:00
|
|
|
# Build with/without support for profiling tools
|
|
|
|
%bcond_with profiling
|
2010-11-16 13:35:07 +00:00
|
|
|
|
2012-03-28 22:53:58 +00:00
|
|
|
# We generate docs using Publican, Asciidoc and Inkscape, but they're not available everywhere
|
|
|
|
%bcond_without doc
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2011-09-26 03:03:58 +00:00
|
|
|
# Use a different versioning scheme
|
2013-06-16 23:22:55 +00:00
|
|
|
%bcond_with pre_release
|
|
|
|
|
2013-06-20 06:29:04 +00:00
|
|
|
# Ship an Upstart job file
|
2013-06-16 23:22:55 +00:00
|
|
|
%bcond_with upstart_job
|
2009-10-29 12:57:06 +00:00
|
|
|
|
2011-09-26 03:38:06 +00:00
|
|
|
%if %{with profiling}
|
|
|
|
# This disables -debuginfo package creation and also the stripping binaries/libraries
|
|
|
|
# Useful if you want sane profiling data
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%endif
|
|
|
|
|
2011-09-26 03:03:58 +00:00
|
|
|
%if %{with pre_release}
|
2014-10-28 06:17:35 +00:00
|
|
|
%global pcmk_release 0.%{specversion}.%{shortcommit}.git
|
2011-09-26 03:03:58 +00:00
|
|
|
%else
|
|
|
|
%global pcmk_release %{specversion}
|
|
|
|
%endif
|
2009-10-29 12:57:06 +00:00
|
|
|
|
2011-10-06 06:11:41 +00:00
|
|
|
Name: pacemaker
|
|
|
|
Summary: Scalable High-Availability cluster resource manager
|
2015-08-20 05:01:03 +00:00
|
|
|
Version: 1.1.13
|
2015-10-13 18:15:44 +00:00
|
|
|
Release: %{pcmk_release}%{?dist}
|
2011-10-06 06:11:41 +00:00
|
|
|
License: GPLv2+ and LGPLv2+
|
|
|
|
Url: http://www.clusterlabs.org
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
|
2014-10-28 06:17:35 +00:00
|
|
|
Source0: https://github.com/%{github_owner}/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
|
|
|
|
|
2011-10-06 06:11:41 +00:00
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
AutoReqProv: on
|
|
|
|
Requires: resource-agents
|
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
Requires: %{name}-cluster-libs = %{version}-%{release}
|
|
|
|
Requires: %{name}-cli = %{version}-%{release}
|
2013-06-16 23:22:55 +00:00
|
|
|
|
2013-06-20 06:29:04 +00:00
|
|
|
%if %{defined systemd_requires}
|
|
|
|
%systemd_requires
|
2012-08-07 22:46:33 +00:00
|
|
|
%endif
|
|
|
|
|
2013-06-20 06:29:04 +00:00
|
|
|
%if 0%{?rhel} > 0
|
|
|
|
ExclusiveArch: i686 x86_64
|
2011-09-26 03:03:58 +00:00
|
|
|
%endif
|
2009-07-31 05:47:06 +00:00
|
|
|
|
|
|
|
# Required for core functionality
|
2011-10-06 06:11:41 +00:00
|
|
|
BuildRequires: automake autoconf libtool pkgconfig python libtool-ltdl-devel
|
2012-08-07 22:46:33 +00:00
|
|
|
BuildRequires: glib2-devel libxml2-devel libxslt-devel libuuid-devel
|
2012-03-28 22:53:58 +00:00
|
|
|
BuildRequires: pkgconfig python-devel gcc-c++ bzip2-devel pam-devel
|
|
|
|
|
2013-06-16 23:22:55 +00:00
|
|
|
# Required for agent_config.h which specifies the correct scratch directory
|
|
|
|
BuildRequires: resource-agents
|
|
|
|
|
|
|
|
# We need reasonably recent versions of libqb
|
|
|
|
BuildRequires: libqb-devel > 0.11.0
|
|
|
|
Requires: libqb > 0.11.0
|
|
|
|
|
2013-06-20 06:29:04 +00:00
|
|
|
# Enables optional functionality
|
|
|
|
BuildRequires: ncurses-devel openssl-devel libselinux-devel docbook-style-xsl
|
2014-02-18 02:47:36 +00:00
|
|
|
BuildRequires: bison byacc flex help2man dbus-devel
|
2013-06-20 06:29:04 +00:00
|
|
|
|
|
|
|
%if %{defined _unitdir}
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
%endif
|
|
|
|
|
2012-03-28 22:53:58 +00:00
|
|
|
%if 0%{?suse_version} >= 1100
|
|
|
|
# Renamed since opensuse-11.0
|
|
|
|
BuildRequires: libgnutls-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: gnutls-devel
|
|
|
|
%endif
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2012-03-28 22:53:58 +00:00
|
|
|
%if 0%{?fedora} > 0
|
|
|
|
%if 0%{?fedora} < 17
|
2011-10-06 06:11:41 +00:00
|
|
|
BuildRequires: clusterlib-devel
|
2012-03-28 22:53:58 +00:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?rhel} > 0
|
|
|
|
%if 0%{?rhel} < 7
|
|
|
|
BuildRequires: clusterlib-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2012-02-16 10:57:51 +00:00
|
|
|
Requires: corosync
|
2011-10-06 06:11:41 +00:00
|
|
|
BuildRequires: corosynclib-devel
|
2012-08-07 22:46:33 +00:00
|
|
|
|
|
|
|
%if %{with stonithd}
|
|
|
|
BuildRequires: cluster-glue-libs-devel
|
2010-05-12 11:11:52 +00:00
|
|
|
%endif
|
|
|
|
|
2012-03-28 22:53:58 +00:00
|
|
|
%if !%{rawhide}
|
|
|
|
# More often than not, inkscape is busted on rawhide, don't even bother
|
2011-09-26 03:03:58 +00:00
|
|
|
|
2012-03-28 22:53:58 +00:00
|
|
|
%if %{with doc}
|
2010-12-08 09:56:44 +00:00
|
|
|
%ifarch %{ix86} x86_64
|
2012-03-28 22:53:58 +00:00
|
|
|
BuildRequires: publican inkscape asciidoc
|
2011-09-26 03:03:58 +00:00
|
|
|
%endif
|
2009-07-31 05:47:06 +00:00
|
|
|
%endif
|
2012-03-28 22:53:58 +00:00
|
|
|
|
2010-06-21 14:53:35 +00:00
|
|
|
%endif
|
2009-07-31 05:47:06 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Pacemaker is an advanced, scalable High-Availability cluster resource
|
2013-06-20 06:29:04 +00:00
|
|
|
manager for Corosync, CMAN and/or Linux-HA.
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2013-06-20 06:29:04 +00:00
|
|
|
It supports more than 16 node clusters with significant capabilities
|
|
|
|
for managing resources and dependencies.
|
2009-07-31 05:47:06 +00:00
|
|
|
|
|
|
|
It will run scripts at initialization, when machines go up or down,
|
|
|
|
when related resources fail and can be configured to periodically check
|
|
|
|
resource health.
|
|
|
|
|
2011-09-26 03:38:06 +00:00
|
|
|
Available rpmbuild rebuild options:
|
2013-06-20 06:29:04 +00:00
|
|
|
--with(out) : stonithd doc profiling pre_release upstart_job
|
2011-09-26 03:38:06 +00:00
|
|
|
|
2011-09-26 03:03:58 +00:00
|
|
|
%package cli
|
2011-10-06 06:11:41 +00:00
|
|
|
License: GPLv2+ and LGPLv2+
|
|
|
|
Summary: Command line tools for controlling Pacemaker clusters
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
2013-06-16 23:22:55 +00:00
|
|
|
Requires: perl-TimeDate
|
2011-09-26 03:03:58 +00:00
|
|
|
|
|
|
|
%description cli
|
|
|
|
Pacemaker is an advanced, scalable High-Availability cluster resource
|
2013-06-20 06:29:04 +00:00
|
|
|
manager for Corosync, CMAN and/or Linux-HA.
|
2011-09-26 03:03:58 +00:00
|
|
|
|
2011-09-26 03:38:06 +00:00
|
|
|
The %{name}-cli package contains command line tools that can be used
|
|
|
|
to query and control the cluster from machines that may, or may not,
|
|
|
|
be part of the cluster.
|
2011-09-26 03:03:58 +00:00
|
|
|
|
|
|
|
%package -n %{name}-libs
|
2011-10-06 06:11:41 +00:00
|
|
|
License: GPLv2+ and LGPLv2+
|
|
|
|
Summary: Core Pacemaker libraries
|
|
|
|
Group: System Environment/Daemons
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2011-09-26 03:03:58 +00:00
|
|
|
%description -n %{name}-libs
|
2009-07-31 05:47:06 +00:00
|
|
|
Pacemaker is an advanced, scalable High-Availability cluster resource
|
2013-06-20 06:29:04 +00:00
|
|
|
manager for Corosync, CMAN and/or Linux-HA.
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2011-09-26 03:38:06 +00:00
|
|
|
The %{name}-libs package contains shared libraries needed for cluster
|
|
|
|
nodes and those just running the CLI tools.
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2011-09-26 03:38:06 +00:00
|
|
|
%package -n %{name}-cluster-libs
|
2011-10-06 06:11:41 +00:00
|
|
|
License: GPLv2+ and LGPLv2+
|
|
|
|
Summary: Cluster Libraries used by Pacemaker
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
2011-09-26 03:38:06 +00:00
|
|
|
|
|
|
|
%description -n %{name}-cluster-libs
|
|
|
|
Pacemaker is an advanced, scalable High-Availability cluster resource
|
2013-06-20 06:29:04 +00:00
|
|
|
manager for Corosync, CMAN and/or Linux-HA.
|
2011-09-26 03:38:06 +00:00
|
|
|
|
|
|
|
The %{name}-cluster-libs package contains cluster-aware shared
|
|
|
|
libraries needed for nodes that will form part of the cluster nodes.
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2013-06-20 06:29:04 +00:00
|
|
|
%package remote
|
2013-06-16 23:22:55 +00:00
|
|
|
License: GPLv2+ and LGPLv2+
|
|
|
|
Summary: Pacemaker remote daemon for non-cluster nodes
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
2015-10-13 19:04:29 +00:00
|
|
|
Requires: %{name}-cli = %{version}-%{release}
|
|
|
|
Requires: resource-agents
|
2013-06-20 06:29:04 +00:00
|
|
|
%if %{defined systemd_requires}
|
|
|
|
%systemd_requires
|
|
|
|
%endif
|
2013-06-16 23:22:55 +00:00
|
|
|
|
2013-06-20 06:29:04 +00:00
|
|
|
%description remote
|
2013-06-16 23:22:55 +00:00
|
|
|
Pacemaker is an advanced, scalable High-Availability cluster resource
|
2013-06-20 06:29:04 +00:00
|
|
|
manager for Corosync, CMAN and/or Linux-HA.
|
2013-06-16 23:22:55 +00:00
|
|
|
|
|
|
|
The %{name}-remote package contains the Pacemaker Remote daemon
|
|
|
|
which is capable of extending pacemaker functionality to remote
|
|
|
|
nodes not running the full corosync/cluster stack.
|
|
|
|
|
2013-02-27 05:57:29 +00:00
|
|
|
%package -n %{name}-libs-devel
|
2011-10-06 06:11:41 +00:00
|
|
|
License: GPLv2+ and LGPLv2+
|
|
|
|
Summary: Pacemaker development package
|
|
|
|
Group: Development/Libraries
|
2013-06-16 23:22:55 +00:00
|
|
|
Requires: %{name}-cts = %{version}-%{release}
|
2011-10-06 06:11:41 +00:00
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
Requires: %{name}-cluster-libs = %{version}-%{release}
|
2013-06-16 23:22:55 +00:00
|
|
|
Requires: libtool-ltdl-devel libqb-devel libuuid-devel
|
2013-02-27 05:57:29 +00:00
|
|
|
Requires: libxml2-devel libxslt-devel bzip2-devel glib2-devel
|
2011-10-06 06:11:41 +00:00
|
|
|
Requires: corosynclib-devel
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2011-09-26 03:03:58 +00:00
|
|
|
%description -n %{name}-libs-devel
|
2009-07-31 05:47:06 +00:00
|
|
|
Pacemaker is an advanced, scalable High-Availability cluster resource
|
2013-06-20 06:29:04 +00:00
|
|
|
manager for Corosync, CMAN and/or Linux-HA.
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2011-09-26 03:38:06 +00:00
|
|
|
The %{name}-libs-devel package contains headers and shared libraries
|
|
|
|
for developing tools for Pacemaker.
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2011-10-06 06:11:41 +00:00
|
|
|
%package cts
|
|
|
|
License: GPLv2+ and LGPLv2+
|
|
|
|
Summary: Test framework for cluster-related technologies like Pacemaker
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
Requires: python
|
2013-06-16 23:22:55 +00:00
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
2010-05-12 11:11:52 +00:00
|
|
|
|
2011-10-06 06:11:41 +00:00
|
|
|
%description cts
|
2010-05-12 11:11:52 +00:00
|
|
|
Test framework for cluster-related technologies like Pacemaker
|
|
|
|
|
2011-10-06 06:11:41 +00:00
|
|
|
%package doc
|
|
|
|
License: GPLv2+ and LGPLv2+
|
|
|
|
Summary: Documentation for Pacemaker
|
|
|
|
Group: Documentation
|
2010-05-12 11:11:52 +00:00
|
|
|
|
2011-10-06 06:11:41 +00:00
|
|
|
%description doc
|
2010-05-12 11:11:52 +00:00
|
|
|
Documentation for Pacemaker.
|
|
|
|
|
|
|
|
Pacemaker is an advanced, scalable High-Availability cluster resource
|
2013-06-20 06:29:04 +00:00
|
|
|
manager for Corosync, CMAN and/or Linux-HA.
|
2010-05-12 11:11:52 +00:00
|
|
|
|
2009-07-31 05:47:06 +00:00
|
|
|
%prep
|
2014-11-05 02:14:00 +00:00
|
|
|
%autosetup -n %{name}-%{commit} -p1
|
2013-02-27 05:57:29 +00:00
|
|
|
|
2011-09-26 03:38:06 +00:00
|
|
|
# Force the local time
|
|
|
|
#
|
2015-10-13 19:04:29 +00:00
|
|
|
# Git sets the file date to the date of the last commit.
|
2011-09-26 03:38:06 +00:00
|
|
|
# This can result in files having been created in the future
|
2013-02-27 05:57:29 +00:00
|
|
|
# when building on machines in timezones 'behind' the one the
|
2011-09-26 03:38:06 +00:00
|
|
|
# commit occurred in - which seriously confuses 'make'
|
|
|
|
find . -exec touch \{\} \;
|
2009-07-31 05:47:06 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
./autogen.sh
|
2011-01-11 08:14:32 +00:00
|
|
|
|
2011-10-06 06:11:41 +00:00
|
|
|
# RHEL <= 5 does not support --docdir
|
|
|
|
docdir=%{pcmk_docdir} %{configure} \
|
|
|
|
%{?with_profiling: --with-profiling} \
|
|
|
|
--with-initdir=%{_initrddir} \
|
|
|
|
--localstatedir=%{_var} \
|
2012-08-07 22:46:33 +00:00
|
|
|
--with-version=%{version}-%{release}
|
2011-10-06 06:11:41 +00:00
|
|
|
|
2012-08-07 22:46:33 +00:00
|
|
|
make %{_smp_mflags} V=1 docdir=%{pcmk_docdir} all
|
2009-07-31 05:47:06 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
2012-03-28 22:53:58 +00:00
|
|
|
make DESTDIR=%{buildroot} docdir=%{pcmk_docdir} V=1 install
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2010-09-22 20:06:44 +00:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
2012-08-07 22:46:33 +00:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_var}/lib/pacemaker/cores
|
2010-09-22 20:06:44 +00:00
|
|
|
install -m 644 mcp/pacemaker.sysconfig ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/pacemaker
|
|
|
|
|
2013-06-16 23:22:55 +00:00
|
|
|
%if %{with upstart_job}
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/init
|
|
|
|
install -m 644 mcp/pacemaker.upstart ${RPM_BUILD_ROOT}%{_sysconfdir}/init/pacemaker.conf
|
|
|
|
install -m 644 mcp/pacemaker.combined.upstart ${RPM_BUILD_ROOT}%{_sysconfdir}/init/pacemaker.combined.conf
|
|
|
|
%endif
|
|
|
|
|
2010-11-16 13:35:07 +00:00
|
|
|
# Scripts that should be executable
|
2010-02-11 10:57:32 +00:00
|
|
|
chmod a+x %{buildroot}/%{_datadir}/pacemaker/tests/cts/CTSlab.py
|
2009-07-31 05:47:06 +00:00
|
|
|
|
|
|
|
# These are not actually scripts
|
|
|
|
find %{buildroot} -name '*.xml' -type f -print0 | xargs -0 chmod a-x
|
|
|
|
find %{buildroot} -name '*.xsl' -type f -print0 | xargs -0 chmod a-x
|
|
|
|
find %{buildroot} -name '*.rng' -type f -print0 | xargs -0 chmod a-x
|
|
|
|
find %{buildroot} -name '*.dtd' -type f -print0 | xargs -0 chmod a-x
|
2013-02-27 05:57:29 +00:00
|
|
|
|
2011-09-26 03:38:06 +00:00
|
|
|
# Dont package static libs
|
2009-07-31 05:47:06 +00:00
|
|
|
find %{buildroot} -name '*.a' -type f -print0 | xargs -0 rm -f
|
|
|
|
find %{buildroot} -name '*.la' -type f -print0 | xargs -0 rm -f
|
|
|
|
|
2011-09-26 03:38:06 +00:00
|
|
|
# Do not package these either
|
2010-05-12 11:11:52 +00:00
|
|
|
rm -f %{buildroot}/%{_libdir}/service_crm.so
|
2011-09-26 03:38:06 +00:00
|
|
|
|
2013-06-20 06:29:04 +00:00
|
|
|
# Don't ship init scripts for systemd based platforms
|
|
|
|
%if %{defined _unitdir}
|
|
|
|
rm -f %{buildroot}/%{_initrddir}/pacemaker
|
|
|
|
rm -f %{buildroot}/%{_initrddir}/pacemaker_remote
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with profiling}
|
2011-09-26 03:38:06 +00:00
|
|
|
GCOV_BASE=%{buildroot}/%{_var}/lib/pacemaker/gcov
|
|
|
|
mkdir -p $GCOV_BASE
|
|
|
|
find . -name '*.gcno' -type f | while read F ; do
|
2011-10-06 06:11:41 +00:00
|
|
|
D=`dirname $F`
|
|
|
|
mkdir -p ${GCOV_BASE}/$D
|
|
|
|
cp $F ${GCOV_BASE}/$D
|
2011-09-26 03:38:06 +00:00
|
|
|
done
|
|
|
|
%endif
|
2009-07-31 05:47:06 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2011-04-27 07:30:30 +00:00
|
|
|
%post
|
2013-06-20 06:29:04 +00:00
|
|
|
%systemd_post pacemaker.service
|
2011-04-27 07:30:30 +00:00
|
|
|
|
|
|
|
%preun
|
2013-06-20 06:29:04 +00:00
|
|
|
%systemd_preun pacemaker.service
|
|
|
|
|
|
|
|
%postun
|
2015-10-13 19:04:29 +00:00
|
|
|
%systemd_postun_with_restart pacemaker.service
|
2013-06-20 06:29:04 +00:00
|
|
|
|
2015-08-20 05:01:03 +00:00
|
|
|
%post cli
|
|
|
|
%systemd_post crm_mon.service
|
|
|
|
|
|
|
|
%preun cli
|
|
|
|
%systemd_preun crm_mon.service
|
|
|
|
|
2013-06-20 06:29:04 +00:00
|
|
|
%post remote
|
|
|
|
%systemd_post pacemaker_remote.service
|
|
|
|
|
|
|
|
%preun remote
|
|
|
|
%systemd_preun pacemaker_remote.service
|
|
|
|
|
|
|
|
%postun remote
|
2015-10-13 19:04:29 +00:00
|
|
|
%systemd_postun_with_restart pacemaker_remote.service
|
2011-04-27 07:30:30 +00:00
|
|
|
|
2012-08-07 22:46:33 +00:00
|
|
|
%pre -n %{name}-libs
|
2013-06-16 23:22:55 +00:00
|
|
|
|
|
|
|
getent group %{gname} >/dev/null || groupadd -r %{gname} -g 189
|
|
|
|
getent passwd %{uname} >/dev/null || useradd -r -g %{gname} -u 189 -s /sbin/nologin -c "cluster user" %{uname}
|
2012-08-07 22:46:33 +00:00
|
|
|
exit 0
|
|
|
|
|
2011-09-26 03:03:58 +00:00
|
|
|
%post -n %{name}-libs -p /sbin/ldconfig
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2011-09-26 03:03:58 +00:00
|
|
|
%postun -n %{name}-libs -p /sbin/ldconfig
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2011-09-26 03:38:06 +00:00
|
|
|
%post -n %{name}-cluster-libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{name}-cluster-libs -p /sbin/ldconfig
|
|
|
|
|
2009-07-31 05:47:06 +00:00
|
|
|
%files
|
|
|
|
###########################################################
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
2010-05-12 11:11:52 +00:00
|
|
|
%exclude %{_datadir}/pacemaker/tests
|
|
|
|
|
2010-09-22 20:06:44 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/pacemaker
|
2010-07-26 07:23:57 +00:00
|
|
|
%{_sbindir}/pacemakerd
|
2011-09-26 03:38:06 +00:00
|
|
|
|
2011-09-26 03:03:58 +00:00
|
|
|
%if %{defined _unitdir}
|
|
|
|
%{_unitdir}/pacemaker.service
|
2013-06-20 06:29:04 +00:00
|
|
|
%else
|
|
|
|
%{_initrddir}/pacemaker
|
2011-09-26 03:03:58 +00:00
|
|
|
%endif
|
2010-07-26 07:23:57 +00:00
|
|
|
|
2009-07-31 05:47:06 +00:00
|
|
|
%{_datadir}/pacemaker
|
2009-10-29 12:57:06 +00:00
|
|
|
%{_datadir}/snmp/mibs/PCMK-MIB.txt
|
2015-10-13 19:04:29 +00:00
|
|
|
|
2013-06-16 23:22:55 +00:00
|
|
|
%exclude %{_libexecdir}/pacemaker/lrmd_test
|
|
|
|
%exclude %{_sbindir}/pacemaker_remoted
|
2012-02-02 05:36:03 +00:00
|
|
|
%{_libexecdir}/pacemaker/*
|
2011-09-26 03:38:06 +00:00
|
|
|
|
2009-07-31 05:47:06 +00:00
|
|
|
%{_sbindir}/crm_attribute
|
2011-09-26 03:03:58 +00:00
|
|
|
%{_sbindir}/crm_master
|
2011-09-26 03:38:06 +00:00
|
|
|
%{_sbindir}/crm_node
|
2011-09-26 03:03:58 +00:00
|
|
|
%{_sbindir}/attrd_updater
|
|
|
|
%{_sbindir}/fence_legacy
|
2011-10-06 06:11:41 +00:00
|
|
|
%{_sbindir}/fence_pcmk
|
2011-09-26 03:03:58 +00:00
|
|
|
%{_sbindir}/stonith_admin
|
|
|
|
|
2011-10-06 06:11:41 +00:00
|
|
|
%doc %{_mandir}/man7/*
|
|
|
|
%doc %{_mandir}/man8/attrd_updater.*
|
|
|
|
%doc %{_mandir}/man8/crm_attribute.*
|
|
|
|
%doc %{_mandir}/man8/crm_node.*
|
|
|
|
%doc %{_mandir}/man8/crm_master.*
|
|
|
|
%doc %{_mandir}/man8/fence_pcmk.*
|
|
|
|
%doc %{_mandir}/man8/pacemakerd.*
|
|
|
|
%doc %{_mandir}/man8/stonith_admin.*
|
|
|
|
|
2011-09-26 03:03:58 +00:00
|
|
|
%doc COPYING
|
|
|
|
%doc AUTHORS
|
|
|
|
%doc ChangeLog
|
|
|
|
|
2012-08-07 22:46:33 +00:00
|
|
|
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker
|
|
|
|
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/cib
|
|
|
|
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/cores
|
|
|
|
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/pengine
|
2013-06-16 23:22:55 +00:00
|
|
|
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/blackbox
|
2011-09-26 03:03:58 +00:00
|
|
|
%dir /usr/lib/ocf
|
|
|
|
%dir /usr/lib/ocf/resource.d
|
2015-08-20 05:01:03 +00:00
|
|
|
/usr/lib/ocf/resource.d/.isolation
|
2015-10-13 19:04:29 +00:00
|
|
|
/usr/lib/ocf/resource.d/pacemaker
|
2015-08-20 05:01:03 +00:00
|
|
|
|
2015-10-13 17:10:12 +00:00
|
|
|
# No need to special-case for corosync 1.99 any longer (not officially shipped)
|
|
|
|
%if 0%{?cs_version} < 2
|
2011-09-26 03:03:58 +00:00
|
|
|
%{_libexecdir}/lcrso/pacemaker.lcrso
|
|
|
|
%endif
|
|
|
|
|
2013-06-16 23:22:55 +00:00
|
|
|
%if %{with upstart_job}
|
|
|
|
%config(noreplace) %{_sysconfdir}/init/pacemaker.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/init/pacemaker.combined.conf
|
|
|
|
%endif
|
|
|
|
|
2011-09-26 03:03:58 +00:00
|
|
|
%files cli
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sbindir}/cibadmin
|
2009-07-31 05:47:06 +00:00
|
|
|
%{_sbindir}/crm_diff
|
2012-08-07 22:46:33 +00:00
|
|
|
%{_sbindir}/crm_error
|
2009-07-31 05:47:06 +00:00
|
|
|
%{_sbindir}/crm_failcount
|
|
|
|
%{_sbindir}/crm_mon
|
|
|
|
%{_sbindir}/crm_resource
|
|
|
|
%{_sbindir}/crm_standby
|
|
|
|
%{_sbindir}/crm_verify
|
|
|
|
%{_sbindir}/crmadmin
|
|
|
|
%{_sbindir}/iso8601
|
|
|
|
%{_sbindir}/crm_shadow
|
2011-09-26 03:03:58 +00:00
|
|
|
%{_sbindir}/crm_simulate
|
|
|
|
%{_sbindir}/crm_report
|
|
|
|
%{_sbindir}/crm_ticket
|
2015-10-13 19:04:29 +00:00
|
|
|
|
2011-09-26 03:03:58 +00:00
|
|
|
%doc %{_mandir}/man8/*
|
2011-10-06 06:11:41 +00:00
|
|
|
%exclude %{_mandir}/man8/attrd_updater.*
|
|
|
|
%exclude %{_mandir}/man8/crm_attribute.*
|
|
|
|
%exclude %{_mandir}/man8/crm_node.*
|
|
|
|
%exclude %{_mandir}/man8/crm_master.*
|
|
|
|
%exclude %{_mandir}/man8/fence_pcmk.*
|
|
|
|
%exclude %{_mandir}/man8/pacemakerd.*
|
2013-06-16 23:22:55 +00:00
|
|
|
%exclude %{_mandir}/man8/pacemaker_remoted.*
|
2011-10-06 06:11:41 +00:00
|
|
|
%exclude %{_mandir}/man8/stonith_admin.*
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2015-10-13 19:04:29 +00:00
|
|
|
%if %{defined _unitdir}
|
|
|
|
%{_unitdir}/crm_mon.service
|
|
|
|
%endif
|
|
|
|
|
2009-07-31 05:47:06 +00:00
|
|
|
%doc COPYING
|
|
|
|
%doc AUTHORS
|
2010-11-16 13:35:07 +00:00
|
|
|
%doc ChangeLog
|
2009-07-31 05:47:06 +00:00
|
|
|
|
2011-09-26 03:03:58 +00:00
|
|
|
%files -n %{name}-libs
|
2009-07-31 05:47:06 +00:00
|
|
|
%defattr(-,root,root)
|
2012-08-07 22:46:33 +00:00
|
|
|
|
2009-07-31 05:47:06 +00:00
|
|
|
%{_libdir}/libcib.so.*
|
2012-08-07 22:46:33 +00:00
|
|
|
%{_libdir}/liblrmd.so.*
|
|
|
|
%{_libdir}/libcrmservice.so.*
|
2009-07-31 05:47:06 +00:00
|
|
|
%{_libdir}/libcrmcommon.so.*
|
|
|
|
%{_libdir}/libpe_status.so.*
|
|
|
|
%{_libdir}/libpe_rules.so.*
|
|
|
|
%{_libdir}/libpengine.so.*
|
2013-06-16 23:22:55 +00:00
|
|
|
%{_libdir}/libstonithd.so.*
|
2009-07-31 05:47:06 +00:00
|
|
|
%{_libdir}/libtransitioner.so.*
|
2011-09-26 03:38:06 +00:00
|
|
|
%doc COPYING.LIB
|
|
|
|
%doc AUTHORS
|
|
|
|
|
|
|
|
%files -n %{name}-cluster-libs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libcrmcluster.so.*
|
2013-06-16 23:22:55 +00:00
|
|
|
%doc COPYING.LIB
|
|
|
|
%doc AUTHORS
|
|
|
|
|
2013-06-20 06:29:04 +00:00
|
|
|
%files remote
|
2013-06-16 23:22:55 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
2014-10-28 06:17:35 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/pacemaker
|
2013-06-16 23:22:55 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/pacemaker
|
|
|
|
%if %{defined _unitdir}
|
|
|
|
%{_unitdir}/pacemaker_remote.service
|
2013-06-20 06:29:04 +00:00
|
|
|
%else
|
|
|
|
%{_initrddir}/pacemaker_remote
|
2013-06-16 23:22:55 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%{_sbindir}/pacemaker_remoted
|
|
|
|
%{_mandir}/man8/pacemaker_remoted.*
|
2009-07-31 05:47:06 +00:00
|
|
|
%doc COPYING.LIB
|
|
|
|
%doc AUTHORS
|
|
|
|
|
2010-05-12 11:11:52 +00:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{pcmk_docdir}
|
|
|
|
|
|
|
|
%files cts
|
|
|
|
%defattr(-,root,root)
|
2013-06-20 06:29:04 +00:00
|
|
|
%{py_site}/cts
|
2010-05-12 11:11:52 +00:00
|
|
|
%{_datadir}/pacemaker/tests/cts
|
2013-06-16 23:22:55 +00:00
|
|
|
%{_libexecdir}/pacemaker/lrmd_test
|
2010-05-12 11:11:52 +00:00
|
|
|
%doc COPYING.LIB
|
|
|
|
%doc AUTHORS
|
|
|
|
|
2011-09-26 03:03:58 +00:00
|
|
|
%files -n %{name}-libs-devel
|
2009-07-31 05:47:06 +00:00
|
|
|
%defattr(-,root,root)
|
2010-05-12 11:11:52 +00:00
|
|
|
%exclude %{_datadir}/pacemaker/tests/cts
|
|
|
|
%{_datadir}/pacemaker/tests
|
2009-07-31 05:47:06 +00:00
|
|
|
%{_includedir}/pacemaker
|
|
|
|
%{_libdir}/*.so
|
2013-06-20 06:29:04 +00:00
|
|
|
%if %{with profiling}
|
2011-09-26 03:38:06 +00:00
|
|
|
%{_var}/lib/pacemaker
|
|
|
|
%endif
|
2011-09-26 03:03:58 +00:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2009-07-31 05:47:06 +00:00
|
|
|
%doc COPYING.LIB
|
|
|
|
%doc AUTHORS
|
|
|
|
|
|
|
|
%changelog
|
2015-08-20 05:01:03 +00:00
|
|
|
* Thu Aug 20 2015 Andrew Beekhof <abeekhof@redhat.com> - 1.1.13-1
|
|
|
|
- Update for new upstream tarball: Pacemaker-1.1.13
|
|
|
|
- See included ChangeLog file or https://raw.github.com/ClusterLabs/pacemaker/master/ChangeLog for full details
|
|
|
|
|
2015-06-18 00:34:35 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.12-2.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-08-20 05:01:03 +00:00
|
|
|
* Wed Nov 05 2014 Andrew Beekhof <abeekhof@redhat.com> - 1.1.12-2
|
2014-11-05 01:46:53 +00:00
|
|
|
- Address incorrect use of the dbus API for interacting with systemd
|
|
|
|
|
2014-10-28 06:17:35 +00:00
|
|
|
* Tue Oct 28 2014 Andrew Beekhof <abeekhof@redhat.com> - 1.1.12-1
|
|
|
|
- Update for new upstream tarball: Pacemaker-1.1.12+ (a9c8177)
|
|
|
|
- See included ChangeLog file or https://raw.github.com/ClusterLabs/pacemaker/master/ChangeLog for full details
|
|
|
|
|
2014-08-17 14:30:35 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-1.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-06 23:23:49 +00:00
|
|
|
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-1.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-02-18 02:47:36 +00:00
|
|
|
* Tue Feb 18 2014 Andrew Beekhof <abeekhof@redhat.com> - 1.1.11-1
|
|
|
|
- Update for new upstream tarball: Pacemaker-1.1.11 (9d39a6b)
|
|
|
|
- See included ChangeLog file or https://raw.github.com/ClusterLabs/pacemaker/master/ChangeLog for full details
|
|
|
|
|
2013-06-20 06:29:04 +00:00
|
|
|
* Thu Jun 20 2013 Andrew Beekhof <abeekhof@redhat.com> - 1.1.9-3
|
|
|
|
- Update to upstream 7d8acec
|
|
|
|
- See included ChangeLog file or https://raw.github.com/ClusterLabs/pacemaker/master/ChangeLog for full details
|
|
|
|
|
|
|
|
+ Feature: Turn off auto-respawning of systemd services when the cluster starts them
|
|
|
|
+ Fix: crmd: Ensure operations for cleaned up resources don't block recovery
|
|
|
|
+ Fix: logging: If SIGTRAP is sent before tracing is turned on, turn it on instead of crashing
|
|
|
|
|
2013-06-17 00:05:13 +00:00
|
|
|
* Mon Jun 17 2013 Andrew Beekhof <abeekhof@redhat.com> - 1.1.9-2
|
|
|
|
- Update for new upstream tarball: 781a388
|
|
|
|
- See included ChangeLog file or https://raw.github.com/ClusterLabs/pacemaker/master/ChangeLog for full details
|
|
|
|
|
2010-05-12 11:11:52 +00:00
|
|
|
* Wed May 12 2010 Andrew Beekhof <andrew@beekhof.net> - 1.1.2-1
|
2013-02-27 05:57:29 +00:00
|
|
|
- Update the tarball from the upstream 1.1.2 release
|
2014-10-28 06:17:35 +00:00
|
|
|
- See included ChangeLog file or https://raw.github.com/ClusterLabs/pacemaker/master/ChangeLog for full details
|
2009-07-31 05:47:06 +00:00
|
|
|
|
|
|
|
* Tue Jul 14 2009 Andrew Beekhof <andrew@beekhof.net> - 1.0.4-1
|
|
|
|
- Initial checkin
|