e5c014
# User-configurable globals and defines to control package behavior
e5c014
# (these should not test {with X} values, which are declared later)
305287
305287
## User and group to use for nonprivileged services
305287
%global uname hacluster
305287
%global gname haclient
305287
305287
## Where to install Pacemaker documentation
14fe03
%if 0%{?suse_version} > 0
14fe03
%global pcmk_docdir %{_docdir}/%{name}-%{version}
14fe03
%else
14fe03
%if 0%{?rhel} > 7
305287
%global pcmk_docdir %{_docdir}/%{name}-doc
14fe03
%else
14fe03
%global pcmk_docdir %{_docdir}/%{name}
14fe03
%endif
14fe03
%endif
305287
305287
## GitHub entity that distributes source (for ease of using a fork)
305287
%global github_owner ClusterLabs
305287
305287
## Upstream pacemaker version, and its package version (specversion
305287
## can be incremented to build packages reliably considered "newer"
305287
## than previously built packages with the same pcmkversion)
e5c014
%global pcmkversion 2.0.4
14fe03
%global specversion 3
305287
e5c014
## Upstream commit (full commit ID, abbreviated commit ID, or tag) to build
e5c014
%global commit 2deceaa3ae1fbadd844f5c5b47fd33129fa2c227
305287
## Since git v2.11, the extent of abbreviation is autoscaled by default
305287
## (used to be constant of 7), so we need to convey it for non-tags, too.
305287
%global commit_abbrev 7
305287
305287
## Python major version to use (2, 3, or 0 for auto-detect)
305287
%global python_major 0
305287
305287
## Nagios source control identifiers
305287
%global nagios_name nagios-agents-metadata
305287
%global nagios_hash 105ab8a
305287
305287
e5c014
# Define conditionals so that "rpmbuild --with <feature>" and
e5c014
# "rpmbuild --without <feature>" can enable and disable specific features
e5c014
e5c014
## Add option to enable support for stonith/external fencing agents
e5c014
%bcond_with stonithd
e5c014
e5c014
## Add option to disable support for storing sensitive information outside CIB
e5c014
%bcond_without cibsecrets
e5c014
e5c014
## Add option to create binaries suitable for use with profiling tools
e5c014
%bcond_with profiling
e5c014
e5c014
## Add option to create binaries with coverage analysis
e5c014
%bcond_with coverage
e5c014
e5c014
## Add option to generate documentation (requires Publican, Asciidoc and Inkscape)
e5c014
%bcond_with doc
e5c014
e5c014
## Add option to prefix package version with "0."
e5c014
## (so later "official" packages will be considered updates)
e5c014
%bcond_with pre_release
e5c014
e5c014
## Add option to ship Upstart job files
e5c014
%bcond_with upstart_job
e5c014
e5c014
## Add option to turn off hardening of libraries and daemon executables
e5c014
%bcond_without hardening
e5c014
e5c014
## Add option to disable links for legacy daemon names
e5c014
%bcond_without legacy_links
e5c014
e5c014
305287
# Define globals for convenient use later
305287
305287
## Workaround to use parentheses in other globals
305287
%global lparen (
305287
%global rparen )
305287
e5c014
## Whether this is a tagged release (final or release candidate)
e5c014
%define tag_release %(c=%{commit}; case ${c} in Pacemaker-*%{rparen} echo 1 ;;
e5c014
                      *%{rparen} echo 0 ;; esac)
305287
e5c014
## Portion of export/dist tarball name after "pacemaker-", and release version
e5c014
%if 0%{tag_release}
e5c014
%define archive_version %(c=%{commit}; echo ${c:10})
e5c014
%define archive_github_url %{commit}#/%{name}-%{archive_version}.tar.gz
e5c014
%else
e5c014
%define archive_version %(c=%{commit}; echo ${c:0:%{commit_abbrev}})
e5c014
%define archive_github_url %{archive_version}#/%{name}-%{archive_version}.tar.gz
e5c014
%endif
e5c014
# RHEL always uses a simple release number
e5c014
%define pcmk_release %{specversion}
305287
305287
## Heuristic used to infer bleeding-edge deployments that are
305287
## less likely to have working versions of the documentation tools
305287
%define bleeding %(test ! -e /etc/yum.repos.d/fedora-rawhide.repo; echo $?)
305287
305287
## Whether this platform defaults to using systemd as an init system
305287
## (needs to be evaluated prior to BuildRequires being enumerated and
305287
## installed as it's intended to conditionally select some of these, and
305287
## for that there are only few indicators with varying reliability:
305287
## - presence of systemd-defined macros (when building in a full-fledged
305287
##   environment, which is not the case with ordinary mock-based builds)
305287
## - systemd-aware rpm as manifested with the presence of particular
305287
##   macro (rpm itself will trivially always be present when building)
305287
## - existence of /usr/lib/os-release file, which is something heavily
305287
##   propagated by systemd project
305287
## - when not good enough, there's always a possibility to check
305287
##   particular distro-specific macros (incl. version comparison)
305287
%define systemd_native (%{?_unitdir:1}%{!?_unitdir:0}%{nil \
305287
  } || %{?__transaction_systemd_inhibit:1}%{!?__transaction_systemd_inhibit:0}%{nil \
305287
  } || %(test -f /usr/lib/os-release; test $? -ne 0; echo $?))
305287
305287
# Even though we pass @SYSTEM here, Pacemaker is still an exception to the
305287
# crypto policies because it adds "+ANON-DH" for CIB remote commands and
305287
# "+DHE-PSK:+PSK" for Pacemaker Remote connections. This is currently
305287
# required for the respective functionality.
305287
%if 0%{?fedora} > 20 || 0%{?rhel} > 7
305287
## Base GnuTLS cipher priorities (presumably only the initial, required keyword)
305287
## overridable with "rpmbuild --define 'pcmk_gnutls_priorities PRIORITY-SPEC'"
305287
%define gnutls_priorities %{?pcmk_gnutls_priorities}%{!?pcmk_gnutls_priorities:@SYSTEM}
305287
%endif
305287
14fe03
%if !%{defined _rundir}
14fe03
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1200
14fe03
%define _rundir /run
14fe03
%else
14fe03
%define _rundir /var/run
14fe03
%endif
14fe03
%endif
14fe03
14fe03
%if 0%{?fedora} > 22 || 0%{?rhel} > 7
14fe03
%global supports_recommends 1
14fe03
%endif
14fe03
14fe03
## Different distros name certain packages differently
14fe03
## (note: corosync libraries also differ, but all provide corosync-devel)
14fe03
%if 0%{?suse_version} > 0
14fe03
%global pkgname_bzip2_devel libbz2-devel
14fe03
%global pkgname_docbook_xsl docbook-xsl-stylesheets
14fe03
%global pkgname_gnutls_devel libgnutls-devel
14fe03
%global pkgname_shadow_utils shadow
14fe03
%global pkgname_procps procps
14fe03
%global pkgname_glue_libs libglue
14fe03
%global pkgname_pcmk_libs lib%{name}3
14fe03
%global hacluster_id 90
14fe03
%else
14fe03
%global pkgname_libtool_devel libtool-ltdl-devel
14fe03
%global pkgname_libtool_devel_arch libtool-ltdl-devel%{?_isa}
14fe03
%global pkgname_bzip2_devel bzip2-devel
14fe03
%global pkgname_docbook_xsl docbook-style-xsl
14fe03
%global pkgname_gnutls_devel gnutls-devel
14fe03
%global pkgname_shadow_utils shadow-utils
14fe03
%global pkgname_procps procps-ng
14fe03
%global pkgname_publican publican
14fe03
%global pkgname_glue_libs cluster-glue-libs
14fe03
%global pkgname_pcmk_libs %{name}-libs
14fe03
%global hacluster_id 189
14fe03
%endif
14fe03
305287
# Python-related definitions
305287
305287
## Use Python 3 on certain platforms if major version not specified
305287
%if %{?python_major} == 0
305287
%if 0%{?fedora} > 26 || 0%{?rhel} > 7
305287
%global python_major 3
305287
%endif
305287
%endif
305287
305287
## Turn off auto-compilation of Python files outside Python specific paths,
305287
## so there's no risk that unexpected "__python" macro gets picked to do the
305287
## RPM-native byte-compiling there (only "{_datadir}/pacemaker/tests" affected)
305287
## -- distro-dependent tricks or automake's fallback to be applied there
305287
%if %{defined _python_bytecompile_extra}
305287
%global _python_bytecompile_extra 0
305287
%else
305287
### the statement effectively means no RPM-native byte-compiling will occur at
305287
### all, so distro-dependent tricks for Python-specific packages to be applied
305287
%global __os_install_post %(echo '%{__os_install_post}' | {
305287
                            sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g'; })
305287
%endif
305287
305287
## Values that differ by Python major version
305287
%if 0%{?python_major} > 2
305287
%global python_name python3
305287
%global python_path %{?__python3}%{!?__python3:/usr/bin/python%{?python3_pkgversion}%{!?python3_pkgversion:3}}
305287
%define python_site %{?python3_sitelib}%{!?python3_sitelib:%(
305287
  %{python_path} -c 'from distutils.sysconfig import get_python_lib as gpl; print(gpl(1))' 2>/dev/null)}
305287
%else
305287
%if 0%{?python_major} > 1
305287
%global python_name python2
305287
%global python_path %{?__python2}%{!?__python2:/usr/bin/python%{?python2_pkgversion}%{!?python2_pkgversion:2}}
305287
%define python_site %{?python2_sitelib}%{!?python2_sitelib:%(
305287
  %{python_path} -c 'from distutils.sysconfig import get_python_lib as gpl; print(gpl(1))' 2>/dev/null)}
305287
%else
305287
%global python_name python
305287
%global python_path %{?__python}%{!?__python:/usr/bin/python%{?python_pkgversion}}
305287
%define python_site %{?python_sitelib}%{!?python_sitelib:%(
305287
  python -c 'from distutils.sysconfig import get_python_lib as gpl; print(gpl(1))' 2>/dev/null)}
305287
%endif
305287
%endif
305287
305287
305287
# Definitions for backward compatibility with older RPM versions
305287
305287
## Ensure the license macro behaves consistently (older RPM will otherwise
305287
## overwrite it once it encounters "License:"). Courtesy Jason Tibbitts:
305287
## https://pkgs.fedoraproject.org/cgit/rpms/epel-rpm-macros.git/tree/macros.zzz-epel?h=el6&id=e1adcb77
305287
%if !%{defined _licensedir}
305287
%define description %{lua:
305287
    rpm.define("license %doc")
305287
    print("%description")
305287
}
305287
%endif
305287
305287
305287
# Keep sane profiling data if requested
305287
%if %{with profiling}
305287
305287
## Disable -debuginfo package and stripping binaries/libraries
305287
%define debug_package %{nil}
305287
305287
%endif
305287
305287
305287
Name:          pacemaker
305287
Summary:       Scalable High-Availability cluster resource manager
305287
Version:       %{pcmkversion}
305287
Release:       %{pcmk_release}%{?dist}
305287
%if %{defined _unitdir}
305287
License:       GPLv2+ and LGPLv2+
305287
%else
305287
# initscript is Revised BSD
305287
License:       GPLv2+ and LGPLv2+ and BSD
305287
%endif
305287
Url:           http://www.clusterlabs.org
305287
Group:         System Environment/Daemons
305287
e5c014
# Example: https://codeload.github.com/ClusterLabs/pacemaker/tar.gz/e91769e
e5c014
# will download pacemaker-e91769e.tar.gz
e5c014
#
e5c014
# The ending part starting with '#' is ignored by github but necessary for
e5c014
# rpmbuild to know what the tar archive name is. (The downloaded file will be
e5c014
# named correctly only for commit IDs, not tagged releases.)
e5c014
#
e5c014
# You can use "spectool -s 0 pacemaker.spec" (rpmdevtools) to show final URL.
e5c014
Source0:       https://codeload.github.com/%{github_owner}/%{name}/tar.gz/%{archive_github_url}
305287
Source1:       nagios-agents-metadata-%{nagios_hash}.tar.gz
305287
305287
# upstream commits
e5c014
Patch1:         001-rules.patch
e5c014
Patch2:         002-demote.patch
e5c014
Patch3:         003-trace.patch
e5c014
Patch4:         004-test.patch
e5c014
Patch5:         005-sysconfig.patch
305287
305287
# downstream-only commits
14fe03
#Patch100:      xxx.patch
305287
305287
Requires:      resource-agents
14fe03
Requires:      %{pkgname_pcmk_libs}%{?_isa} = %{version}-%{release}
305287
Requires:      %{name}-cluster-libs%{?_isa} = %{version}-%{release}
305287
Requires:      %{name}-cli = %{version}-%{release}
305287
%if !%{defined _unitdir}
14fe03
Requires:      %{pkgname_procps}
305287
Requires:      psmisc
305287
%endif
305287
%{?systemd_requires}
305287
e5c014
%if %{defined centos}
e5c014
ExclusiveArch: aarch64 i686 ppc64le s390x x86_64 %{arm}
e5c014
%else
305287
ExclusiveArch: aarch64 i686 ppc64le s390x x86_64
e5c014
%endif
305287
305287
Requires:      %{python_path}
305287
BuildRequires: %{python_name}-devel
305287
305287
# Pacemaker requires a minimum libqb functionality
305287
Requires:      libqb >= 0.17.0
305287
BuildRequires: libqb-devel >= 0.17.0
305287
305287
# Basics required for the build (even if usually satisfied through other BRs)
305287
BuildRequires: coreutils findutils grep sed
305287
305287
# Required for core functionality
14fe03
BuildRequires: automake autoconf gcc libtool pkgconfig %{?pkgname_libtool_devel}
305287
BuildRequires: pkgconfig(glib-2.0) >= 2.16
305287
BuildRequires: libxml2-devel libxslt-devel libuuid-devel
14fe03
BuildRequires: %{pkgname_bzip2_devel}
305287
305287
# Enables optional functionality
14fe03
BuildRequires: ncurses-devel %{pkgname_docbook_xsl}
14fe03
BuildRequires: help2man %{pkgname_gnutls_devel} pam-devel pkgconfig(dbus-1)
305287
305287
%if %{systemd_native}
305287
BuildRequires: pkgconfig(systemd)
305287
%endif
305287
305287
# RH patches are created by git, so we need git to apply them
305287
BuildRequires: git
305287
305287
Requires:      corosync >= 2.0.0
14fe03
BuildRequires: corosync-devel >= 2.0.0
305287
305287
%if %{with stonithd}
14fe03
BuildRequires: %{pkgname_glue_libs}-devel
305287
%endif
305287
305287
## (note no avoiding effect when building through non-customized mock)
305287
%if !%{bleeding}
305287
%if %{with doc}
14fe03
BuildRequires: inkscape asciidoc %{?pkgname_publican}
305287
%endif
305287
%endif
305287
305287
Provides:      pcmk-cluster-manager = %{version}-%{release}
305287
Provides:      pcmk-cluster-manager%{?_isa} = %{version}-%{release}
305287
305287
# Bundled bits
305287
## Pacemaker uses the crypto/md5-buffer module from gnulib
305287
%if 0%{?fedora} || 0%{?rhel}
305287
Provides:      bundled(gnulib)
305287
%endif
305287
305287
%description
305287
Pacemaker is an advanced, scalable High-Availability cluster resource
305287
manager.
305287
305287
It supports more than 16 node clusters with significant capabilities
305287
for managing resources and dependencies.
305287
305287
It will run scripts at initialization, when machines go up or down,
305287
when related resources fail and can be configured to periodically check
305287
resource health.
305287
305287
Available rpmbuild rebuild options:
e5c014
  --with(out) : cibsecrets coverage doc stonithd hardening pre_release
e5c014
                profiling
305287
305287
%package cli
305287
License:       GPLv2+ and LGPLv2+
305287
Summary:       Command line tools for controlling Pacemaker clusters
305287
Group:         System Environment/Daemons
14fe03
Requires:      %{pkgname_pcmk_libs}%{?_isa} = %{version}-%{release}
14fe03
%if 0%{?supports_recommends}
305287
#Recommends:    pcmk-cluster-manager = %{version}-%{release}
14fe03
# For crm_report
14fe03
Requires:      tar
14fe03
Requires:      bzip2
305287
%endif
305287
Requires:      perl-TimeDate
14fe03
Requires:      %{pkgname_procps}
305287
Requires:      psmisc
305287
Requires(post):coreutils
305287
305287
%description cli
305287
Pacemaker is an advanced, scalable High-Availability cluster resource
305287
manager.
305287
305287
The %{name}-cli package contains command line tools that can be used
305287
to query and control the cluster from machines that may, or may not,
305287
be part of the cluster.
305287
14fe03
%package -n %{pkgname_pcmk_libs}
305287
License:       GPLv2+ and LGPLv2+
305287
Summary:       Core Pacemaker libraries
305287
Group:         System Environment/Daemons
14fe03
Requires(pre): %{pkgname_shadow_utils}
305287
Requires:      %{name}-schemas = %{version}-%{release}
305287
# sbd 1.4.0+ supports the libpe_status API for pe_working_set_t
305287
Conflicts:     sbd < 1.4.0
305287
14fe03
%description -n %{pkgname_pcmk_libs}
305287
Pacemaker is an advanced, scalable High-Availability cluster resource
305287
manager.
305287
14fe03
The %{pkgname_pcmk_libs} package contains shared libraries needed for cluster
305287
nodes and those just running the CLI tools.
305287
305287
%package cluster-libs
305287
License:       GPLv2+ and LGPLv2+
305287
Summary:       Cluster Libraries used by Pacemaker
305287
Group:         System Environment/Daemons
14fe03
Requires:      %{pkgname_pcmk_libs}%{?_isa} = %{version}-%{release}
305287
305287
%description cluster-libs
305287
Pacemaker is an advanced, scalable High-Availability cluster resource
305287
manager.
305287
305287
The %{name}-cluster-libs package contains cluster-aware shared
305287
libraries needed for nodes that will form part of the cluster nodes.
305287
305287
%package remote
305287
%if %{defined _unitdir}
305287
License:       GPLv2+ and LGPLv2+
305287
%else
305287
# initscript is Revised BSD
305287
License:       GPLv2+ and LGPLv2+ and BSD
305287
%endif
305287
Summary:       Pacemaker remote daemon for non-cluster nodes
305287
Group:         System Environment/Daemons
14fe03
Requires:      %{pkgname_pcmk_libs}%{?_isa} = %{version}-%{release}
305287
Requires:      %{name}-cli = %{version}-%{release}
305287
Requires:      resource-agents
305287
%if !%{defined _unitdir}
14fe03
Requires:      %{pkgname_procps}
305287
%endif
305287
# -remote can be fully independent of systemd
305287
%{?systemd_ordering}%{!?systemd_ordering:%{?systemd_requires}}
305287
Provides:      pcmk-cluster-manager = %{version}-%{release}
305287
Provides:      pcmk-cluster-manager%{?_isa} = %{version}-%{release}
305287
305287
%description remote
305287
Pacemaker is an advanced, scalable High-Availability cluster resource
305287
manager.
305287
305287
The %{name}-remote package contains the Pacemaker Remote daemon
305287
which is capable of extending pacemaker functionality to remote
305287
nodes not running the full corosync/cluster stack.
305287
14fe03
%package -n %{pkgname_pcmk_libs}-devel
305287
License:       GPLv2+ and LGPLv2+
305287
Summary:       Pacemaker development package
305287
Group:         Development/Libraries
14fe03
Requires:      %{pkgname_pcmk_libs}%{?_isa} = %{version}-%{release}
305287
Requires:      %{name}-cluster-libs%{?_isa} = %{version}-%{release}
14fe03
Requires:      libuuid-devel%{?_isa} %{?pkgname_libtool_devel_arch}
305287
Requires:      libxml2-devel%{?_isa} libxslt-devel%{?_isa}
14fe03
Requires:      %{pkgname_bzip2_devel}%{?_isa} glib2-devel%{?_isa}
305287
Requires:      libqb-devel%{?_isa}
14fe03
Requires:      corosync-devel >= 2.0.0
305287
14fe03
%description -n %{pkgname_pcmk_libs}-devel
305287
Pacemaker is an advanced, scalable High-Availability cluster resource
305287
manager.
305287
14fe03
The %{pkgname_pcmk_libs}-devel package contains headers and shared libraries
305287
for developing tools for Pacemaker.
305287
305287
%package       cts
305287
License:       GPLv2+ and LGPLv2+
305287
Summary:       Test framework for cluster-related technologies like Pacemaker
305287
Group:         System Environment/Daemons
305287
Requires:      %{python_path}
14fe03
Requires:      %{pkgname_pcmk_libs} = %{version}-%{release}
14fe03
Requires:      %{name}-cli = %{version}-%{release}
14fe03
Requires:      %{pkgname_procps}
305287
Requires:      psmisc
305287
BuildArch:     noarch
305287
305287
# systemd python bindings are separate package in some distros
305287
%if %{defined systemd_requires}
305287
305287
%if 0%{?fedora} > 22 || 0%{?rhel} > 7
305287
Requires:      %{python_name}-systemd
305287
%else
305287
%if 0%{?fedora} > 20 || 0%{?rhel} > 6
305287
Requires:      systemd-python
305287
%endif
305287
%endif
305287
305287
%endif
305287
305287
%description   cts
305287
Test framework for cluster-related technologies like Pacemaker
305287
305287
%package       doc
305287
License:       CC-BY-SA-4.0
305287
Summary:       Documentation for Pacemaker
305287
Group:         Documentation
305287
BuildArch:     noarch
305287
305287
%description   doc
305287
Documentation for Pacemaker.
305287
305287
Pacemaker is an advanced, scalable High-Availability cluster resource
305287
manager.
305287
305287
%package       schemas
305287
License:       GPLv2+
305287
Summary:       Schemas and upgrade stylesheets for Pacemaker
305287
BuildArch:     noarch
305287
305287
%description   schemas
305287
Schemas and upgrade stylesheets for Pacemaker
305287
305287
Pacemaker is an advanced, scalable High-Availability cluster resource
305287
manager.
305287
305287
%package       nagios-plugins-metadata
305287
License:       GPLv3
305287
Summary:       Pacemaker Nagios Metadata
305287
Group:         System Environment/Daemons
305287
# NOTE below are the plugins this metadata uses.
305287
# These packages are not requirements because RHEL does not ship these plugins.
305287
# This metadata provides third-party support for nagios. Users may install the
305287
# plugins via third-party rpm packages, or source. If RHEL ships the plugins in
305287
# the future, we should consider enabling the following required fields.
305287
#Requires:      nagios-plugins-http
305287
#Requires:      nagios-plugins-ldap
305287
#Requires:      nagios-plugins-mysql
305287
#Requires:      nagios-plugins-pgsql
305287
#Requires:      nagios-plugins-tcp
305287
Requires:      pcmk-cluster-manager
305287
BuildArch:     noarch
305287
305287
%description   nagios-plugins-metadata
305287
The metadata files required for Pacemaker to execute the nagios plugin
305287
monitor resources.
305287
305287
%prep
e5c014
%autosetup -a 1 -n %{name}-%{archive_version} -S git_am -p 1
305287
305287
%build
305287
305287
# Early versions of autotools (e.g. RHEL <= 5) do not support --docdir
305287
export docdir=%{pcmk_docdir}
305287
14fe03
export systemdsystemunitdir=%{?_unitdir}%{!?_unitdir:no}
305287
305287
# RHEL changes pacemaker's concurrent-fencing default to true
305287
export CPPFLAGS="-DDEFAULT_CONCURRENT_FENCING_TRUE"
305287
305287
%if %{with hardening}
305287
# prefer distro-provided hardening flags in case they are defined
305287
# through _hardening_{c,ld}flags macros, configure script will
305287
# use its own defaults otherwise; if such hardenings are completely
305287
# undesired, rpmbuild using "--without hardening"
305287
# (or "--define '_without_hardening 1'")
305287
export CFLAGS_HARDENED_EXE="%{?_hardening_cflags}"
305287
export CFLAGS_HARDENED_LIB="%{?_hardening_cflags}"
305287
export LDFLAGS_HARDENED_EXE="%{?_hardening_ldflags}"
305287
export LDFLAGS_HARDENED_LIB="%{?_hardening_ldflags}"
305287
%endif
305287
305287
./autogen.sh
305287
305287
%{configure}                                                                    \
305287
        PYTHON=%{python_path}                                                   \
305287
        %{!?with_hardening:    --disable-hardening}                             \
305287
        %{!?with_legacy_links: --disable-legacy-links}                          \
305287
        %{?with_profiling:     --with-profiling}                                \
305287
        %{?with_coverage:      --with-coverage}                                 \
e5c014
        %{?with_cibsecrets:    --with-cibsecrets}                               \
305287
        %{!?with_doc:          --with-brand=}                                   \
305287
        %{?gnutls_priorities:  --with-gnutls-priorities="%{gnutls_priorities}"} \
305287
        --with-initdir=%{_initrddir}                                            \
14fe03
        --with-runstatedir=%{_rundir}                                           \
305287
        --localstatedir=%{_var}                                                 \
14fe03
        --with-bug-url=https://bugzilla.redhat.com/                               \
305287
        --with-nagios                                                             \
305287
        --with-nagios-metadata-dir=%{_datadir}/pacemaker/nagios/plugins-metadata/ \
305287
        --with-nagios-plugin-dir=%{_libdir}/nagios/plugins/                       \
305287
        --with-version=%{version}-%{release}
305287
305287
%if 0%{?suse_version} >= 1200
305287
# Fedora handles rpath removal automagically
305287
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
305287
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
305287
%endif
305287
14fe03
make %{_smp_mflags} V=1
305287
305287
%check
e5c014
make %{_smp_mflags} check
305287
{ cts/cts-scheduler --run load-stopped-loop \
305287
  && cts/cts-cli \
305287
  && touch .CHECKED
305287
} 2>&1 | sed 's/[fF]ail/faiil/g'  # prevent false positives in rpmlint
305287
[ -f .CHECKED ] && rm -f -- .CHECKED
305287
exit $?  # TODO remove when rpm<4.14 compatibility irrelevant
305287
305287
%install
305287
# skip automake-native Python byte-compilation, since RPM-native one (possibly
305287
# distro-confined to Python-specific directories, which is currently the only
305287
# relevant place, anyway) assures proper intrinsic alignment with wider system
305287
# (such as with py_byte_compile macro, which is concurrent Fedora/EL specific)
305287
make install \
305287
  DESTDIR=%{buildroot} V=1 docdir=%{pcmk_docdir} \
305287
  %{?_python_bytecompile_extra:%{?py_byte_compile:am__py_compile=true}}
305287
305287
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
305287
install -m 644 daemons/pacemakerd/pacemaker.sysconfig ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/pacemaker
305287
install -m 644 tools/crm_mon.sysconfig ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/crm_mon
305287
305287
%if %{with upstart_job}
305287
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/init
305287
install -m 644 pacemakerd/pacemaker.upstart ${RPM_BUILD_ROOT}%{_sysconfdir}/init/pacemaker.conf
305287
install -m 644 pacemakerd/pacemaker.combined.upstart ${RPM_BUILD_ROOT}%{_sysconfdir}/init/pacemaker.combined.conf
305287
install -m 644 tools/crm_mon.upstart ${RPM_BUILD_ROOT}%{_sysconfdir}/init/crm_mon.conf
305287
%endif
305287
305287
mkdir -p %{buildroot}%{_datadir}/pacemaker/nagios/plugins-metadata
305287
for file in $(find %{nagios_name}-%{nagios_hash}/metadata -type f); do
305287
    install -m 644 $file %{buildroot}%{_datadir}/pacemaker/nagios/plugins-metadata
305287
done
305287
305287
%if %{defined _unitdir}
305287
mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/lib/rpm-state/%{name}
305287
%endif
305287
305287
# Don't package static libs
305287
find %{buildroot} -name '*.a' -type f -print0 | xargs -0 rm -f
305287
find %{buildroot} -name '*.la' -type f -print0 | xargs -0 rm -f
305287
305287
# Do not package these either
305287
rm -f %{buildroot}/%{_sbindir}/fence_legacy
305287
rm -f %{buildroot}/%{_mandir}/man8/fence_legacy.*
305287
find %{buildroot} -name '*o2cb*' -type f -print0 | xargs -0 rm -f
305287
305287
# For now, don't package the servicelog-related binaries built only for
305287
# ppc64le when certain dependencies are installed. If they get more exercise by
305287
# advanced users, we can reconsider.
305287
rm -f %{buildroot}/%{_sbindir}/notifyServicelogEvent
305287
rm -f %{buildroot}/%{_sbindir}/ipmiservicelogd
305287
305287
# Don't ship init scripts for systemd based platforms
305287
%if %{defined _unitdir}
305287
rm -f %{buildroot}/%{_initrddir}/pacemaker
305287
rm -f %{buildroot}/%{_initrddir}/pacemaker_remote
305287
%endif
305287
305287
# Byte-compile Python sources where suitable and the distro procedures known
305287
%if %{defined py_byte_compile}
305287
%{py_byte_compile %{python_path} %{buildroot}%{_datadir}/pacemaker/tests}
305287
%if !%{defined _python_bytecompile_extra}
305287
%{py_byte_compile %{python_path} %{buildroot}%{python_site}/cts}
305287
%endif
305287
%endif
305287
305287
%if %{with coverage}
305287
GCOV_BASE=%{buildroot}/%{_var}/lib/pacemaker/gcov
305287
mkdir -p $GCOV_BASE
305287
find . -name '*.gcno' -type f | while read F ; do
305287
        D=`dirname $F`
305287
        mkdir -p ${GCOV_BASE}/$D
305287
        cp $F ${GCOV_BASE}/$D
305287
done
305287
%endif
305287
305287
%post
305287
%if %{defined _unitdir}
305287
%systemd_post pacemaker.service
305287
%else
305287
/sbin/chkconfig --add pacemaker || :
305287
%endif
305287
305287
%preun
305287
%if %{defined _unitdir}
305287
%systemd_preun pacemaker.service
305287
%else
305287
/sbin/service pacemaker stop >/dev/null 2>&1 || :
305287
if [ "$1" -eq 0 ]; then
305287
    # Package removal, not upgrade
305287
    /sbin/chkconfig --del pacemaker || :
305287
fi
305287
%endif
305287
305287
%postun
305287
%if %{defined _unitdir}
305287
%systemd_postun_with_restart pacemaker.service
305287
%endif
305287
305287
%pre remote
305287
%if %{defined _unitdir}
305287
# Stop the service before anything is touched, and remember to restart
305287
# it as one of the last actions (compared to using systemd_postun_with_restart,
305287
# this avoids suicide when sbd is in use)
305287
systemctl --quiet is-active pacemaker_remote
305287
if [ $? -eq 0 ] ; then
305287
    mkdir -p %{_localstatedir}/lib/rpm-state/%{name}
305287
    touch %{_localstatedir}/lib/rpm-state/%{name}/restart_pacemaker_remote
305287
    systemctl stop pacemaker_remote >/dev/null 2>&1
305287
else
305287
    rm -f %{_localstatedir}/lib/rpm-state/%{name}/restart_pacemaker_remote
305287
fi
305287
%endif
305287
305287
%post remote
305287
%if %{defined _unitdir}
305287
%systemd_post pacemaker_remote.service
305287
%else
305287
/sbin/chkconfig --add pacemaker_remote || :
305287
%endif
305287
305287
%preun remote
305287
%if %{defined _unitdir}
305287
%systemd_preun pacemaker_remote.service
305287
%else
305287
/sbin/service pacemaker_remote stop >/dev/null 2>&1 || :
305287
if [ "$1" -eq 0 ]; then
305287
    # Package removal, not upgrade
305287
    /sbin/chkconfig --del pacemaker_remote || :
305287
fi
305287
%endif
305287
305287
%postun remote
305287
%if %{defined _unitdir}
305287
# This next line is a no-op, because we stopped the service earlier, but
305287
# we leave it here because it allows us to revert to the standard behavior
305287
# in the future if desired
305287
%systemd_postun_with_restart pacemaker_remote.service
305287
# Explicitly take care of removing the flag-file(s) upon final removal
305287
if [ "$1" -eq 0 ] ; then
305287
    rm -f %{_localstatedir}/lib/rpm-state/%{name}/restart_pacemaker_remote
305287
fi
305287
%endif
305287
305287
%posttrans remote
305287
%if %{defined _unitdir}
305287
if [ -e %{_localstatedir}/lib/rpm-state/%{name}/restart_pacemaker_remote ] ; then
305287
    systemctl start pacemaker_remote >/dev/null 2>&1
305287
    rm -f %{_localstatedir}/lib/rpm-state/%{name}/restart_pacemaker_remote
305287
fi
305287
%endif
305287
305287
%post cli
305287
%if %{defined _unitdir}
305287
%systemd_post crm_mon.service
305287
%endif
305287
if [ "$1" -eq 2 ]; then
305287
    # Package upgrade, not initial install:
305287
    # Move any pre-2.0 logs to new location to ensure they get rotated
305287
    { mv -fbS.rpmsave %{_var}/log/pacemaker.log* %{_var}/log/pacemaker \
305287
      || mv -f %{_var}/log/pacemaker.log* %{_var}/log/pacemaker
305287
    } >/dev/null 2>/dev/null || :
305287
fi
305287
305287
%preun cli
305287
%if %{defined _unitdir}
305287
%systemd_preun crm_mon.service
305287
%endif
305287
305287
%postun cli
305287
%if %{defined _unitdir}
305287
%systemd_postun_with_restart crm_mon.service
305287
%endif
305287
14fe03
%pre -n %{pkgname_pcmk_libs}
14fe03
getent group %{gname} >/dev/null || groupadd -r %{gname} -g %{hacluster_id}
14fe03
getent passwd %{uname} >/dev/null || useradd -r -g %{gname} -u %{hacluster_id} -s /sbin/nologin -c "cluster user" %{uname}
305287
exit 0
305287
305287
%if %{defined ldconfig_scriptlets}
e5c014
%ldconfig_scriptlets -n %{pkgname_pcmk_libs}
305287
%ldconfig_scriptlets cluster-libs
305287
%else
14fe03
%post -n %{pkgname_pcmk_libs} -p /sbin/ldconfig
14fe03
%postun -n %{pkgname_pcmk_libs} -p /sbin/ldconfig
305287
305287
%post cluster-libs -p /sbin/ldconfig
305287
%postun cluster-libs -p /sbin/ldconfig
305287
%endif
305287
305287
%files
305287
###########################################################
305287
%config(noreplace) %{_sysconfdir}/sysconfig/pacemaker
305287
%{_sbindir}/pacemakerd
305287
305287
%if %{defined _unitdir}
305287
%{_unitdir}/pacemaker.service
305287
%else
305287
%{_initrddir}/pacemaker
305287
%endif
305287
305287
%exclude %{_libexecdir}/pacemaker/cts-log-watcher
305287
%exclude %{_libexecdir}/pacemaker/cts-support
305287
%exclude %{_sbindir}/pacemaker-remoted
305287
%if %{with legacy_links}
305287
%exclude %{_sbindir}/pacemaker_remoted
305287
%endif
305287
%exclude %{_datadir}/pacemaker/nagios
305287
%{_libexecdir}/pacemaker/*
305287
305287
%{_sbindir}/crm_attribute
305287
%{_sbindir}/crm_master
305287
305287
%doc %{_mandir}/man7/pacemaker-controld.*
305287
%doc %{_mandir}/man7/pacemaker-schedulerd.*
305287
%doc %{_mandir}/man7/pacemaker-fenced.*
305287
%doc %{_mandir}/man7/ocf_pacemaker_controld.*
305287
%doc %{_mandir}/man7/ocf_pacemaker_remote.*
305287
%doc %{_mandir}/man8/crm_attribute.*
305287
%doc %{_mandir}/man8/crm_master.*
305287
%doc %{_mandir}/man8/pacemakerd.*
305287
305287
%doc %{_datadir}/pacemaker/alerts
305287
305287
%license licenses/GPLv2
305287
%doc COPYING
305287
%doc ChangeLog
305287
305287
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/cib
305287
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/pengine
305287
/usr/lib/ocf/resource.d/pacemaker/controld
305287
/usr/lib/ocf/resource.d/pacemaker/remote
305287
305287
%if %{with upstart_job}
305287
%config(noreplace) %{_sysconfdir}/init/pacemaker.conf
305287
%config(noreplace) %{_sysconfdir}/init/pacemaker.combined.conf
305287
%endif
305287
305287
%files cli
305287
%dir %attr (750, root, %{gname}) %{_sysconfdir}/pacemaker
305287
%config(noreplace) %{_sysconfdir}/logrotate.d/pacemaker
305287
%config(noreplace) %{_sysconfdir}/sysconfig/crm_mon
305287
305287
%if %{defined _unitdir}
305287
%{_unitdir}/crm_mon.service
305287
%endif
305287
305287
%if %{with upstart_job}
305287
%config(noreplace) %{_sysconfdir}/init/crm_mon.conf
305287
%endif
305287
305287
%{_sbindir}/attrd_updater
305287
%{_sbindir}/cibadmin
e5c014
%if %{with cibsecrets}
e5c014
%{_sbindir}/cibsecret
e5c014
%endif
305287
%{_sbindir}/crm_diff
305287
%{_sbindir}/crm_error
305287
%{_sbindir}/crm_failcount
305287
%{_sbindir}/crm_mon
305287
%{_sbindir}/crm_node
305287
%{_sbindir}/crm_resource
305287
%{_sbindir}/crm_rule
305287
%{_sbindir}/crm_standby
305287
%{_sbindir}/crm_verify
305287
%{_sbindir}/crmadmin
305287
%{_sbindir}/iso8601
305287
%{_sbindir}/crm_shadow
305287
%{_sbindir}/crm_simulate
305287
%{_sbindir}/crm_report
305287
%{_sbindir}/crm_ticket
305287
%{_sbindir}/stonith_admin
305287
# "dirname" is owned by -schemas, which is a prerequisite
305287
%{_datadir}/pacemaker/report.collector
305287
%{_datadir}/pacemaker/report.common
305287
# XXX "dirname" is not owned by any prerequisite
305287
%{_datadir}/snmp/mibs/PCMK-MIB.txt
305287
305287
%exclude /usr/lib/ocf/resource.d/pacemaker/controld
305287
%exclude /usr/lib/ocf/resource.d/pacemaker/remote
305287
305287
%dir /usr/lib/ocf
305287
%dir /usr/lib/ocf/resource.d
305287
/usr/lib/ocf/resource.d/pacemaker
305287
305287
%doc %{_mandir}/man7/*
305287
%exclude %{_mandir}/man7/pacemaker-controld.*
305287
%exclude %{_mandir}/man7/pacemaker-schedulerd.*
305287
%exclude %{_mandir}/man7/pacemaker-fenced.*
305287
%exclude %{_mandir}/man7/ocf_pacemaker_controld.*
305287
%exclude %{_mandir}/man7/ocf_pacemaker_remote.*
305287
%doc %{_mandir}/man8/*
305287
%exclude %{_mandir}/man8/crm_attribute.*
305287
%exclude %{_mandir}/man8/crm_master.*
305287
%exclude %{_mandir}/man8/pacemakerd.*
305287
%exclude %{_mandir}/man8/pacemaker-remoted.*
305287
305287
%license licenses/GPLv2
305287
%doc COPYING
305287
%doc ChangeLog
305287
305287
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker
305287
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/blackbox
305287
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/cores
305287
%dir %attr (770, %{uname}, %{gname}) %{_var}/log/pacemaker
305287
%dir %attr (770, %{uname}, %{gname}) %{_var}/log/pacemaker/bundles
305287
14fe03
%files -n %{pkgname_pcmk_libs}
305287
%{_libdir}/libcib.so.*
305287
%{_libdir}/liblrmd.so.*
305287
%{_libdir}/libcrmservice.so.*
305287
%{_libdir}/libcrmcommon.so.*
305287
%{_libdir}/libpe_status.so.*
305287
%{_libdir}/libpe_rules.so.*
305287
%{_libdir}/libpacemaker.so.*
305287
%{_libdir}/libstonithd.so.*
305287
%license licenses/LGPLv2.1
305287
%doc COPYING
305287
%doc ChangeLog
305287
305287
%files cluster-libs
305287
%{_libdir}/libcrmcluster.so.*
305287
%license licenses/LGPLv2.1
305287
%doc COPYING
305287
%doc ChangeLog
305287
305287
%files remote
305287
%config(noreplace) %{_sysconfdir}/sysconfig/pacemaker
305287
%if %{defined _unitdir}
305287
# state directory is shared between the subpackets
305287
# let rpm take care of removing it once it isn't
305287
# referenced anymore and empty
305287
%ghost %dir %{_localstatedir}/lib/rpm-state/%{name}
305287
%{_unitdir}/pacemaker_remote.service
305287
%else
305287
%{_initrddir}/pacemaker_remote
305287
%endif
305287
305287
%{_sbindir}/pacemaker-remoted
305287
%if %{with legacy_links}
305287
%{_sbindir}/pacemaker_remoted
305287
%endif
305287
%{_mandir}/man8/pacemaker-remoted.*
305287
%license licenses/GPLv2
305287
%doc COPYING
305287
%doc ChangeLog
305287
305287
%files doc
305287
%doc %{pcmk_docdir}
305287
%license licenses/CC-BY-SA-4.0
305287
305287
%files cts
305287
%{python_site}/cts
305287
%{_datadir}/pacemaker/tests
305287
305287
%{_libexecdir}/pacemaker/cts-log-watcher
305287
%{_libexecdir}/pacemaker/cts-support
305287
305287
%license licenses/GPLv2
305287
%doc COPYING
305287
%doc ChangeLog
305287
14fe03
%files -n %{pkgname_pcmk_libs}-devel
305287
%{_includedir}/pacemaker
305287
%{_libdir}/*.so
305287
%if %{with coverage}
305287
%{_var}/lib/pacemaker/gcov
305287
%endif
305287
%{_libdir}/pkgconfig/*.pc
305287
%license licenses/LGPLv2.1
305287
%doc COPYING
305287
%doc ChangeLog
305287
305287
%files schemas
305287
%license licenses/GPLv2
305287
%dir %{_datadir}/pacemaker
305287
%{_datadir}/pacemaker/*.rng
305287
%{_datadir}/pacemaker/*.xsl
305287
%{_datadir}/pacemaker/api
14fe03
%{_datadir}/pkgconfig/pacemaker-schemas.pc
305287
305287
%files nagios-plugins-metadata
305287
%dir %{_datadir}/pacemaker/nagios/plugins-metadata
305287
%attr(0644,root,root) %{_datadir}/pacemaker/nagios/plugins-metadata/*
305287
%license %{nagios_name}-%{nagios_hash}/COPYING
305287
305287
%changelog
e5c014
* Thu Jun 25 2020 Ken Gaillot <kgaillot@redhat.com> - 2.0.4-3
e5c014
- Allow resource and operation defaults per resource or operation type
e5c014
- Rebase on upstream 2.0.4 final release
e5c014
- Support on-fail="demote" and no-quorum-policy="demote" options
e5c014
- Remove incorrect comment from sysconfig file
e5c014
- Resolves: rhbz1628701
e5c014
- Resolves: rhbz1828488
e5c014
- Resolves: rhbz1837747
e5c014
- Resolves: rhbz1848789
e5c014
e5c014
* Wed Jun 10 2020 Ken Gaillot <kgaillot@redhat.com> - 2.0.4-2
e5c014
- Improve cibsecret help and clean up code per static analysis
e5c014
- Resolves: rhbz1793860
e5c014
e5c014
* Mon Jun 8 2020 Ken Gaillot <kgaillot@redhat.com> - 2.0.4-1
e5c014
- Clear leaving node's attributes if there is no DC
e5c014
- Add crm_mon --node option to limit display to particular node or tagged nodes
e5c014
- Add crm_mon --include/--exclude options to select what sections are shown
e5c014
- priority-fencing-delay option bases delay on where resources are active
e5c014
- Pending DC fencing gets 'stuck' in status display
e5c014
- crm_rule can now check rule expiration when "years" is specified
e5c014
- crm_mon now formats error messages better
e5c014
- Support for CIB secrets is enabled
e5c014
- Rebase on latest upstream Pacemaker release
e5c014
- Fix regression introduced in 8.2 so crm_node -n works on remote nodes
e5c014
- Avoid infinite loop when topology is removed while unfencing is in progress
e5c014
- Resolves: rhbz1300604
e5c014
- Resolves: rhbz1363907
e5c014
- Resolves: rhbz1784601
e5c014
- Resolves: rhbz1787751
e5c014
- Resolves: rhbz1790591
e5c014
- Resolves: rhbz1793653
e5c014
- Resolves: rhbz1793860
e5c014
- Resolves: rhbz1828488
e5c014
- Resolves: rhbz1830535
e5c014
- Resolves: rhbz1831775
e5c014
e5c014
* Mon Jan 27 2020 Ken Gaillot <kgaillot@redhat.com> - 2.0.3-5
e5c014
- Clear leaving node's attributes if there is no DC
e5c014
- Resolves: rhbz1791841
e5c014
e5c014
* Thu Jan 16 2020 Ken Gaillot <kgaillot@redhat.com> - 2.0.3-4
e5c014
- Implement shutdown-lock feature
e5c014
- Resolves: rhbz1712584
e5c014
14fe03
* Wed Nov 27 2019 Ken Gaillot <kgaillot@redhat.com> - 2.0.3-3
14fe03
- Rebase on Pacemaker-2.0.3 final release
14fe03
- Resolves: rhbz1752538
14fe03
14fe03
* Wed Nov 13 2019 Ken Gaillot <kgaillot@redhat.com> - 2.0.3-2
14fe03
- Rebase on Pacemaker-2.0.3-rc3
14fe03
- Resolves: rhbz1752538
14fe03
14fe03
* Thu Oct 31 2019 Ken Gaillot <kgaillot@redhat.com> - 2.0.3-1
14fe03
- Rebase on Pacemaker-2.0.3-rc2
14fe03
- Parse crm_mon --fence-history option correctly
14fe03
- Put timeout on controller waiting for scheduler response
14fe03
- Offer Pacemaker Remote option for bind address
14fe03
- Calculate cluster recheck interval dynamically
14fe03
- Clarify crm_resource help text
14fe03
- Reduce system calls after forking a child process
14fe03
- Resolves: rhbz1699978
14fe03
- Resolves: rhbz1725236
14fe03
- Resolves: rhbz1743377
14fe03
- Resolves: rhbz1747553
14fe03
- Resolves: rhbz1748805
14fe03
- Resolves: rhbz1752538
14fe03
- Resolves: rhbz1762025
14fe03
14fe03
* Mon Aug 26 2019 Ken Gaillot <kgaillot@redhat.com> - 2.0.2-3
14fe03
- Make pacemaker-cli require tar and bzip2
14fe03
- Resolves: rhbz#1741580
14fe03
14fe03
* Fri Jun 21 2019 Klaus Wenninger <kwenning@redhat.com> - 2.0.2-2
14fe03
- Synchronize fence-history on fenced-restart
14fe03
- Cleanup leftover pending-fence-actions when fenced is restarted
14fe03
- Improve fencing of remote-nodes
14fe03
- Resolves: rhbz#1708380
14fe03
- Resolves: rhbz#1708378
14fe03
- Resolves: rhbz#1721198
14fe03
- Resolves: rhbz#1695737
14fe03
305287
* Thu Jun 6 2019 Ken Gaillot <kgaillot@redhat.com> - 2.0.2-1
305287
- Add stonith_admin option to display XML output
305287
- Add new crm_rule tool to check date/time rules
305287
- List any constraints cleared by crm_resource --clear
305287
- crm_resource --validate can now get resource parameters from command line
305287
- Rebase on upstream version 2.0.2
305287
- Default concurrent-fencing to true
305287
- Resolves: rhbz#1555939
305287
- Resolves: rhbz#1572116
305287
- Resolves: rhbz#1631752
305287
- Resolves: rhbz#1637020
305287
- Resolves: rhbz#1695737
305287
- Resolves: rhbz#1715426
305287
305287
* Wed May 15 2019 Ken Gaillot <kgaillot@redhat.com> - 2.0.1-5
305287
- Add gating tests for CI
305287
- Restore correct behavior when live migration is interrupted
305287
- Improve clients' authentication of IPC servers (CVE-2018-16877)
305287
- Fix use-after-free with potential information disclosure (CVE-2019-3885)
305287
- Improve pacemakerd authentication of running subdaemons (CVE-2018-16878)
305287
- Resolves: rhbz#1682116
305287
- Resolves: rhbz#1684306
305287
- Resolves: rhbz#1694558
305287
- Resolves: rhbz#1694560
305287
- Resolves: rhbz#1694908
305287
305287
* Tue Jan 29 2019 Ken Gaillot <kgaillot@redhat.com> - 2.0.1-4
305287
- Remove duplicate fence history state listing in crm_mon XML output
305287
- Resolves: rhbz#1667191
305287
305287
* Thu Jan 10 2019 Ken Gaillot <kgaillot@redhat.com> - 2.0.1-3
305287
- Fix bundle recovery regression in 2.0.1-2
305287
- Resolves: rhbz#1660592
305287
305287
* Fri Dec 14 2018 Ken Gaillot <kgaillot@redhat.com> - 2.0.1-2
305287
- Move pacemaker-doc installed files to /usr/share/doc/pacemaker-doc
305287
  to avoid conflict with RHEL 8 location of pacemaker subpackage docs
305287
- Resolves: rhbz#1543494
305287
305287
* Thu Dec 13 2018 Ken Gaillot <kgaillot@redhat.com> - 2.0.1-1
305287
- Rebase on upstream commit 0eb799156489376e13fb79dca47ea9160e9d4595 (Pacemaker-2.0.1-rc1)
305287
- Follow upstream change of splitting XML schemas into separate package
305287
- Resolves: rhbz#1543494
305287
305287
* Fri Nov 16 2018 Ken Gaillot <kgaillot@redhat.com> - 2.0.0-11
305287
- Rebase on upstream commit efbf81b65931423b34c91cde7204a2d0a71e77e6
305287
- Resolves: rhbz#1543494
305287
305287
* Fri Sep 28 2018 Ken Gaillot <kgaillot@redhat.com> - 2.0.0-10
305287
- Rebase on upstream commit b67d8d0de9794e59719608d9b156b4a3c6556344
305287
- Update spec for Python macro changes
305287
- Resolves: rhbz#1543494
305287
- Resolves: rhbz#1633612
305287
305287
* Mon Sep 17 2018 Ken Gaillot <kgaillot@redhat.com> - 2.0.0-9
305287
- Rebase on upstream commit c4330b46bf1c3dcd3e367b436efb3bbf82ef51cd
305287
- Support podman as bundle container launcher
305287
- Ignore fence history in crm_mon when using CIB_file
305287
- Resolves: rhbz#1543494
305287
- Resolves: rhbz#1607898
305287
- Resolves: rhbz#1625231
305287
305287
* Thu Aug 30 2018 Ken Gaillot <kgaillot@redhat.com> - 2.0.0-8
305287
- Rebase on upstream commit dd6fd26f77945b9bb100d5a3134f149b27601552
305287
- Fixes (unreleased) API regression
305287
- Resolves: rhbz#1543494
305287
- Resolves: rhbz#1622969
305287
305287
* Mon Aug 13 2018 Ken Gaillot <kgaillot@redhat.com> - 2.0.0-7
305287
- Include upstream master branch commits through 975347d4
305287
- Resolves: rhbz#1543494
305287
- Resolves: rhbz#1602650
305287
- Resolves: rhbz#1608369
305287
305287
* Mon Jul 30 2018 Florian Weimer <fweimer@redhat.com> - 2.0.0-6
305287
- Rebuild with fixed binutils
305287
305287
* Mon Jul 9 2018 Ken Gaillot <kgaillot@redhat.com> - 2.0.0-5
305287
- Rebase to upstream version 2.0.0 final
305287
- Resolves: rhbz#1543494
305287
305287
* Wed Jun 6 2018 Ken Gaillot <kgaillot@redhat.com> - 2.0.0-4
305287
- Rebase to upstream version 2.0.0-rc5
305287
- Resolves: rhbz#1543494
305287
305287
* Mon Apr 30 2018 Ken Gaillot <kgaillot@redhat.com> - 2.0.0-2
305287
- Rebase to upstream version 2.0.0-rc3
305287
- Resolves: rhbz#1543494
305287
305287
* Tue Apr 17 2018 Ken Gaillot <kgaillot@redhat.com> - 2.0.0-1
305287
- Rebase to upstream version 2.0.0-rc2 with later fixes
305287
- Resolves: rhbz#1543494
305287
305287
* Tue Apr 17 2018 Josh Boyer <jwboyer@redhat.com> - 1.1.17-3
305287
- Stop hard requiring nagios-plugins
305287
305287
* Wed Oct 18 2017 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.17-2
305287
- Rebuilt to fix libqb vs. ld.bfd/binutils-2.29 incompatibility making
305287
  some CLI executables unusable under some circumstances (rhbz#1503843)
305287
305287
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.17-1.2
305287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
305287
305287
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.17-1.1
305287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
305287
305287
* Fri Jul 07 2017 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.17-1
305287
- Update for new upstream tarball: Pacemaker-1.1.17,
305287
  for full details, see included ChangeLog file or
305287
  https://github.com/ClusterLabs/pacemaker/releases/tag/Pacemaker-1.1.17
305287
305287
* Thu Jun 22 2017 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.17-0.1.rc4
305287
- Update for new upstream tarball for release candidate: Pacemaker-1.1.17-rc4,
305287
  for full details, see included ChangeLog file or
305287
  https://github.com/ClusterLabs/pacemaker/releases/tag/Pacemaker-1.1.17-rc4
305287
- Add an imposed lower bound for glib2 BuildRequires
305287
305287
* Thu Jun 01 2017 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.17-0.1.rc3
305287
- Update for new upstream tarball for release candidate: Pacemaker-1.1.17-rc3,
305287
  for full details, see included ChangeLog file or
305287
  https://github.com/ClusterLabs/pacemaker/releases/tag/Pacemaker-1.1.17-rc3
305287
305287
* Wed May 24 2017 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.17-0.1.rc2
305287
- Update for new upstream tarball for release candidate: Pacemaker-1.1.17-rc2,
305287
  for full details, see included ChangeLog file or
305287
  https://github.com/ClusterLabs/pacemaker/releases/tag/Pacemaker-1.1.17-rc2
305287
305287
* Tue May 09 2017 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.17-0.1.rc1
305287
- Update for new upstream tarball for release candidate: Pacemaker-1.1.17-rc1,
305287
  for full details, see included ChangeLog file or
305287
  https://github.com/ClusterLabs/pacemaker/releases/tag/Pacemaker-1.1.17-rc1
305287
305287
* Mon Feb 06 2017 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.16-2.a39ea6491.git
305287
- Update for (slightly stabilized) snapshot beyond Pacemaker-1.1.16
305287
  (commit a39ea6491), including:
305287
  . prevent FTBFS with new GCC 7 (a7476dd96)
305287
- Adapt spec file more akin to upstream version including:
305287
  . better pre-release vs. tags logic (4581d4366)
305287
305287
* Fri Dec 02 2016 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.16-1
305287
- Update for new upstream tarball: Pacemaker-1.1.16,
305287
  for full details, see included ChangeLog file or
305287
  https://github.com/ClusterLabs/pacemaker/releases/tag/Pacemaker-1.1.16
305287
- Adapt spec file more akin to upstream version including:
305287
  . clarify licensing, especially for -doc (f01f734)
305287
  . fix pacemaker-remote upgrade (779e0e3)
305287
  . require python >= 2.6 (31ef7f0)
305287
  . older libqb is sufficient (based on 30fe1ce)
305287
  . remove openssl-devel and libselinux-devel as BRs (2e05c17)
305287
  . make systemd BR pkgconfig-driven (6285924)
305287
  . defines instead of some globals + error suppression (625d427)
305287
- Rectify -nagios-plugins-metadata declared license and install
305287
  also respective license text
305287
305287
* Thu Nov 03 2016 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.15-3
305287
- Apply fix for CVE-2016-7035 (improper IPC guarding)
305287
305287
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.15-2.1
305287
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
305287
305287
* Thu Jul 07 2016 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.15-2
305287
- Stop building with -fstack-protector-all using the upstream patches
305287
  overhauling toolchain hardening (Fedora natively uses
305287
  -fstack-protector-strong so this effectively relaxed stack protection
305287
  is the only effect as hardened flags are already used by default:
305287
  https://fedoraproject.org/wiki/Changes/Harden_All_Packages)
305287
305287
* Wed Jun 22 2016 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.15-1
305287
- Update for new upstream tarball: Pacemaker-1.1.15,
305287
  for full details, see included ChangeLog file or
305287
  https://github.com/ClusterLabs/pacemaker/releases/tag/Pacemaker-1.1.15
305287
- Adapt spec file more akin to upstream version:
305287
  . move xml schema files + PCMK-MIB.txt (81ef956), logrotate configuration
305287
    file (ce576cf; drop it from -remote package as well), attrd_updater
305287
    (aff80ae), the normal resource agents (1fc7287), and common directories
305287
    under /var/lib/pacemaker (3492794) from main package under -cli
305287
  . simplify docdir build parameter passing and drop as of now
305287
    redundant chmod invocations (e91769e)
305287
305287
* Fri May 27 2016 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.15-0.1.rc3
305287
- Update for new upstream tarball for release candidate: Pacemaker-1.1.15-rc3,
305287
  for full details, see included ChangeLog file or
305287
  https://github.com/ClusterLabs/pacemaker/releases/tag/Pacemaker-1.1.15-rc3
305287
- Drop fence_pcmk (incl. man page) from the package (no use where no CMAN)
305287
- Drop license macro emulation for cases when not supported natively
305287
  (several recent Fedora releases do not need that)
305287
305287
* Mon May 16 2016 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.15-0.1.rc2
305287
- Update for new upstream tarball for release candidate: Pacemaker-1.1.15-rc2,
305287
  for full details, see included ChangeLog file or
305287
  https://github.com/ClusterLabs/pacemaker/releases/tag/Pacemaker-1.1.15-rc2
305287
305287
* Tue Apr 26 2016 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.15-0.1.rc1
305287
- Update for new upstream tarball for release candidate: Pacemaker-1.1.15-rc1,
305287
  for full details, see included ChangeLog file or
305287
  https://github.com/ClusterLabs/pacemaker/releases/tag/Pacemaker-1.1.15-rc1
305287
- Adapt spec file more akin to upstream version (also to reflect recent
305287
  changes like ability to built explicitly without Publican-based docs)
305287
305287
* Thu Mar 31 2016 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.14-2.5a6cdd1.git
305287
- Update for currently stabilized snapshot beyond Pacemaker-1.1.14
305287
  (commit 5a6cdd1), but restore old-style notifications to the state at
305287
  Pacemaker-1.1.14 point release (disabled)
305287
- Definitely get rid of Corosync v1 (Flatiron) hypothetical support
305287
- Remove some of the spec file cruft, not required for years
305287
  (BuildRoot, AutoReqProv, "clean" scriptlet, etc.) and adapt the file
305287
  per https://github.com/ClusterLabs/pacemaker/pull/965
305287
305287
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.14-1.1
305287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
305287
305287
* Mon Jan 18 2016 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.14-1
305287
- Update for new upstream tarball: Pacemaker-1.1.14,
305287
  for full details, see included ChangeLog file or
305287
  https://github.com/ClusterLabs/pacemaker/releases/tag/Pacemaker-1.1.14
305287
- Disable Fedora crypto policies conformance patch for now (rhbz#1179335)
305287
- Better align specfile with the upstream version (also fix issue with
305287
  crm_mon sysconfig file not being installed)
305287
- Further specfile modifications:
305287
  - drop unused gcc-c++ and repeatedly mentioned pkgconfig packages
305287
    from BuildRequires
305287
  - refer to python_sitearch macro first, if defined
305287
  - tolerate license macro not being defined (e.g., for EPEL rebuilds)
305287
- Prevent console mode not available in crm_mon due to curses library test
305287
  fragility of configure script in hardened build environment (rhbz#1297985)
305287
305287
* Tue Oct 20 2015 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.13-4
305287
- Adapt to follow Fedora crypto policies (rhbz#1179335)
305287
305287
* Wed Oct 14 2015 Jan Pokorný <jpokorny+rpm-pacemaker@redhat.com> - 1.1.13-3
305287
- Update to Pacemaker-1.1.13 post-release + patches (sync)
305287
- Add nagios-plugins-metadata subpackage enabling support of selected
305287
  Nagios plugins as resources recognized by Pacemaker
305287
- Several specfile improvements: drop irrelevant stuff, rehash the
305287
  included/excluded files + dependencies, add check scriptlet,
305287
  reflect current packaging practice, do minor cleanups
305287
  (mostly adopted from another spec)
305287
305287
* Thu Aug 20 2015 Andrew Beekhof <abeekhof@redhat.com> - 1.1.13-2
305287
- Update for new upstream tarball: Pacemaker-1.1.13
305287
- See included ChangeLog file or https://raw.github.com/ClusterLabs/pacemaker/master/ChangeLog for full details
305287
305287
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.12-2.1
305287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
305287
305287
* Wed Nov 05 2014 Andrew Beekhof <abeekhof@redhat.com> - 1.1.12-2
305287
- Address incorrect use of the dbus API for interacting with systemd
305287
305287
* Tue Oct 28 2014 Andrew Beekhof <abeekhof@redhat.com> - 1.1.12-1
305287
- Update for new upstream tarball: Pacemaker-1.1.12+ (a9c8177)
305287
- See included ChangeLog file or https://raw.github.com/ClusterLabs/pacemaker/master/ChangeLog for full details
305287
305287
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-1.2
305287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
305287
305287
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-1.1
305287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
305287
305287
* Tue Feb 18 2014 Andrew Beekhof <abeekhof@redhat.com> - 1.1.11-1
305287
- Update for new upstream tarball: Pacemaker-1.1.11 (9d39a6b)
305287
- See included ChangeLog file or https://raw.github.com/ClusterLabs/pacemaker/master/ChangeLog for full details
305287
305287
* Thu Jun 20 2013 Andrew Beekhof <abeekhof@redhat.com> - 1.1.9-3
305287
- Update to upstream 7d8acec
305287
- See included ChangeLog file or https://raw.github.com/ClusterLabs/pacemaker/master/ChangeLog for full details
305287
305287
  + Feature: Turn off auto-respawning of systemd services when the cluster starts them
305287
  + Fix: crmd: Ensure operations for cleaned up resources don't block recovery
305287
  + Fix: logging: If SIGTRAP is sent before tracing is turned on, turn it on instead of crashing
305287
305287
* Mon Jun 17 2013 Andrew Beekhof <abeekhof@redhat.com> - 1.1.9-2
305287
- Update for new upstream tarball: 781a388
305287
- See included ChangeLog file or https://raw.github.com/ClusterLabs/pacemaker/master/ChangeLog for full details
305287
305287
* Wed May 12 2010 Andrew Beekhof <andrew@beekhof.net> - 1.1.2-1
305287
- Update the tarball from the upstream 1.1.2 release
305287
- See included ChangeLog file or https://raw.github.com/ClusterLabs/pacemaker/master/ChangeLog for full details
305287
305287
* Tue Jul 14 2009 Andrew Beekhof <andrew@beekhof.net> - 1.0.4-1
305287
- Initial checkin