2008-04-30 09:47:33 +02:00
|
|
|
#
|
2011-08-05 08:12:59 +02:00
|
|
|
# spec file for package pacemaker
|
2008-04-30 09:47:33 +02:00
|
|
|
#
|
2019-01-11 16:19:42 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-04-30 09:47:33 +02:00
|
|
|
#
|
2008-08-30 02:46:01 +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-08-08 18:13:22 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-04-30 09:47:33 +02:00
|
|
|
#
|
|
|
|
|
2012-04-23 13:15:16 +02:00
|
|
|
|
2020-07-10 14:16:26 +02:00
|
|
|
# User-configurable globals and defines to control package behavior
|
|
|
|
# (these should not test {with X} values, which are declared later)
|
2016-11-08 11:56:04 +01:00
|
|
|
|
|
|
|
## User and group to use for nonprivileged services
|
2013-07-29 15:11:47 +02:00
|
|
|
%global uname hacluster
|
2016-11-08 11:56:04 +01:00
|
|
|
%global gname haclient
|
|
|
|
|
|
|
|
## Where to install Pacemaker documentation
|
2010-06-30 10:46:24 +02:00
|
|
|
%global pcmk_docdir %{_docdir}/%{name}
|
2016-11-08 11:56:04 +01:00
|
|
|
|
|
|
|
# Define conditionals so that "rpmbuild --with <feature>" and
|
|
|
|
# "rpmbuild --without <feature>" can enable and disable specific features
|
|
|
|
|
|
|
|
## Add option to enable support for stonith/external fencing agents
|
2016-06-20 13:39:16 +02:00
|
|
|
%bcond_without stonithd
|
2016-11-08 11:56:04 +01:00
|
|
|
|
2020-07-10 14:16:26 +02:00
|
|
|
## Add option to enable support for storing sensitive information outside CIB
|
|
|
|
%bcond_without cibsecrets
|
|
|
|
|
2017-03-17 11:24:07 +01:00
|
|
|
## Add option to create binaries suitable for use with profiling tools
|
|
|
|
%bcond_with profiling
|
|
|
|
|
|
|
|
## Add option to create binaries with coverage analysis
|
|
|
|
%bcond_with coverage
|
|
|
|
|
2016-11-08 11:56:04 +01:00
|
|
|
## Add option to skip generating documentation
|
|
|
|
## (the build tools aren't available everywhere)
|
2016-06-20 13:39:16 +02:00
|
|
|
%bcond_with doc
|
2016-11-08 11:56:04 +01:00
|
|
|
|
2017-03-17 11:24:07 +01:00
|
|
|
## Add option to turn off hardening of libraries and daemon executables
|
|
|
|
%bcond_with hardening
|
|
|
|
|
2018-07-27 17:42:24 +02:00
|
|
|
## Add option to disable links for legacy daemon names
|
|
|
|
%bcond_without legacy_links
|
|
|
|
|
2020-07-10 14:16:26 +02:00
|
|
|
# Define globals for convenient use later
|
|
|
|
|
|
|
|
%define _rundir /run
|
|
|
|
|
Accepting request 842719 from home:yan_gao:branches:network:ha-clustering:Factory
- Update to version 2.0.4+20200702.813fdbfdc:
- libcrmcommon: deprecate create_hello_message() as public API (bsc#1170346, rh#1796824)
- pacemakerd: properly conditionalize corosync calls (bsc#1170346, rh#1796824)
- pacemakerd: use existing handle for corosync shutdown (bsc#1170346, rh#1796824)
- pacemakerd: improve messages (bsc#1170346, rh#1796824)
- pacemakerd: functionize removing core file limit (bsc#1170346, rh#1796824)
- pacemakerd: remove unneeded IPC and CPG commands (bsc#1170346, rh#1796824)
- tools: crm_node -l and -p now work from Pacemaker Remote nodes (bsc#1170346, rh#1796824)
- functionize numeric comparisons of strings (bsc#1170346, rh#1796824)
- controller: add new IPC API command for getting node list (bsc#1170346, rh#1796824)
- Update to version 2.0.4+20200701.556cef416:
- tools: convert crmadmin to use new controller IPC model (bsc#1170346, rh#1796824)
- tools: remove dead code from crm_node (bsc#1170346, rh#1796824)
- tools: convert crm_node to use new controller IPC model (bsc#1170346, rh#1796824)
- tools: convert crm_resource to use new controller IPC model (bsc#1170346, rh#1796824)
- libcrmcommon: add C API for controller IPC (bsc#1170346, rh#1796824)
- libcrmcommon: new model for daemon IPC API (bsc#1170346, rh#1796824)
- Update to version 2.0.4+20200630.107af1896:
- tools, libs: Use pcmk__str_any_of and pcmk__str_all_of.
- libcrmcommon: Add pcmk__str_any_of and pcmk__str_none_of.
- Update to version 2.0.4+20200624.67a6a9b31:
- lib, tools: Correct types given to PCMK__OUTPUT_ARGS.
- Update to version 2.0.4+20200623.e36fe309d:
- sysconfig: remove outdated reference to wildcards in PCMK_trace_files
- rpm: use https in package URL
- resources: don't check host-specific conditions in attribute validate
OBS-URL: https://build.opensuse.org/request/show/842719
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/pacemaker?expand=0&rev=341
2020-10-20 10:55:36 +02:00
|
|
|
%global hacluster_id 90
|
|
|
|
|
2020-07-10 14:16:26 +02:00
|
|
|
## Path to Python interpreter (leave commented to auto-detect,
|
|
|
|
## or uncomment and edit to use a specific version)
|
|
|
|
%global python_path /usr/bin/python%{python3_version}
|
|
|
|
|
2017-03-17 11:24:07 +01:00
|
|
|
# Keep sane profiling data if requested
|
|
|
|
%if %{with profiling}
|
|
|
|
|
|
|
|
## Disable -debuginfo package and stripping binaries/libraries
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
2020-07-10 14:16:26 +02:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
%define _fillupdir /var/adm/fillup-templates
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%define with_nagios 1
|
|
|
|
%define enable_lib_cluster_pkg 0
|
|
|
|
%define enable_fatal_warnings 0
|
|
|
|
%define with_regression_tests 0
|
|
|
|
|
2008-04-30 09:47:33 +02:00
|
|
|
Name: pacemaker
|
2021-04-09 13:05:33 +02:00
|
|
|
Version: 2.0.5+20210310.83e765df6
|
2016-06-20 13:39:16 +02:00
|
|
|
Release: 0
|
2013-07-29 15:11:47 +02:00
|
|
|
Summary: Scalable High-Availability cluster resource manager
|
2017-07-31 17:14:51 +02:00
|
|
|
# AGPL-3.0 licensed extra/clustermon.sh is not present in the binary
|
2018-07-27 17:42:24 +02:00
|
|
|
License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
|
2011-12-16 05:55:14 +01:00
|
|
|
Group: Productivity/Clustering/HA
|
Accepting request 842719 from home:yan_gao:branches:network:ha-clustering:Factory
- Update to version 2.0.4+20200702.813fdbfdc:
- libcrmcommon: deprecate create_hello_message() as public API (bsc#1170346, rh#1796824)
- pacemakerd: properly conditionalize corosync calls (bsc#1170346, rh#1796824)
- pacemakerd: use existing handle for corosync shutdown (bsc#1170346, rh#1796824)
- pacemakerd: improve messages (bsc#1170346, rh#1796824)
- pacemakerd: functionize removing core file limit (bsc#1170346, rh#1796824)
- pacemakerd: remove unneeded IPC and CPG commands (bsc#1170346, rh#1796824)
- tools: crm_node -l and -p now work from Pacemaker Remote nodes (bsc#1170346, rh#1796824)
- functionize numeric comparisons of strings (bsc#1170346, rh#1796824)
- controller: add new IPC API command for getting node list (bsc#1170346, rh#1796824)
- Update to version 2.0.4+20200701.556cef416:
- tools: convert crmadmin to use new controller IPC model (bsc#1170346, rh#1796824)
- tools: remove dead code from crm_node (bsc#1170346, rh#1796824)
- tools: convert crm_node to use new controller IPC model (bsc#1170346, rh#1796824)
- tools: convert crm_resource to use new controller IPC model (bsc#1170346, rh#1796824)
- libcrmcommon: add C API for controller IPC (bsc#1170346, rh#1796824)
- libcrmcommon: new model for daemon IPC API (bsc#1170346, rh#1796824)
- Update to version 2.0.4+20200630.107af1896:
- tools, libs: Use pcmk__str_any_of and pcmk__str_all_of.
- libcrmcommon: Add pcmk__str_any_of and pcmk__str_none_of.
- Update to version 2.0.4+20200624.67a6a9b31:
- lib, tools: Correct types given to PCMK__OUTPUT_ARGS.
- Update to version 2.0.4+20200623.e36fe309d:
- sysconfig: remove outdated reference to wildcards in PCMK_trace_files
- rpm: use https in package URL
- resources: don't check host-specific conditions in attribute validate
OBS-URL: https://build.opensuse.org/request/show/842719
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/pacemaker?expand=0&rev=341
2020-10-20 10:55:36 +02:00
|
|
|
Url: https://www.clusterlabs.org/
|
2017-03-07 01:32:46 +01:00
|
|
|
# Hint: use "spectool -s 0 pacemaker.spec" (rpmdevtools) to check the final URL:
|
|
|
|
# https://github.com/ClusterLabs/pacemaker/archive/e91769e5a39f5cb2f7b097d3c612368f0530535e/pacemaker-e91769e.tar.gz
|
2017-12-23 16:19:10 +01:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2015-11-17 12:08:54 +01:00
|
|
|
Source1: crm_report.in
|
2008-09-13 12:02:11 +02:00
|
|
|
Source100: pacemaker.rpmlintrc
|
2013-07-29 15:11:47 +02:00
|
|
|
Patch1: bug-806256_pacemaker-log-level-notice.patch
|
2019-08-08 18:13:22 +02:00
|
|
|
Patch2: bug-728579_pacemaker-stonith-dev-id.patch
|
2018-02-23 06:13:07 +01:00
|
|
|
Patch3: pacemaker-nagios-plugin-dir.patch
|
|
|
|
Patch4: bug-812269_pacemaker-fencing-device-register-messages.patch
|
|
|
|
Patch5: pacemaker-Wno-format-signedness.patch
|
|
|
|
Patch6: bug-943295_pacemaker-lrmd-log-notice.patch
|
|
|
|
Patch7: bug-977201_pacemaker-controld-self-fencing.patch
|
|
|
|
Patch8: bug-995365_pacemaker-cts-restart-systemd-journald.patch
|
2018-04-30 12:26:02 +02:00
|
|
|
Patch9: pacemaker-cts-StartCmd.patch
|
2020-05-11 18:32:16 +02:00
|
|
|
Patch10: 0001-Log-libcrmcommon-lower-message-on-reading-proc-file-.patch
|
2021-02-01 11:34:27 +01:00
|
|
|
Patch11: bsc#1180966-0001-Log-pacemakerd-downgrade-the-warning-about-SBD_SYNC_.patch
|
2016-11-08 11:56:04 +01:00
|
|
|
# Required for core functionality
|
2013-07-29 15:11:47 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2016-11-08 11:56:04 +01:00
|
|
|
BuildRequires: coreutils
|
2016-06-20 13:39:16 +02:00
|
|
|
BuildRequires: fdupes
|
2016-11-08 11:56:04 +01:00
|
|
|
BuildRequires: findutils
|
2018-03-17 09:57:27 +01:00
|
|
|
BuildRequires: gcc
|
2016-11-08 11:56:04 +01:00
|
|
|
BuildRequires: grep
|
2016-06-20 13:39:16 +02:00
|
|
|
BuildRequires: help2man
|
2011-12-16 05:55:14 +01:00
|
|
|
BuildRequires: libtool
|
2016-06-20 13:39:16 +02:00
|
|
|
BuildRequires: ncurses-devel
|
2011-12-16 05:55:14 +01:00
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: pkgconfig
|
2013-07-29 15:11:47 +02:00
|
|
|
# Required for agent_config.h which specifies the correct scratch directory
|
|
|
|
BuildRequires: resource-agents
|
2016-11-08 11:56:04 +01:00
|
|
|
BuildRequires: sed
|
2016-07-04 17:06:14 +02:00
|
|
|
BuildRequires: pkgconfig(bzip2)
|
2018-04-30 12:26:02 +02:00
|
|
|
BuildRequires: pkgconfig(corosync) >= 2.0.0
|
2015-10-09 13:34:40 +02:00
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
2021-04-09 13:05:33 +02:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.42
|
2016-07-04 17:06:14 +02:00
|
|
|
BuildRequires: pkgconfig(gnutls)
|
|
|
|
BuildRequires: pkgconfig(libexslt)
|
2016-11-08 11:56:04 +01:00
|
|
|
# Pacemaker requires a minimum libqb functionality
|
2021-04-09 13:05:33 +02:00
|
|
|
BuildRequires: pkgconfig(libqb) > 0.17.0
|
2016-07-04 17:06:14 +02:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(libxslt)
|
2018-02-10 13:26:11 +01:00
|
|
|
# Pacemaker requires a minimum Python functionality
|
2018-01-05 21:55:11 +01:00
|
|
|
BuildRequires: pkgconfig(python3)
|
2014-11-14 10:26:59 +01:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2016-07-04 17:06:14 +02:00
|
|
|
BuildRequires: pkgconfig(uuid)
|
2016-06-20 13:39:16 +02:00
|
|
|
Requires: %{name}-cli = %{version}-%{release}
|
2018-04-09 17:40:11 +02:00
|
|
|
Requires: corosync >= 2.0.0
|
2016-06-20 13:39:16 +02:00
|
|
|
Requires: libpacemaker3 = %{version}-%{release}
|
|
|
|
Requires: psmisc
|
2018-01-05 21:55:11 +01:00
|
|
|
Requires: python3
|
2016-06-20 13:39:16 +02:00
|
|
|
Requires: resource-agents
|
|
|
|
Recommends: crmsh
|
|
|
|
Recommends: fence-agents
|
|
|
|
Recommends: libdlm
|
|
|
|
Recommends: sbd
|
|
|
|
Suggests: graphviz
|
|
|
|
Conflicts: heartbeat < 3.0
|
|
|
|
Conflicts: libheartbeat2 < 3.0.0
|
|
|
|
Provides: pacemaker-ticket-support = 2.0
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{?systemd_requires}
|
|
|
|
%if %{enable_lib_cluster_pkg}
|
|
|
|
Requires: libpacemaker3-cluster = %{version}-%{release}
|
|
|
|
%endif
|
2016-07-04 17:06:14 +02:00
|
|
|
# Enables optional functionality
|
|
|
|
%if 0%{?suse_version} > 1100
|
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
%else
|
|
|
|
BuildRequires: docbook-style-xsl
|
2008-09-13 12:02:11 +02:00
|
|
|
%endif
|
2016-06-20 13:39:16 +02:00
|
|
|
%if %{with stonithd}
|
2016-07-04 17:06:14 +02:00
|
|
|
%if 0%{?suse_version}
|
2013-07-29 15:11:47 +02:00
|
|
|
BuildRequires: libglue-devel
|
2016-07-04 17:06:14 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: cluster-glue-libs-devel
|
|
|
|
%endif
|
2013-07-29 15:11:47 +02:00
|
|
|
%endif
|
2016-06-20 13:39:16 +02:00
|
|
|
%if %{with doc}
|
2013-07-29 15:11:47 +02:00
|
|
|
BuildRequires: asciidoc
|
|
|
|
BuildRequires: inkscape
|
2021-02-01 11:34:27 +01:00
|
|
|
BuildRequires: python3-sphinx
|
2013-07-29 15:11:47 +02:00
|
|
|
%endif
|
2016-06-20 13:39:16 +02:00
|
|
|
%if %{with_regression_tests}
|
2013-07-29 15:11:47 +02:00
|
|
|
BuildRequires: procps
|
2018-01-05 21:55:11 +01:00
|
|
|
BuildRequires: python3-curses
|
|
|
|
BuildRequires: python3-xml
|
2008-04-30 09:47:33 +02:00
|
|
|
%endif
|
2013-07-29 15:11:47 +02:00
|
|
|
|
2008-04-30 09:47:33 +02:00
|
|
|
%description
|
|
|
|
Pacemaker is an advanced, scalable High-Availability cluster resource
|
2017-12-23 16:19:10 +01:00
|
|
|
manager.
|
2008-04-30 09:47:33 +02:00
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
It supports more than 16 node clusters with significant capabilities
|
|
|
|
for managing resources and dependencies.
|
2008-04-30 09:47:33 +02: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.
|
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
%package cli
|
|
|
|
Summary: Command line tools for controlling Pacemaker clusters
|
|
|
|
Group: Productivity/Clustering/HA
|
2016-07-04 17:06:14 +02:00
|
|
|
Requires: libpacemaker3 = %{version}-%{release}
|
2016-06-20 13:39:16 +02:00
|
|
|
Requires: logrotate
|
2013-07-29 15:11:47 +02:00
|
|
|
Requires: perl-TimeDate
|
2018-07-27 17:42:24 +02:00
|
|
|
Requires: procps
|
|
|
|
Requires: psmisc
|
|
|
|
Requires(post): coreutils
|
2019-11-07 17:09:29 +01:00
|
|
|
# For crm_report
|
|
|
|
Recommends: tar
|
|
|
|
Recommends: bzip2
|
2008-04-30 09:47:33 +02:00
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
%description cli
|
|
|
|
Pacemaker is an advanced, scalable High-Availability cluster resource
|
2017-12-23 16:19:10 +01:00
|
|
|
manager.
|
2013-07-29 15:11:47 +02: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.
|
2008-04-30 09:47:33 +02:00
|
|
|
|
2008-09-24 17:18:10 +02:00
|
|
|
%package -n libpacemaker3
|
2013-07-29 15:11:47 +02:00
|
|
|
Summary: Core Pacemaker libraries
|
2008-04-30 09:47:33 +02:00
|
|
|
Group: Productivity/Clustering/HA
|
2018-04-09 17:40:11 +02:00
|
|
|
Requires(pre): shadow
|
2019-01-28 13:45:39 +01:00
|
|
|
# sbd 1.4.0+ supports the libpe_status API for pe_working_set_t
|
|
|
|
Conflicts: sbd < 1.4.0
|
2008-09-24 17:18:10 +02:00
|
|
|
|
|
|
|
%description -n libpacemaker3
|
|
|
|
Pacemaker is an advanced, scalable High-Availability cluster resource
|
2017-12-23 16:19:10 +01:00
|
|
|
manager.
|
2008-09-24 17:18:10 +02:00
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
The libpacemaker3 package contains shared libraries needed for cluster
|
|
|
|
nodes and those just running the CLI tools.
|
2008-09-24 17:18:10 +02:00
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
%package -n libpacemaker3-cluster
|
|
|
|
Summary: Cluster Libraries used by Pacemaker
|
|
|
|
Group: Productivity/Clustering/HA
|
2016-07-04 17:06:14 +02:00
|
|
|
Requires: libpacemaker3 = %{version}-%{release}
|
2008-09-24 17:18:10 +02:00
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
%description -n libpacemaker3-cluster
|
|
|
|
Pacemaker is an advanced, scalable High-Availability cluster resource
|
2017-12-23 16:19:10 +01:00
|
|
|
manager.
|
2008-09-24 17:18:10 +02:00
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
The libpacemaker3-cluster package contains cluster-aware shared
|
|
|
|
libraries needed for nodes that will form part of the cluster nodes.
|
2008-09-24 17:18:10 +02:00
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
%package remote
|
|
|
|
Summary: Pacemaker remote daemon for non-cluster nodes
|
|
|
|
Group: Productivity/Clustering/HA
|
2016-07-04 17:06:14 +02:00
|
|
|
Requires: %{name}-cli = %{version}-%{release}
|
|
|
|
Requires: libpacemaker3 = %{version}-%{release}
|
2018-07-27 17:42:24 +02:00
|
|
|
Requires: procps
|
2013-07-29 15:11:47 +02:00
|
|
|
Requires: resource-agents
|
2016-06-20 13:39:16 +02:00
|
|
|
%{?systemd_requires}
|
2008-09-24 17:18:10 +02:00
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
%description remote
|
|
|
|
Pacemaker is an advanced, scalable High-Availability cluster resource
|
2017-12-23 16:19:10 +01:00
|
|
|
manager.
|
2013-07-29 15:11:47 +02: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.
|
|
|
|
|
|
|
|
%package -n libpacemaker-devel
|
|
|
|
Summary: Pacemaker development package
|
2008-09-24 17:18:10 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2016-07-04 17:06:14 +02:00
|
|
|
Requires: libpacemaker3 = %{version}-%{release}
|
2013-07-29 15:11:47 +02:00
|
|
|
Requires: libtool-ltdl-devel
|
2016-07-04 17:06:14 +02:00
|
|
|
Requires: pkgconfig
|
|
|
|
Requires: pkgconfig(bzip2)
|
2018-04-30 12:26:02 +02:00
|
|
|
Requires: pkgconfig(corosync) >= 2.0.0
|
2016-07-04 17:06:14 +02:00
|
|
|
Requires: pkgconfig(glib-2.0)
|
|
|
|
Requires: pkgconfig(libqb)
|
|
|
|
Requires: pkgconfig(libxml-2.0)
|
|
|
|
Requires: pkgconfig(libxslt)
|
|
|
|
Requires: pkgconfig(uuid)
|
2016-06-20 13:39:16 +02:00
|
|
|
%if %{enable_lib_cluster_pkg}
|
2016-07-04 17:06:14 +02:00
|
|
|
Requires: libpacemaker3-cluster = %{version}-%{release}
|
2016-06-20 13:39:16 +02:00
|
|
|
%endif
|
|
|
|
%if %{with_regression_tests}
|
2010-06-30 10:46:24 +02:00
|
|
|
# For the regression tests, we can run them only if all pacemaker
|
|
|
|
# packages are installed, so we pull that in here for the regression
|
|
|
|
# builds; this is supposed to be disabled for shipping code.
|
|
|
|
Requires: pacemaker
|
|
|
|
%endif
|
2008-04-30 09:47:33 +02:00
|
|
|
|
2008-09-24 17:18:10 +02:00
|
|
|
%description -n libpacemaker-devel
|
2008-04-30 09:47:33 +02:00
|
|
|
Pacemaker is an advanced, scalable High-Availability cluster resource
|
2017-12-23 16:19:10 +01:00
|
|
|
manager.
|
2008-04-30 09:47:33 +02:00
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
The libpacemaker-devel package contains headers and shared libraries
|
|
|
|
for developing tools for Pacemaker.
|
2008-04-30 09:47:33 +02:00
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
%package cts
|
2016-07-04 17:06:14 +02:00
|
|
|
Summary: Test framework for cluster-related technologies
|
2013-07-29 15:11:47 +02:00
|
|
|
Group: Productivity/Clustering/HA
|
2019-11-07 17:09:29 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2018-07-27 17:42:24 +02:00
|
|
|
Requires: procps
|
|
|
|
Requires: psmisc
|
2018-01-05 21:55:11 +01:00
|
|
|
Requires: python3
|
2018-04-30 12:26:02 +02:00
|
|
|
BuildArch: noarch
|
2018-01-05 21:55:11 +01:00
|
|
|
#Requires: python3-systemd
|
|
|
|
Recommends: python3-systemd
|
2008-04-30 09:47:33 +02:00
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
%description cts
|
2016-07-04 17:06:14 +02:00
|
|
|
Test framework for cluster-related technologies like Pacemaker
|
2008-04-30 09:47:33 +02:00
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for Pacemaker
|
|
|
|
Group: Productivity/Clustering/HA
|
2018-04-30 12:26:02 +02:00
|
|
|
BuildArch: noarch
|
2008-04-30 09:47:33 +02:00
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
%description doc
|
|
|
|
Documentation for Pacemaker.
|
|
|
|
|
|
|
|
Pacemaker is an advanced, scalable High-Availability cluster resource
|
2017-12-23 16:19:10 +01:00
|
|
|
manager.
|
2008-04-30 09:47:33 +02:00
|
|
|
|
|
|
|
%prep
|
2017-12-23 16:19:10 +01:00
|
|
|
%setup -q -n %{name}-%{version}
|
2010-06-30 10:46:24 +02:00
|
|
|
%patch1 -p1
|
2019-08-08 18:13:22 +02:00
|
|
|
%patch2 -p1
|
2011-12-16 05:55:14 +01:00
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
2012-07-30 04:03:55 +02:00
|
|
|
%patch6 -p1
|
2013-05-21 14:29:04 +02:00
|
|
|
%patch7 -p1
|
2015-09-18 13:56:45 +02:00
|
|
|
%patch8 -p1
|
2016-05-29 23:17:56 +02:00
|
|
|
%patch9 -p1
|
2020-05-11 18:32:16 +02:00
|
|
|
%patch10 -p1
|
2021-02-01 11:34:27 +01:00
|
|
|
%patch11 -p1
|
2008-04-30 09:47:33 +02:00
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
%build
|
2016-11-08 11:56:04 +01:00
|
|
|
|
2019-11-07 17:09:29 +01:00
|
|
|
export systemdsystemunitdir=%{?_unitdir}%{!?_unitdir:no}
|
2016-11-08 11:56:04 +01:00
|
|
|
|
2017-03-17 11:24:07 +01:00
|
|
|
%if %{with hardening}
|
|
|
|
# prefer distro-provided hardening flags in case they are defined
|
|
|
|
# through _hardening_{c,ld}flags macros, configure script will
|
|
|
|
# use its own defaults otherwise; if such hardenings are completely
|
|
|
|
# undesired, rpmbuild using "--without hardening"
|
|
|
|
# (or "--define '_without_hardening 1'")
|
|
|
|
export CFLAGS_HARDENED_EXE="%{?_hardening_cflags}"
|
|
|
|
export CFLAGS_HARDENED_LIB="%{?_hardening_cflags}"
|
|
|
|
export LDFLAGS_HARDENED_EXE="%{?_hardening_ldflags}"
|
|
|
|
export LDFLAGS_HARDENED_LIB="%{?_hardening_ldflags}"
|
|
|
|
%endif
|
|
|
|
|
2016-06-20 13:39:16 +02:00
|
|
|
autoreconf -fvi
|
2016-06-13 17:59:58 +02:00
|
|
|
|
2021-04-09 13:05:33 +02:00
|
|
|
%global concurrent_fencing --with-concurrent-fencing-default=true
|
|
|
|
%global compat20 --enable-compat-2.0
|
|
|
|
|
2016-06-20 13:39:16 +02:00
|
|
|
%configure \
|
2016-07-04 17:06:14 +02:00
|
|
|
--docdir=%{_docdir}/%{name} \
|
|
|
|
--disable-static \
|
|
|
|
--disable-silent-rules \
|
2016-06-20 13:39:16 +02:00
|
|
|
%if %{with_nagios}
|
2013-07-29 15:11:47 +02:00
|
|
|
--with-nagios=true \
|
|
|
|
%endif
|
2016-06-20 13:39:16 +02:00
|
|
|
%if !%{enable_fatal_warnings}
|
2013-07-29 15:11:47 +02:00
|
|
|
--enable-fatal-warnings=no \
|
|
|
|
%endif
|
2018-10-05 15:20:59 +02:00
|
|
|
PYTHON=%{python_path} \
|
2018-07-27 17:42:24 +02:00
|
|
|
%{!?with_hardening: --disable-hardening} \
|
2021-04-09 13:05:33 +02:00
|
|
|
%{?with_legacy_links: --enable-legacy-links} \
|
2018-07-27 17:42:24 +02:00
|
|
|
%{?with_profiling: --with-profiling} \
|
|
|
|
%{?with_coverage: --with-coverage} \
|
2020-07-10 14:16:26 +02:00
|
|
|
%{?with_cibsecrets: --with-cibsecrets} \
|
2021-04-09 13:05:33 +02:00
|
|
|
%{?concurrent_fencing} \
|
|
|
|
%{?compat20} \
|
2018-07-27 17:42:24 +02:00
|
|
|
--with-initdir=%{_initddir} \
|
2019-11-07 17:09:29 +01:00
|
|
|
--with-runstatedir=%{_rundir} \
|
2018-07-27 17:42:24 +02:00
|
|
|
--localstatedir=%{_var} \
|
2016-07-04 17:06:14 +02:00
|
|
|
--with-version=%{version}-%{release}
|
2013-07-29 15:11:47 +02:00
|
|
|
|
2019-08-08 18:13:22 +02:00
|
|
|
make %{?_smp_mflags}
|
2008-04-30 09:47:33 +02:00
|
|
|
|
|
|
|
%install
|
2016-07-04 17:06:14 +02:00
|
|
|
%make_install
|
2016-06-20 13:39:16 +02:00
|
|
|
|
2021-04-09 13:05:33 +02:00
|
|
|
rm -fr %{buildroot}/etc/sysconfig
|
2017-11-29 18:29:11 +01:00
|
|
|
install -d -m755 %{buildroot}%{_fillupdir}
|
2021-04-09 13:05:33 +02:00
|
|
|
install -m 644 etc/sysconfig/pacemaker %{buildroot}%{_fillupdir}/sysconfig.pacemaker
|
|
|
|
install -m 644 etc/sysconfig/crm_mon %{buildroot}%{_fillupdir}/sysconfig.crm_mon
|
2013-05-21 14:29:04 +02:00
|
|
|
|
2017-03-17 11:24:07 +01:00
|
|
|
# Don't package static libs
|
|
|
|
find %{buildroot} -type f -name "*.a" -delete -print
|
2016-06-20 13:39:16 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2010-06-30 10:46:24 +02:00
|
|
|
|
2018-09-13 16:56:07 +02:00
|
|
|
# For now, don't package the servicelog-related binaries built only for
|
|
|
|
# ppc64le when certain dependencies are installed. If they get more exercise by
|
|
|
|
# advanced users, we can reconsider.
|
|
|
|
rm -f %{buildroot}/%{_sbindir}/notifyServicelogEvent
|
|
|
|
rm -f %{buildroot}/%{_sbindir}/ipmiservicelogd
|
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
# Don't ship init scripts for systemd based platforms
|
2016-06-20 13:39:16 +02:00
|
|
|
rm -f %{buildroot}/%{_initddir}/pacemaker
|
|
|
|
rm -f %{buildroot}/%{_initddir}/pacemaker_remote
|
2014-03-03 12:51:26 +01:00
|
|
|
|
2017-03-17 11:24:07 +01:00
|
|
|
%if %{with coverage}
|
|
|
|
GCOV_BASE=%{buildroot}/%{_var}/lib/pacemaker/gcov
|
|
|
|
mkdir -p $GCOV_BASE
|
|
|
|
find . -name '*.gcno' -type f | while read F ; do
|
|
|
|
D=`dirname $F`
|
|
|
|
mkdir -p ${GCOV_BASE}/$D
|
|
|
|
cp $F ${GCOV_BASE}/$D
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
2016-06-20 13:39:16 +02:00
|
|
|
ln -s service %{buildroot}%{_sbindir}/rcpacemaker
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rcpacemaker_remote
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rccrm_mon
|
2013-07-29 15:11:47 +02:00
|
|
|
|
2015-11-17 12:08:54 +01:00
|
|
|
mv %{buildroot}%{_sbindir}/crm_report %{buildroot}%{_sbindir}/crm_report.pacemaker
|
2016-06-20 13:39:16 +02:00
|
|
|
install -m 755 %{SOURCE1} %{buildroot}%{_sbindir}/crm_report
|
|
|
|
|
2020-07-10 14:16:26 +02:00
|
|
|
ln -s ../heartbeat/NodeUtilization %{buildroot}%{_prefix}/lib/ocf/resource.d/pacemaker/
|
2017-11-29 17:52:08 +01:00
|
|
|
|
2016-06-20 13:39:16 +02:00
|
|
|
%fdupes -s %{buildroot}
|
2011-02-08 15:00:12 +01:00
|
|
|
|
2016-06-20 13:39:16 +02:00
|
|
|
%check
|
2020-05-11 18:32:16 +02:00
|
|
|
make %{_smp_mflags} check
|
2016-06-20 13:39:16 +02:00
|
|
|
# Prevent false positives in rpmlint
|
2018-07-27 17:42:24 +02:00
|
|
|
./cts/cts-regression -V scheduler cli 2>&1
|
2013-07-29 15:11:47 +02:00
|
|
|
|
2014-05-23 11:12:50 +02:00
|
|
|
%pre
|
|
|
|
%service_add_pre pacemaker.service
|
|
|
|
|
2016-11-08 11:56:04 +01:00
|
|
|
%post
|
|
|
|
%service_add_post pacemaker.service
|
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
%preun
|
|
|
|
%service_del_preun pacemaker.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun pacemaker.service
|
|
|
|
|
2014-05-23 11:12:50 +02:00
|
|
|
%pre remote
|
|
|
|
%service_add_pre pacemaker_remote.service
|
|
|
|
|
2016-11-08 11:56:04 +01:00
|
|
|
%post remote
|
|
|
|
%service_add_post pacemaker_remote.service
|
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
%preun remote
|
|
|
|
%service_del_preun pacemaker_remote.service
|
|
|
|
|
|
|
|
%postun remote
|
|
|
|
%service_del_postun pacemaker_remote.service
|
|
|
|
|
2016-11-08 11:56:04 +01:00
|
|
|
%pre cli
|
|
|
|
%service_add_pre crm_mon.service
|
|
|
|
|
2015-04-30 13:41:46 +02:00
|
|
|
%post cli
|
2017-03-07 01:32:46 +01:00
|
|
|
if [ ! -e %{_sysconfdir}/sysconfig/pacemaker ]; then
|
|
|
|
%fillup_only -n pacemaker
|
|
|
|
fi
|
|
|
|
|
2015-04-30 13:41:46 +02:00
|
|
|
%service_add_post crm_mon.service
|
2017-03-07 01:32:46 +01:00
|
|
|
|
|
|
|
if [ ! -e %{_sysconfdir}/sysconfig/crm_mon ]; then
|
|
|
|
%fillup_only -n crm_mon
|
|
|
|
fi
|
2015-04-30 13:41:46 +02:00
|
|
|
|
2018-07-27 17:42:24 +02:00
|
|
|
if [ "$1" -eq "2" ]; then
|
|
|
|
# Package upgrade, not initial install:
|
|
|
|
# Move any pre-2.0 logs to new location to ensure they get rotated
|
|
|
|
{ mv -fbS.rpmsave %{_var}/log/pacemaker.log* %{_var}/log/pacemaker \
|
|
|
|
|| mv -f %{_var}/log/pacemaker.log* %{_var}/log/pacemaker
|
|
|
|
} >/dev/null 2>/dev/null || :
|
|
|
|
fi
|
|
|
|
|
2015-04-30 13:41:46 +02:00
|
|
|
%preun cli
|
|
|
|
%service_del_preun crm_mon.service
|
|
|
|
|
|
|
|
%postun cli
|
|
|
|
%service_del_postun crm_mon.service
|
|
|
|
|
2013-07-29 15:11:47 +02:00
|
|
|
%pre -n libpacemaker3
|
Accepting request 842719 from home:yan_gao:branches:network:ha-clustering:Factory
- Update to version 2.0.4+20200702.813fdbfdc:
- libcrmcommon: deprecate create_hello_message() as public API (bsc#1170346, rh#1796824)
- pacemakerd: properly conditionalize corosync calls (bsc#1170346, rh#1796824)
- pacemakerd: use existing handle for corosync shutdown (bsc#1170346, rh#1796824)
- pacemakerd: improve messages (bsc#1170346, rh#1796824)
- pacemakerd: functionize removing core file limit (bsc#1170346, rh#1796824)
- pacemakerd: remove unneeded IPC and CPG commands (bsc#1170346, rh#1796824)
- tools: crm_node -l and -p now work from Pacemaker Remote nodes (bsc#1170346, rh#1796824)
- functionize numeric comparisons of strings (bsc#1170346, rh#1796824)
- controller: add new IPC API command for getting node list (bsc#1170346, rh#1796824)
- Update to version 2.0.4+20200701.556cef416:
- tools: convert crmadmin to use new controller IPC model (bsc#1170346, rh#1796824)
- tools: remove dead code from crm_node (bsc#1170346, rh#1796824)
- tools: convert crm_node to use new controller IPC model (bsc#1170346, rh#1796824)
- tools: convert crm_resource to use new controller IPC model (bsc#1170346, rh#1796824)
- libcrmcommon: add C API for controller IPC (bsc#1170346, rh#1796824)
- libcrmcommon: new model for daemon IPC API (bsc#1170346, rh#1796824)
- Update to version 2.0.4+20200630.107af1896:
- tools, libs: Use pcmk__str_any_of and pcmk__str_all_of.
- libcrmcommon: Add pcmk__str_any_of and pcmk__str_none_of.
- Update to version 2.0.4+20200624.67a6a9b31:
- lib, tools: Correct types given to PCMK__OUTPUT_ARGS.
- Update to version 2.0.4+20200623.e36fe309d:
- sysconfig: remove outdated reference to wildcards in PCMK_trace_files
- rpm: use https in package URL
- resources: don't check host-specific conditions in attribute validate
OBS-URL: https://build.opensuse.org/request/show/842719
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/pacemaker?expand=0&rev=341
2020-10-20 10:55:36 +02:00
|
|
|
getent group %{gname} >/dev/null || groupadd -r %{gname} -g %{hacluster_id}
|
|
|
|
getent passwd %{uname} >/dev/null || useradd -r -g %{gname} -u %{hacluster_id} -s /sbin/nologin -c "cluster user" %{uname}
|
2013-07-29 15:11:47 +02:00
|
|
|
exit 0
|
2008-04-30 09:47:33 +02:00
|
|
|
|
2008-09-24 17:18:10 +02:00
|
|
|
%post -n libpacemaker3 -p /sbin/ldconfig
|
|
|
|
%postun -n libpacemaker3 -p /sbin/ldconfig
|
2008-04-30 09:47:33 +02:00
|
|
|
|
2013-07-30 08:11:07 +02:00
|
|
|
%if %{enable_lib_cluster_pkg}
|
2013-07-29 15:11:47 +02:00
|
|
|
%post -n libpacemaker3-cluster -p /sbin/ldconfig
|
|
|
|
%postun -n libpacemaker3-cluster -p /sbin/ldconfig
|
2013-07-30 08:11:07 +02:00
|
|
|
%endif
|
2013-07-29 15:11:47 +02:00
|
|
|
|
2016-06-20 13:39:16 +02:00
|
|
|
%if %{with_regression_tests}
|
2010-06-30 10:46:24 +02:00
|
|
|
%post -n libpacemaker-devel
|
|
|
|
if [ ! -e /tmp/.pcmk_regression_tests_ran ]; then
|
|
|
|
touch /tmp/.pcmk_regression_tests_ran
|
|
|
|
# Needed so that the shell doesn't get stuck on escape
|
|
|
|
# sequences
|
|
|
|
export TERM=dumb
|
2018-07-27 17:42:24 +02:00
|
|
|
%{_datadir}/pacemaker/tests/cts-cli || true
|
|
|
|
%{_datadir}/pacemaker/tests/cts-scheduler -V || true
|
2010-06-30 10:46:24 +02:00
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
|
2008-04-30 09:47:33 +02:00
|
|
|
%files
|
2016-06-20 13:39:16 +02:00
|
|
|
%defattr(-,root,root)
|
2017-02-28 15:42:53 +01:00
|
|
|
%{_defaultdocdir}/%{name}/
|
2013-07-29 15:11:47 +02:00
|
|
|
%{_sbindir}/pacemakerd
|
|
|
|
|
|
|
|
%{_unitdir}/pacemaker.service
|
2014-03-03 12:51:26 +01:00
|
|
|
%{_sbindir}/rcpacemaker
|
2013-07-29 15:11:47 +02:00
|
|
|
|
2018-07-27 17:42:24 +02:00
|
|
|
%exclude %{_libexecdir}/pacemaker/cts-log-watcher
|
|
|
|
%exclude %{_libexecdir}/pacemaker/cts-support
|
|
|
|
%exclude %{_sbindir}/pacemaker-remoted
|
2013-07-29 15:11:47 +02:00
|
|
|
%exclude %{_sbindir}/pacemaker_remoted
|
|
|
|
%dir %{_libexecdir}/pacemaker
|
|
|
|
%{_libexecdir}/pacemaker/*
|
|
|
|
|
2010-06-30 10:46:24 +02:00
|
|
|
%{_sbindir}/fence_legacy
|
2013-05-21 14:29:04 +02:00
|
|
|
|
2018-07-27 17:42:24 +02:00
|
|
|
%{_mandir}/man7/pacemaker-controld.7%{ext_man}
|
|
|
|
%{_mandir}/man7/pacemaker-schedulerd.7%{ext_man}
|
|
|
|
%{_mandir}/man7/pacemaker-fenced.7%{ext_man}
|
2016-06-20 13:39:16 +02:00
|
|
|
%{_mandir}/man7/ocf_pacemaker_controld.7%{ext_man}
|
|
|
|
%{_mandir}/man7/ocf_pacemaker_o2cb.7%{ext_man}
|
|
|
|
%{_mandir}/man7/ocf_pacemaker_remote.7%{ext_man}
|
|
|
|
%{_mandir}/man8/fence_legacy.8%{ext_man}
|
|
|
|
%{_mandir}/man8/pacemakerd.8%{ext_man}
|
2013-07-29 15:11:47 +02:00
|
|
|
|
2016-06-13 17:59:58 +02:00
|
|
|
%doc %{_datadir}/pacemaker/alerts
|
|
|
|
|
2016-11-08 11:56:04 +01:00
|
|
|
#%license licenses/GPLv2
|
|
|
|
%doc COPYING ChangeLog
|
2013-07-29 15:11:47 +02:00
|
|
|
|
2013-05-21 14:29:04 +02:00
|
|
|
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/cib
|
|
|
|
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/pengine
|
2020-07-10 14:16:26 +02:00
|
|
|
%{_prefix}/lib/ocf/resource.d/pacemaker/controld
|
|
|
|
%{_prefix}/lib/ocf/resource.d/pacemaker/o2cb
|
|
|
|
%{_prefix}/lib/ocf/resource.d/pacemaker/remote
|
2013-07-29 15:11:47 +02:00
|
|
|
|
|
|
|
%files cli
|
|
|
|
%defattr(-,root,root)
|
2018-07-27 17:42:24 +02:00
|
|
|
%dir %attr (750, root, %{gname}) %{_sysconfdir}/pacemaker
|
2015-10-09 13:34:40 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/pacemaker
|
2015-04-30 13:41:46 +02:00
|
|
|
%{_unitdir}/crm_mon.service
|
|
|
|
%{_sbindir}/rccrm_mon
|
2015-10-09 13:34:40 +02:00
|
|
|
%{_sbindir}/attrd_updater
|
2013-07-29 15:11:47 +02:00
|
|
|
%{_sbindir}/cibadmin
|
2020-07-10 14:16:26 +02:00
|
|
|
%if %{with cibsecrets}
|
|
|
|
%{_sbindir}/cibsecret
|
|
|
|
%endif
|
2015-10-09 13:34:40 +02:00
|
|
|
%{_sbindir}/crm_attribute
|
2013-07-29 15:11:47 +02:00
|
|
|
%{_sbindir}/crm_diff
|
|
|
|
%{_sbindir}/crm_error
|
|
|
|
%{_sbindir}/crm_failcount
|
2015-10-09 13:34:40 +02:00
|
|
|
%{_sbindir}/crm_master
|
2013-07-29 15:11:47 +02:00
|
|
|
%{_sbindir}/crm_mon
|
2018-07-27 17:42:24 +02:00
|
|
|
%{_sbindir}/crm_node
|
2013-07-29 15:11:47 +02:00
|
|
|
%{_sbindir}/crm_resource
|
|
|
|
%{_sbindir}/crm_standby
|
|
|
|
%{_sbindir}/crm_verify
|
|
|
|
%{_sbindir}/crmadmin
|
|
|
|
%{_sbindir}/iso8601
|
|
|
|
%{_sbindir}/crm_shadow
|
|
|
|
%{_sbindir}/crm_simulate
|
|
|
|
%{_sbindir}/crm_report
|
2015-11-17 12:08:54 +01:00
|
|
|
%{_sbindir}/crm_report.pacemaker
|
2019-04-04 15:06:34 +02:00
|
|
|
%{_sbindir}/crm_rule
|
2013-07-29 15:11:47 +02:00
|
|
|
%{_sbindir}/crm_ticket
|
2019-04-04 15:06:34 +02:00
|
|
|
%{_sbindir}/stonith_admin
|
2016-06-13 17:59:58 +02:00
|
|
|
%exclude %{_datadir}/pacemaker/alerts
|
2015-10-09 13:34:40 +02:00
|
|
|
%exclude %{_datadir}/pacemaker/tests
|
|
|
|
%{_datadir}/pacemaker
|
2019-11-07 17:09:29 +01:00
|
|
|
%{_datadir}/pkgconfig/pacemaker-schemas.pc
|
2015-10-09 13:34:40 +02:00
|
|
|
%{_datadir}/snmp/mibs/PCMK-MIB.txt
|
|
|
|
|
2020-07-10 14:16:26 +02:00
|
|
|
%exclude %{_prefix}/lib/ocf/resource.d/pacemaker/controld
|
|
|
|
%exclude %{_prefix}/lib/ocf/resource.d/pacemaker/o2cb
|
|
|
|
%exclude %{_prefix}/lib/ocf/resource.d/pacemaker/remote
|
2015-10-09 13:34:40 +02:00
|
|
|
|
2020-07-10 14:16:26 +02:00
|
|
|
%dir %{_prefix}/lib/ocf
|
|
|
|
%dir %{_prefix}/lib/ocf/resource.d
|
|
|
|
%{_prefix}/lib/ocf/resource.d/pacemaker
|
2015-10-09 13:34:40 +02:00
|
|
|
|
2017-11-29 18:29:11 +01:00
|
|
|
%config(noreplace) %{_fillupdir}/sysconfig.pacemaker
|
|
|
|
%config(noreplace) %{_fillupdir}/sysconfig.crm_mon
|
2016-06-20 13:39:16 +02:00
|
|
|
%{_mandir}/man7/*
|
2018-07-27 17:42:24 +02:00
|
|
|
%exclude %{_mandir}/man7/pacemaker-controld.*
|
|
|
|
%exclude %{_mandir}/man7/pacemaker-schedulerd.*
|
|
|
|
%exclude %{_mandir}/man7/pacemaker-fenced.*
|
2015-10-09 13:34:40 +02:00
|
|
|
%exclude %{_mandir}/man7/ocf_pacemaker_controld.*
|
|
|
|
%exclude %{_mandir}/man7/ocf_pacemaker_o2cb.*
|
|
|
|
%exclude %{_mandir}/man7/ocf_pacemaker_remote.*
|
2016-06-20 13:39:16 +02:00
|
|
|
%{_mandir}/man8/*
|
2013-07-29 15:11:47 +02:00
|
|
|
%exclude %{_mandir}/man8/fence_legacy.*
|
|
|
|
%exclude %{_mandir}/man8/pacemakerd.*
|
2018-07-27 17:42:24 +02:00
|
|
|
%exclude %{_mandir}/man8/pacemaker-remoted.*
|
2013-07-29 15:11:47 +02:00
|
|
|
|
2016-11-08 11:56:04 +01:00
|
|
|
#%license licenses/GPLv2
|
|
|
|
%doc COPYING ChangeLog
|
2008-04-30 09:47:33 +02:00
|
|
|
|
2016-02-29 15:41:59 +01:00
|
|
|
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker
|
|
|
|
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/blackbox
|
|
|
|
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/cores
|
2018-02-10 13:26:11 +01:00
|
|
|
%dir %attr (770, %{uname}, %{gname}) %{_var}/log/pacemaker
|
|
|
|
%dir %attr (770, %{uname}, %{gname}) %{_var}/log/pacemaker/bundles
|
2016-02-29 15:41:59 +01:00
|
|
|
|
2008-09-24 17:18:10 +02:00
|
|
|
%files -n libpacemaker3
|
|
|
|
%defattr(-,root,root)
|
2013-07-29 15:11:47 +02:00
|
|
|
|
2008-09-24 17:18:10 +02:00
|
|
|
%{_libdir}/libcib.so.*
|
2013-07-29 15:11:47 +02:00
|
|
|
%{_libdir}/liblrmd.so.*
|
|
|
|
%{_libdir}/libcrmservice.so.*
|
2008-09-24 17:18:10 +02:00
|
|
|
%{_libdir}/libcrmcommon.so.*
|
|
|
|
%{_libdir}/libpe_status.so.*
|
|
|
|
%{_libdir}/libpe_rules.so.*
|
2019-04-12 11:15:14 +02:00
|
|
|
%{_libdir}/libpacemaker.so.*
|
2008-09-24 17:18:10 +02:00
|
|
|
%{_libdir}/libstonithd.so.*
|
2016-11-08 11:56:04 +01:00
|
|
|
#%license licenses/LGPLv2.1
|
|
|
|
%doc COPYING ChangeLog
|
2013-07-29 15:11:47 +02:00
|
|
|
%{_libdir}/libcrmcluster.so.*
|
|
|
|
|
2013-07-30 08:11:07 +02:00
|
|
|
%if %{enable_lib_cluster_pkg}
|
2013-07-29 15:11:47 +02:00
|
|
|
%files -n libpacemaker3-cluster
|
|
|
|
%defattr(-,root,root)
|
2016-06-20 13:39:16 +02:00
|
|
|
%{_libdir}/libcrmcluster.so.*
|
2016-11-08 11:56:04 +01:00
|
|
|
#%license licenses/LGPLv2.1
|
|
|
|
%doc COPYING ChangeLog
|
2013-07-30 08:11:07 +02:00
|
|
|
%endif
|
2013-07-29 15:11:47 +02:00
|
|
|
|
|
|
|
%files remote
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_unitdir}/pacemaker_remote.service
|
2014-03-03 12:51:26 +01:00
|
|
|
%{_sbindir}/rcpacemaker_remote
|
2018-07-27 17:42:24 +02:00
|
|
|
|
|
|
|
%{_sbindir}/pacemaker-remoted
|
2013-07-29 15:11:47 +02:00
|
|
|
%{_sbindir}/pacemaker_remoted
|
2018-07-27 17:42:24 +02:00
|
|
|
%{_mandir}/man8/pacemaker-remoted.8%{ext_man}
|
2016-11-08 11:56:04 +01:00
|
|
|
#%license licenses/GPLv2
|
|
|
|
%doc COPYING ChangeLog
|
2013-07-29 15:11:47 +02:00
|
|
|
|
2016-06-20 13:39:16 +02:00
|
|
|
%if %{with doc}
|
2013-07-29 15:11:47 +02:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{pcmk_docdir}
|
2016-11-08 11:56:04 +01:00
|
|
|
#%license licenses/CC-BY-SA-4.0
|
2013-07-29 15:11:47 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files cts
|
|
|
|
%defattr(-,root,root)
|
2018-02-10 13:26:11 +01:00
|
|
|
%{python3_sitelib}/cts
|
|
|
|
%{_datadir}/pacemaker/tests
|
2018-07-27 17:42:24 +02:00
|
|
|
|
|
|
|
%{_libexecdir}/pacemaker/cts-log-watcher
|
|
|
|
%{_libexecdir}/pacemaker/cts-support
|
|
|
|
|
2016-11-08 11:56:04 +01:00
|
|
|
#%license licenses/GPLv2
|
|
|
|
%doc COPYING ChangeLog
|
2008-09-24 17:18:10 +02:00
|
|
|
|
|
|
|
%files -n libpacemaker-devel
|
2008-04-30 09:47:33 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/pacemaker
|
|
|
|
%{_libdir}/*.so
|
2017-03-17 11:24:07 +01:00
|
|
|
%if %{with coverage}
|
|
|
|
%{_var}/lib/pacemaker/gcov
|
|
|
|
%endif
|
2013-07-29 15:11:47 +02:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2016-11-08 11:56:04 +01:00
|
|
|
#%license licenses/LGPLv2.1
|
|
|
|
%doc COPYING ChangeLog
|
2008-04-30 09:47:33 +02:00
|
|
|
|
|
|
|
%changelog
|