Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
pacemaker.34782
pacemaker.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker.spec of Package pacemaker.34782
# # spec file for package pacemaker # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # # User-configurable globals and defines to control package behavior # (these should not test {with X} values, which are declared later) ## User and group to use for nonprivileged services %global uname hacluster %global gname haclient ## Where to install Pacemaker documentation %global pcmk_docdir %{_docdir}/%{name} # 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 %bcond_without stonithd ## Add option to enable support for storing sensitive information outside CIB %bcond_without cibsecrets ## 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 ## Add option to skip generating documentation ## (the build tools aren't available everywhere) %bcond_with doc ## Add option to turn off hardening of libraries and daemon executables %bcond_with hardening ## Add option to disable links for legacy daemon names %if 0%{?suse_version} < 1600 %bcond_without legacy_links %else %bcond_with legacy_links %endif # Define globals for convenient use later %define _rundir /run %global hacluster_id 90 ## Prefer Python 3 definitions explicitly, in case 2 is also available %global python_path %{__python3} # Keep sane profiling data if requested %if %{with profiling} ## Disable -debuginfo package and stripping binaries/libraries %define debug_package %{nil} %endif #Compat macro for new _fillupdir macro introduced in Nov 2017 %if ! %{defined _fillupdir} %define _fillupdir /var/adm/fillup-templates %endif %if 0%{?suse_version} < 1600 %define with_nagios 1 %else %define with_nagios 0 %endif %define enable_lib_cluster_pkg 0 %define enable_fatal_warnings 0 %define with_regression_tests 0 Name: pacemaker Version: 2.0.5+20201202.ba59be712 Release: 0 Summary: Scalable High-Availability cluster resource manager # AGPL-3.0 licensed extra/clustermon.sh is not present in the binary License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later Group: Productivity/Clustering/HA Url: https://www.clusterlabs.org/ # Hint: use "spectool -s 0 pacemaker.spec" (rpmdevtools) to check the final URL: # https://github.com/ClusterLabs/pacemaker/archive/e91769e5a39f5cb2f7b097d3c612368f0530535e/pacemaker-e91769e.tar.gz Source0: %{name}-%{version}.tar.xz Source1: crm_report.in Source100: pacemaker.rpmlintrc Patch1: bug-806256_pacemaker-log-level-notice.patch Patch2: bug-728579_pacemaker-stonith-dev-id.patch 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 Patch9: pacemaker-cts-StartCmd.patch Patch10: 0001-Log-libcrmcommon-lower-message-on-reading-proc-file-.patch Patch11: bsc#1178865-0001-Fix-crmadmin-printing-DC-quietly-if-needed.patch Patch12: bsc#1173668-0001-Fix-attrd-prevent-leftover-attributes-of-shutdown-no.patch Patch13: bsc#1180966-0001-Log-pacemakerd-downgrade-the-warning-about-SBD_SYNC_.patch Patch14: rh#1907726-0001-Fix-liblrmd-Limit-node-name-addition-to-proxied-attr.patch Patch15: 0001-Fix-fencing-remove-any-devices-that-are-not-installe.patch Patch16: 0001-Fix-tools-get-cibsecret-stash-working-again.patch Patch17: 0001-Mid-execd-Skips-merging-of-canceled-fencing-monitors.patch Patch18: bsc#1181744-0001-Fix-fencer-broadcast-returned-fencing-operations-to-.patch Patch19: bsc#1181744-0002-Fix-fencer-update-outdated-pending-operations-accord.patch Patch20: bsc#1181744-0003-Refactor-fencing-new-function-stonith_op_state_pendi.patch Patch21: bsc#1181744-0004-Refactor-fencer-optimize-merging-of-fencing-history-.patch Patch22: 0001-Fix-iso8601-prevent-sec-overrun-before-adding-up-as-.patch Patch23: rh#1931332-0000-Feature-xml-Move-resource-related-XML-schema-into-it.patch Patch24: rh#1931332-0001-Med-Generate-xml-crm_mon.rng-from-the-contents-of-xm.patch Patch25: rh#1931332-0002-Med-Copy-crm_mon.rng-and-crm_resource.rng-in-prepara.patch Patch26: rh#1931332-0003-Med-Change-the-schema-type-of-expected-and-call-to-i.patch Patch27: bsc#1180618-0001-Fix-crmd-update-crm_peer_cache.patch Patch28: bsc#1186693-clean-attrd-attributes-when-remote-node-is-up.patch Patch29: bsc#1187414-0001-Fix-libcrmcommon-Correctly-handle-case-sensitive-ids.patch Patch30: bsc#1188653-0001-Fix-scheduler-don-t-schedule-probes-of-unmanaged-res.patch Patch31: bsc#1188653-0002-Test-scheduler-update-existing-tests-for-probe-sched.patch Patch32: bsc#1188653-0003-Test-scheduler-add-test-for-probe-of-unmanaged-resou.patch Patch33: bsc#1180618-0002-Fix-controller-ensure-newly-joining-node-learns-the-.patch Patch34: bsc#1190821-0001-Log-libcrmcommon-drop-unformatted-log-message-about-.patch Patch35: bsc#1191676-0001-Fix-attrd-check-election-status-upon-loss-of-a-voter.patch Patch36: 0001-Log-all-use-high-resolution-timestamps-in-detail-log.patch Patch37: bsc#1129707-0001-OCF-controld-Give-warning-when-no-quorum-policy-not-.patch Patch38: bsc#1198409-0001-Refactor-tools-set-commands-in-crm_resource-before-c.patch Patch39: bsc#1198409-0002-Fix-tools-prevent-possible-crm_resource-segfaults-if.patch Patch40: bsc#1198409-0003-Fix-tools-set-command-for-crm_resource-q-query-xml-b.patch Patch41: bsc#1196340-0001-Fix-scheduler-do-not-enforce-resource-stop-on-a-rejo.patch Patch42: bsc#1196340-0002-Refactor-scheduler-functionize-comparing-which-lrm_r.patch Patch43: bsc#1196340-0003-Fix-scheduler-compare-ids-of-lrm_rsc_op-entries-case.patch Patch44: bsc#1196340-0004-Refactor-scheduler-is_newer_op-to-be-able-to-compare.patch Patch45: bsc#1196340-0005-Test-cts-scheduler-fix-on_node-attribute-of-lrm_rsc_.patch Patch46: bsc#1196340-0006-Refactor-scheduler-find_lrm_op-to-be-able-to-check-a.patch Patch47: bsc#1196340-0007-Fix-scheduler-do-not-enforce-resource-stop-if-any-ne.patch Patch48: bsc#1196340-0008-Test-scheduler-do-not-enforce-resource-stop-on-a-rej.patch Patch49: bsc#1196340-0009-Test-scheduler-do-not-enforce-resource-stop-if-any-n.patch Patch50: bsc#1196673-0001-Feature-controller-record-CRM-feature-set-as-a-trans.patch Patch51: bsc#1198715-0001-Log-controller-log-an-info-instead-of-a-warning-for-.patch Patch52: bsc#1198409-0001-Fix-tools-fix-syntax-on-resetting-options-in-crm_res.patch Patch53: bsc#1206263-0001-Test-cts-scheduler-add-test-for-preventing-a-leftove.patch Patch54: bsc#1206263-0002-Fix-scheduler-prevent-a-leftover-pending-monitor-fro.patch Patch55: bsc#1206263-0003-Test-cts-scheduler-update-test-for-preventing-a-left.patch Patch56: bsc#1206263-0005-Fix-scheduler-prevent-inactive-instances-from-starti.patch Patch57: bsc#1206263-0006-Test-cts-scheduler-update-test-for-preventing-inacti.patch Patch58: bsc#1206761-0001-High-tools-Fix-a-segfault-in-error-handling-in-crm_r.patch Patch59: bsc#1207319-0001-Refactor-libpacemaker-unify-bailing-out-in-pcmk__inj.patch Patch60: bsc#1207319-0002-Fix-libpacemaker-avoid-assertion-failure-if-a-node_s.patch Patch61: rh#2166967-0001-Fix-fencer-Prevent-double-g_source_remove-of-op_time.patch Patch62: bsc#1208544-0001-Low-libcrmcommon-Fix-an-IPC-related-memory-leak.patch Patch63: 0001-Fix-tools-crm_shadow-commit-now-works-with-CIB_file.patch Patch64: CLBZ#5509-0001-Fix-libcrmcommon-Don-t-parse-INFINITY-as-a-list-of-c.patch Patch65: bsc#1208868-0001-Fix-tool-update-crm_mon-synopsis.patch Patch66: bsc#1211678-0001-Test-libpe_rules-libcrmcommon-Free-the-whole-xml-doc.patch Patch67: bsc#1211678-0002-Fix-libcrmcommon-Free-the-results-in-various-test-ca.patch Patch68: bsc#1211678-0003-Fix-libcrmcommon-Don-t-leak-memory-in-pcmk__cmdline_.patch Patch69: bsc#1211678-0004-Fix-tools-Free-command-line-related-memory.patch Patch70: bsc#1211678-0005-Fix-scheduler-Free-the-result-of-pe__node_display_na.patch Patch71: bsc#1211678-0006-Fix-tools-Free-resource-node-memory-in-crm_mon.patch Patch72: bsc#1211678-0007-Low-tools-avoid-insignificant-memory-leaks.patch Patch73: bsc#1211678-0008-Fix-tools-avoid-memory-leaks-in-crm_mon.patch Patch74: 0001-Fix-extra-resources-SysInfo.in-This-calculation-of-c.patch Patch75: 0001-Fix-controller-Delay-join-finalization-if-a-transiti.patch Patch76: bsc#1209640-0001-Fix-controller-avoid-use-after-free-when-disconnecti.patch Patch77: 0001-Low-fenced-Correctly-log-the-total-fencing-timeout.patch Patch78: 0001-Test-cts-fencing-update-expected-total-timeouts.patch Patch79: bsc#1210074-0001-Test-cts-fencing-regression-test-for-fencing-timeout.patch Patch80: bsc#1210074-0002-Fix-fencer-total-fencing-timeout-takes-any-requested.patch Patch81: bsc#1210074-0003-Fix-fencer-per-operation-fencing-timeout-takes-any-r.patch Patch82: bsc#1210074-0004-Fix-fencer-add-correct-values-of-pcmk_delay_base-max.patch Patch83: bsc#1210074-0005-Fix-fencer-fencing-timeouts-take-any-pcmk_delay_base.patch Patch84: bsc#1210074-0006-Fix-fencer-apply-requested-fencing-delay-only-for-th.patch Patch85: bsc#1210074-0007-Fix-controller-initial-timeout-for-fencing-callback-.patch Patch86: bsc#1210074-0008-Log-controller-log-fencing-timeout-consistently-in-s.patch Patch87: bsc#1210074-0009-Log-controller-use-target-terminology-consistently.patch Patch88: bsc#1210074-0010-Fix-libpacemaker-initial-timeout-for-fencing-callbac.patch Patch89: bsc#1210074-0011-Fix-fencer-fencing-timeout-sent-to-peer-takes-no-del.patch Patch90: bsc#1198767-0001-Test-cts-scheduler-add-regression-test-about-a-pendi.patch Patch91: bsc#1198767-0002-Fix-scheduler-Do-not-fence-a-pending-node-that-doesn.patch Patch92: bsc#1198767-0003-Test-cts-scheduler-update-regression-test-about-not-.patch Patch93: bsc#1198767-0004-Refactor-libcrmcluster-ability-to-search-for-a-node-.patch Patch94: bsc#1198767-0005-Refactor-libcrmcluster-internal-functions-for-gettin.patch Patch95: bsc#1198767-0006-Fix-controller-update-node-state-correctly-based-on-.patch Patch96: bsc#1218312-0001-Fix-libcrmcommon-wait-for-reply-from-appropriate-con.patch Patch97: 0001-fix-the-validation-of-input.patch Patch98: 0001-Refactor-crm_resource-make-wait-wait-for-pending-act.patch Patch99: 0001-Fix-agents-handle-dampening-parameter-consistently-a.patch Patch100: pacemaker#3289-0001-Fix-HealthSmart-Check-the-parameter-values-of-check_.patch Patch101: pacemaker#3293-0001-Low-libcrmcluster-avoid-use-after-free-in-trace-log.patch Patch102: pacemaker#3293-0002-Fix-pacemaker-attrd-libcrmcluster-avoid-use-after-fr.patch Patch103: pacemaker#3292-0001-Log-scheduler-improve-logs-for-invalid-id-ref-s.patch Patch104: pacemaker#3292-0002-Low-libcrmcommon-fix-NULL-dereference-in-expand_idre.patch Patch105: pacemaker#3292-0004-Low-scheduler-restore-nvpair-behavior-without-id-ref.patch Patch106: pacemaker#3286-0001-Low-libcrmcommon-Check-correct-env-vars-in-pcmk__nod.patch Patch107: pacemaker#3286-0002-Fix-agents-Use-attrd_updater-dampen-delay-in-SysInfo.patch Patch108: pacemaker#3304-0001-Fix-attrd-write-Pacemaker-Remote-node-attributes-eve.patch Patch109: pacemaker#3332-0001-Low-tools-Fix-memory-leak-in-crm_mon-with-HTML-outpu.patch Patch110: pacemaker#3362-0001-Low-libcrmcommon-Always-output-request-in-XML-output.patch Patch111: pacemaker#3379-0001-Low-tools-Fix-argument-validation-for-crm_attribute-.patch Patch112: pacemaker#3380-0001-Low-libcrmcommon-Free-text-curses-private-list-data.patch Patch113: pacemaker#3380-0002-Low-libcrmcommon-Free-error-strings-in-html-xml-outp.patch Patch114: pacemaker#3380-0003-Low-libcrmcommon-Use-free_xml-in-html_free_priv.patch Patch115: pacemaker#3381-0001-Fix-libcrmcommon-use-uint32_t-for-32-bit-magic-numbe.patch Patch116: pacemaker#3361-0001-Low-libcrmcommon-Don-t-try-to-parse-XML-from-bad-.bz.patch Patch117: pacemaker#3384-0001-Fix-cibsecret-Use-ps-axww-to-avoid-truncating-issue.patch Patch118: pacemaker#3392-0001-Doc-HealthSMART-fix-the-description-of-temp_lower_li.patch Patch119: pacemaker#3394-0001-Low-libcrmcommon-Initialize-some-variables.patch Patch120: pacemaker#3394-0002-Low-libpacemaker-Correctly-free-graphs-and-synapses.patch Patch121: pacemaker#3394-0003-Low-libcrmcommon-NULL-check-strdup-in-pcmk__register.patch Patch122: pacemaker#3394-0004-Low-libcrmcommon-NULL-check-strdup-in-pcmk__register.patch Patch123: pacemaker#3407-0001-Log-fencer-always-format-time_t-values-as-long-long.patch Patch124: pacemaker#3409-0001-Fix-tools-crm_resource-should-ignore-resource-meta-a.patch Patch125: pacemaker#3409-0003-Fix-scheduler-use-default-timeout-20s-if-user-config.patch Patch126: pacemaker#3409-0004-Low-scheduler-deprecate-support-for-default-instance.patch Patch127: pacemaker#3409-0005-Fix-tools-honor-rules-when-getting-utilization-attri.patch Patch128: pacemaker#3409-0006-Log-scheduler-correct-lifetime-deprecation-warning.patch Patch129: pacemaker#3409-0007-Log-scheduler-log-unknown-nodes-in-location-constrai.patch Patch130: pacemaker#3413-0001-Low-libpacemaker-pcmk__inject_failcount-should-set-a.patch Patch131: pacemaker#3413-0003-Fix-libcib-Don-t-incorrectly-expand-and-in-XML-attr-.patch Patch132: bsc#1220229-0001-Fix-tools-make-crm_mon-exit-upon-loss-of-the-attache.patch Patch133: pacemaker#3517-0001-prevent-to-free-op_reply-repeatedly-in-stonith_send_.patch Patch134: pacemaker#3517-0002-Low-libcrmcommon-reject-ISO-8601-duration-without-an.patch Patch135: bsc#1224183-0001-Refactor-libcib-new-function-cib__signon_attempts.patch Patch136: bsc#1224183-0002-Fix-tools-CIB-clients-retry-signon-upon-an-EAGAIN-er.patch # Required for core functionality BuildRequires: autoconf BuildRequires: automake BuildRequires: coreutils BuildRequires: fdupes BuildRequires: findutils BuildRequires: gcc BuildRequires: grep BuildRequires: help2man BuildRequires: libtool BuildRequires: ncurses-devel BuildRequires: pam-devel BuildRequires: pkgconfig # Required for agent_config.h which specifies the correct scratch directory BuildRequires: resource-agents BuildRequires: sed BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(corosync) >= 2.0.0 BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(glib-2.0) >= 2.16 BuildRequires: pkgconfig(gnutls) BuildRequires: pkgconfig(libexslt) # Pacemaker requires a minimum libqb functionality BuildRequires: pkgconfig(libqb) > 0.13.0 BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libxslt) # Pacemaker requires a minimum Python functionality BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(uuid) BuildRequires: python-rpm-macros Requires: %{name}-cli = %{version}-%{release} Requires: corosync >= 2.0.0 Requires: libpacemaker3 = %{version}-%{release} Requires: psmisc Requires: python3 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 # Enables optional functionality %if 0%{?suse_version} > 1100 BuildRequires: docbook-xsl-stylesheets %else BuildRequires: docbook-style-xsl %endif %if %{with stonithd} %if 0%{?suse_version} BuildRequires: libglue-devel %else BuildRequires: cluster-glue-libs-devel %endif %endif %if %{with doc} BuildRequires: asciidoc BuildRequires: inkscape BuildRequires: publican %endif %if %{with_regression_tests} BuildRequires: procps BuildRequires: python3-curses BuildRequires: python3-xml %endif %description Pacemaker is an advanced, scalable High-Availability cluster resource manager. It supports more than 16 node clusters with significant capabilities for managing resources and dependencies. 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. %package cli Summary: Command line tools for controlling Pacemaker clusters Group: Productivity/Clustering/HA Requires: libpacemaker3 = %{version}-%{release} Requires: logrotate Requires: perl-TimeDate Requires: procps Requires: psmisc Requires(post): coreutils # For crm_report Recommends: tar Recommends: bzip2 %description cli Pacemaker is an advanced, scalable High-Availability cluster resource manager. 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. %package -n libpacemaker3 Summary: Core Pacemaker libraries Group: Productivity/Clustering/HA Requires(pre): shadow # sbd 1.4.0+ supports the libpe_status API for pe_working_set_t Conflicts: sbd < 1.4.0 %description -n libpacemaker3 Pacemaker is an advanced, scalable High-Availability cluster resource manager. The libpacemaker3 package contains shared libraries needed for cluster nodes and those just running the CLI tools. %package -n libpacemaker3-cluster Summary: Cluster Libraries used by Pacemaker Group: Productivity/Clustering/HA Requires: libpacemaker3 = %{version}-%{release} %description -n libpacemaker3-cluster Pacemaker is an advanced, scalable High-Availability cluster resource manager. The libpacemaker3-cluster package contains cluster-aware shared libraries needed for nodes that will form part of the cluster nodes. %package remote Summary: Pacemaker remote daemon for non-cluster nodes Group: Productivity/Clustering/HA Requires: %{name}-cli = %{version}-%{release} Requires: libpacemaker3 = %{version}-%{release} Requires: procps Requires: resource-agents %{?systemd_requires} %description remote Pacemaker is an advanced, scalable High-Availability cluster resource manager. 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 Group: Development/Libraries/C and C++ Requires: libpacemaker3 = %{version}-%{release} Requires: libtool-ltdl-devel Requires: pkgconfig Requires: pkgconfig(bzip2) Requires: pkgconfig(corosync) >= 2.0.0 Requires: pkgconfig(glib-2.0) Requires: pkgconfig(libqb) Requires: pkgconfig(libxml-2.0) Requires: pkgconfig(libxslt) Requires: pkgconfig(uuid) %if %{enable_lib_cluster_pkg} Requires: libpacemaker3-cluster = %{version}-%{release} %endif %if %{with_regression_tests} # 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 %description -n libpacemaker-devel Pacemaker is an advanced, scalable High-Availability cluster resource manager. The libpacemaker-devel package contains headers and shared libraries for developing tools for Pacemaker. %package cts Summary: Test framework for cluster-related technologies Group: Productivity/Clustering/HA Requires: %{name} = %{version}-%{release} Requires: procps Requires: psmisc Requires: python3 BuildArch: noarch #Requires: python3-systemd Recommends: python3-systemd %description cts Test framework for cluster-related technologies like Pacemaker %package doc Summary: Documentation for Pacemaker Group: Productivity/Clustering/HA BuildArch: noarch %description doc Documentation for Pacemaker. Pacemaker is an advanced, scalable High-Availability cluster resource manager. %prep %setup -q -n %{name}-%{version} %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 %patch18 -p1 %patch19 -p1 %patch20 -p1 %patch21 -p1 %patch22 -p1 %patch23 -p1 %patch24 -p1 %patch25 -p1 %patch26 -p1 %patch27 -p1 %patch28 -p1 %patch29 -p1 %patch30 -p1 %patch31 -p1 %patch32 -p1 %patch33 -p1 %patch34 -p1 %patch35 -p1 %patch36 -p1 %patch37 -p1 %patch38 -p1 %patch39 -p1 %patch40 -p1 %patch41 -p1 %patch42 -p1 %patch43 -p1 %patch44 -p1 %patch45 -p1 %patch46 -p1 %patch47 -p1 %patch48 -p1 %patch49 -p1 %patch50 -p1 %patch51 -p1 %patch52 -p1 %patch53 -p1 %patch54 -p1 %patch55 -p1 %patch56 -p1 %patch57 -p1 %patch58 -p1 %patch59 -p1 %patch60 -p1 %patch61 -p1 %patch62 -p1 %patch63 -p1 %patch64 -p1 %patch65 -p1 %patch66 -p1 %patch67 -p1 %patch68 -p1 %patch69 -p1 %patch70 -p1 %patch71 -p1 %patch72 -p1 %patch73 -p1 %patch74 -p1 %patch75 -p1 %patch76 -p1 %patch77 -p1 %patch78 -p1 %patch79 -p1 %patch80 -p1 %patch81 -p1 %patch82 -p1 %patch83 -p1 %patch84 -p1 %patch85 -p1 %patch86 -p1 %patch87 -p1 %patch88 -p1 %patch89 -p1 %patch90 -p1 %patch91 -p1 %patch92 -p1 %patch93 -p1 %patch94 -p1 %patch95 -p1 %patch96 -p1 %patch97 -p1 %patch98 -p1 %patch99 -p1 %patch100 -p1 %patch101 -p1 %patch102 -p1 %patch103 -p1 %patch104 -p1 %patch105 -p1 %patch106 -p1 %patch107 -p1 %patch108 -p1 %patch109 -p1 %patch110 -p1 %patch111 -p1 %patch112 -p1 %patch113 -p1 %patch114 -p1 %patch115 -p1 %patch116 -p1 %patch117 -p1 %patch118 -p1 %patch119 -p1 %patch120 -p1 %patch121 -p1 %patch122 -p1 %patch123 -p1 %patch124 -p1 %patch125 -p1 %patch126 -p1 %patch127 -p1 %patch128 -p1 %patch129 -p1 %patch130 -p1 %patch131 -p1 %patch132 -p1 %patch133 -p1 %patch134 -p1 %patch135 -p1 %patch136 -p1 %build export systemdsystemunitdir=%{?_unitdir}%{!?_unitdir:no} %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 autoreconf -fvi %configure \ --docdir=%{_docdir}/%{name} \ --disable-static \ --disable-silent-rules \ --with-acl=true \ %if %{with_nagios} --with-nagios=true \ %else --with-nagios=false \ %endif %if !%{enable_fatal_warnings} --enable-fatal-warnings=no \ %endif PYTHON=%{python_path} \ %{!?with_hardening: --disable-hardening} \ %{!?with_legacy_links: --disable-legacy-links} \ %{?with_profiling: --with-profiling} \ %{?with_coverage: --with-coverage} \ %{?with_cibsecrets: --with-cibsecrets} \ %{!?with_doc: --with-brand=} \ --with-initdir=%{_initddir} \ --with-runstatedir=%{_rundir} \ --localstatedir=%{_var} \ --with-version=%{version}-%{release} make %{?_smp_mflags} %install %make_install install -d -m755 %{buildroot}%{_fillupdir} install -m 644 daemons/pacemakerd/pacemaker.sysconfig %{buildroot}%{_fillupdir}/sysconfig.pacemaker install -m 644 tools/crm_mon.sysconfig %{buildroot}%{_fillupdir}/sysconfig.crm_mon # Don't package static libs find %{buildroot} -type f -name "*.a" -delete -print find %{buildroot} -type f -name "*.la" -delete -print # 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 # Don't ship init scripts for systemd based platforms rm -f %{buildroot}/%{_initddir}/pacemaker rm -f %{buildroot}/%{_initddir}/pacemaker_remote %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 ln -s service %{buildroot}%{_sbindir}/rcpacemaker ln -s service %{buildroot}%{_sbindir}/rcpacemaker_remote ln -s service %{buildroot}%{_sbindir}/rccrm_mon mv %{buildroot}%{_sbindir}/crm_report %{buildroot}%{_sbindir}/crm_report.pacemaker install -m 755 %{SOURCE1} %{buildroot}%{_sbindir}/crm_report %if 0%{?suse_version} < 1600 ln -s ../heartbeat/NodeUtilization %{buildroot}%{_prefix}/lib/ocf/resource.d/pacemaker/ %endif %fdupes -s %{buildroot} %check make %{_smp_mflags} check # Prevent false positives in rpmlint ./cts/cts-regression -V scheduler cli 2>&1 %pre %service_add_pre pacemaker.service %post %service_add_post pacemaker.service %preun %service_del_preun pacemaker.service %postun %service_del_postun pacemaker.service %pre remote %service_add_pre pacemaker_remote.service %post remote %service_add_post pacemaker_remote.service %preun remote %service_del_preun pacemaker_remote.service %postun remote %service_del_postun pacemaker_remote.service %pre cli %service_add_pre crm_mon.service %post cli if [ ! -e %{_sysconfdir}/sysconfig/pacemaker ]; then %fillup_only -n pacemaker fi %service_add_post crm_mon.service if [ ! -e %{_sysconfdir}/sysconfig/crm_mon ]; then %fillup_only -n crm_mon fi 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 %preun cli %service_del_preun crm_mon.service %postun cli %service_del_postun crm_mon.service %pre -n libpacemaker3 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} exit 0 %post -n libpacemaker3 -p /sbin/ldconfig %postun -n libpacemaker3 -p /sbin/ldconfig %if %{enable_lib_cluster_pkg} %post -n libpacemaker3-cluster -p /sbin/ldconfig %postun -n libpacemaker3-cluster -p /sbin/ldconfig %endif %if %{with_regression_tests} %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 %{_datadir}/pacemaker/tests/cts-cli || true %{_datadir}/pacemaker/tests/cts-scheduler -V || true fi %endif %files %defattr(-,root,root) %{_defaultdocdir}/%{name}/ %{_sbindir}/pacemakerd %{_unitdir}/pacemaker.service %{_sbindir}/rcpacemaker %exclude %{_libexecdir}/pacemaker/cts-log-watcher %exclude %{_libexecdir}/pacemaker/cts-support %exclude %{_sbindir}/pacemaker-remoted %if %{with legacy_links} %exclude %{_sbindir}/pacemaker_remoted %endif %dir %{_libexecdir}/pacemaker %{_libexecdir}/pacemaker/* %{_sbindir}/fence_legacy %{_mandir}/man7/pacemaker-controld.7%{ext_man} %{_mandir}/man7/pacemaker-schedulerd.7%{ext_man} %{_mandir}/man7/pacemaker-fenced.7%{ext_man} %{_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} %doc %{_datadir}/pacemaker/alerts #%license licenses/GPLv2 %license COPYING %doc ChangeLog %dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/cib %dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/pengine %{_prefix}/lib/ocf/resource.d/pacemaker/controld %{_prefix}/lib/ocf/resource.d/pacemaker/o2cb %{_prefix}/lib/ocf/resource.d/pacemaker/remote %files cli %defattr(-,root,root) %dir %attr (750, root, %{gname}) %{_sysconfdir}/pacemaker %config(noreplace) %{_sysconfdir}/logrotate.d/pacemaker %{_unitdir}/crm_mon.service %{_sbindir}/rccrm_mon %{_sbindir}/attrd_updater %{_sbindir}/cibadmin %if %{with cibsecrets} %{_sbindir}/cibsecret %endif %{_sbindir}/crm_attribute %{_sbindir}/crm_diff %{_sbindir}/crm_error %{_sbindir}/crm_failcount %{_sbindir}/crm_master %{_sbindir}/crm_mon %{_sbindir}/crm_node %{_sbindir}/crm_resource %{_sbindir}/crm_standby %{_sbindir}/crm_verify %{_sbindir}/crmadmin %{_sbindir}/iso8601 %{_sbindir}/crm_shadow %{_sbindir}/crm_simulate %{_sbindir}/crm_report %{_sbindir}/crm_report.pacemaker %{_sbindir}/crm_rule %{_sbindir}/crm_ticket %{_sbindir}/stonith_admin %exclude %{_datadir}/pacemaker/alerts %exclude %{_datadir}/pacemaker/tests %{_datadir}/pacemaker %{_datadir}/pkgconfig/pacemaker-schemas.pc %{_datadir}/snmp/mibs/PCMK-MIB.txt %exclude %{_prefix}/lib/ocf/resource.d/pacemaker/controld %exclude %{_prefix}/lib/ocf/resource.d/pacemaker/o2cb %exclude %{_prefix}/lib/ocf/resource.d/pacemaker/remote %dir %{_prefix}/lib/ocf %dir %{_prefix}/lib/ocf/resource.d %{_prefix}/lib/ocf/resource.d/pacemaker %config(noreplace) %{_fillupdir}/sysconfig.pacemaker %config(noreplace) %{_fillupdir}/sysconfig.crm_mon %{_mandir}/man7/*pacemaker* %exclude %{_mandir}/man7/pacemaker-controld.* %exclude %{_mandir}/man7/pacemaker-schedulerd.* %exclude %{_mandir}/man7/pacemaker-fenced.* %exclude %{_mandir}/man7/ocf_pacemaker_controld.* %exclude %{_mandir}/man7/ocf_pacemaker_o2cb.* %exclude %{_mandir}/man7/ocf_pacemaker_remote.* %{_mandir}/man8/crm*.8%{ext_man} %{_mandir}/man8/attrd_updater.* %{_mandir}/man8/cibadmin.* %if %{with cibsecrets} %{_mandir}/man8/cibsecret.* %endif %{_mandir}/man8/iso8601.* %{_mandir}/man8/stonith_admin.* #%license licenses/GPLv2 %license COPYING %doc ChangeLog %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 %dir %attr (770, %{uname}, %{gname}) %{_var}/log/pacemaker %dir %attr (770, %{uname}, %{gname}) %{_var}/log/pacemaker/bundles %files -n libpacemaker3 %defattr(-,root,root) %{_libdir}/libcib.so.* %{_libdir}/liblrmd.so.* %{_libdir}/libcrmservice.so.* %{_libdir}/libcrmcommon.so.* %{_libdir}/libpe_status.so.* %{_libdir}/libpe_rules.so.* %{_libdir}/libpacemaker.so.* %{_libdir}/libstonithd.so.* #%license licenses/LGPLv2.1 %license COPYING %doc ChangeLog %{_libdir}/libcrmcluster.so.* %if %{enable_lib_cluster_pkg} %files -n libpacemaker3-cluster %defattr(-,root,root) %{_libdir}/libcrmcluster.so.* #%license licenses/LGPLv2.1 %license COPYING %doc ChangeLog %endif %files remote %defattr(-,root,root) %{_unitdir}/pacemaker_remote.service %{_sbindir}/rcpacemaker_remote %{_sbindir}/pacemaker-remoted %if %{with legacy_links} %{_sbindir}/pacemaker_remoted %endif %{_mandir}/man8/pacemaker-remoted.8%{ext_man} #%license licenses/GPLv2 %license COPYING %doc ChangeLog %if %{with doc} %files doc %defattr(-,root,root) %doc %{pcmk_docdir} #%license licenses/CC-BY-SA-4.0 %endif %files cts %defattr(-,root,root) %{python3_sitelib}/cts %{_datadir}/pacemaker/tests %{_libexecdir}/pacemaker/cts-log-watcher %{_libexecdir}/pacemaker/cts-support #%license licenses/GPLv2 %license COPYING %doc ChangeLog %files -n libpacemaker-devel %defattr(-,root,root) %{_includedir}/pacemaker %{_libdir}/libcib.so %{_libdir}/liblrmd.so %{_libdir}/libcrmservice.so %{_libdir}/libcrmcommon.so %{_libdir}/libpe_status.so %{_libdir}/libpe_rules.so %{_libdir}/libpacemaker.so %{_libdir}/libstonithd.so %{_libdir}/libcrmcluster.so %if %{with coverage} %{_var}/lib/pacemaker/gcov %endif %{_libdir}/pkgconfig/*pacemaker*.pc #%license licenses/LGPLv2.1 %license COPYING %doc ChangeLog %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor