1515
1616# Please submit bugfixes or comments via http://bugs.opensuse.org/
1717#
18- %global longcommit bfeee963f7363720da91a018045ca6746d822ba0
18+ %global longcommit 2a00ac70f7200ed238a5bc73392e6a59a06fe904
1919%global shortcommit %(echo %{longcommit }|cut -c1-8)
2020%global modified %(echo %{longcommit }-|cut -f2 -d-)
2121%global github_owner Clusterlabs
3030%global watchdog_timeout_default 5
3131%endif
3232
33- %global sync_resource_startup_default no
34- %global sync_resource_startup_sysconfig no
33+ # Be careful with sync_resource_startup_default
34+ # being enabled. This configuration has
35+ # to be in sync with configuration in pacemaker
36+ # where it is called sbd_sync - assure by e.g.
37+ # mutual rpm dependencies.
38+ %bcond_without sync_resource_startup_default
39+ # Syncing enabled per default will lead to
40+ # syncing enabled on upgrade without adaption
41+ # of the config.
42+ # Setting can still be overruled via sysconfig.
43+ # The setting in the config-template packaged
44+ # will follow the default if below is is left
45+ # empty. But it is possible to have the setting
46+ # in the config-template deviate from the default
47+ # by setting below to an explicit 'yes' or 'no'.
48+ %global sync_resource_startup_sysconfig ""
3549
3650Name: sbd
3751Summary: Storage-based death
3852License: GPLv2+
3953Group: System Environment/Daemons
40- Version: 1.4.2
54+ Version: 1.5.0
4155Release: 99.%{buildnum }.%{shortcommit }.%{modified }git%{?dist }
4256Url: https://github.com/%{github_owner }/%{name }
4357Source0: https://github.com/%{github_owner }/%{name }/archive/%{longcommit }/%{name }-%{longcommit }.tar.gz
@@ -72,6 +86,9 @@ ExclusiveArch: i686 x86_64 s390x aarch64 ppc64le
7286
7387This package contains the storage-based death functionality.
7488
89+ Available rpmbuild rebuild options:
90+ --with(out) : sync_resource_startup_default
91+
7592%package tests
7693Summary: Storage-based death environment for regression tests
7794License: GPLv2+
@@ -91,7 +108,7 @@ regression-testing sbd.
91108./autogen.sh
92109export CFLAGS=" $RPM_OPT_FLAGS -Wall -Werror"
93110%configure --with-watchdog-timeout-default=%{watchdog_timeout_default } \
94- --with-sync-resource-startup-default=%{sync_resource_startup_default } \
111+ --with-sync-resource-startup-default=%{? with_sync_resource_startup_default:yes }%{!? with_sync_resource_startup_default:no } \
95112 --with-sync-resource-startup-sysconfig=%{sync_resource_startup_sysconfig }
96113make %{?_smp_mflags }
97114###########################################################
@@ -155,6 +172,14 @@ rm -rf %{buildroot}
155172%{_libdir }/libsbdtestbed*
156173
157174%changelog
175+ *
Tue Jun 8 2021 <[email protected] > - 1.5.0-99.0.2a00ac70.git 176+ - default to resource-syncing with pacemaker in spec-file and configure.ac
177+ This default has to match between sbd and pacemaker and
178+ thus qualifies this release for a minor-version-bump
179+ - fix some regressions introduced by adding configurability previously
180+ - adapt description of startup/shutdown sync with pacemaker
181+ - make watchdog warning messages more understandable
182+
158183*
Wed Dec 2 2020 <[email protected] > - 1.4.2-99.1.bfeee963.git 159184- improve build/CI-friendlyness
160185- * travis: switch to F32 as build-host
0 commit comments