代码拉取完成,页面将自动刷新
同步操作将从 OpenCloudOS Stream/sbd 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global watchdog_timeout_default 5
Summary: Storage-based death
Name: sbd
License: GPLv2+
Version: 1.5.2
Release: 1%{?dist}
Url: https://github.com/Clusterlabs/%{name}
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
Patch0001: 0001-Fix-query-watchdog-avoid-issues-on-heap-allocation-f.patch
Patch0002: 0002-Refactor-sbd-md-alloc-de-alloc-reverse-order.patch
Patch0003: 0003-spec-convert-license-naming-to-SPDX.patch
BuildRequires: autoconf automake libuuid-devel glib2-devel libaio-devel
BuildRequires: corosync-devel pacemaker-libs-devel libtool libuuid-devel libxml2-devel pkgconfig make systemd
%{?systemd_requires}
%description
This package contains the storage-based death functionality.
%package tests
Summary: Storage-based death environment for regression tests
License: GPLv2+
%description tests
This package provides an environment + testscripts for regression-testing sbd.
%prep
%autosetup -n %{name}-%{version} -p1
%build
./autogen.sh
export CFLAGS="$RPM_OPT_FLAGS -Wall -Werror"
%configure \
--with-watchdog-timeout-default=%{watchdog_timeout_default} \
--with-sync-resource-startup-default=yes \
--with-sync-resource-startup-sysconfig="" \
--with-runstatedir=%{_rundir} \
%{nil}
%make_build
%install
%make_install LIBDIR=%{_libdir} install
rm -rf %{buildroot}%{_libdir}/stonith
install -D -m 0755 tests/regressions.sh %{buildroot}%{_datadir}/sbd/regressions.sh
install -D -m 0644 src/sbd.service %{buildroot}%{_unitdir}/sbd.service
install -D -m 0644 src/sbd_remote.service %{buildroot}%{_unitdir}/sbd_remote.service
install -Dm 644 src/sbd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/sbd/sbd.sysconfig
find %{buildroot} -name '*.a' -type f -print0 | xargs -0 rm -f
find %{buildroot} -name '*.la' -type f -print0 | xargs -0 rm -f
%post
%systemd_post sbd.service
%systemd_post sbd_remote.service
if [ $1 -ne 1 ] ; then
if systemctl --quiet is-enabled sbd.service 2>/dev/null
then
systemctl --quiet reenable sbd.service 2>/dev/null || :
fi
if systemctl --quiet is-enabled sbd_remote.service 2>/dev/null
then
systemctl --quiet reenable sbd_remote.service 2>/dev/null || :
fi
fi
%preun
%systemd_preun sbd.service
%systemd_preun sbd_remote.service
%postun
%systemd_postun sbd.service
%systemd_postun sbd_remote.service
%files
%license COPYING
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/sysconfig/sbd
%doc %{_mandir}/man8/sbd*
%{_sbindir}/sbd
%{_datadir}/sbd
%{_datadir}/pkgconfig/sbd.pc
%{_unitdir}/sbd.service
%{_unitdir}/sbd_remote.service
%exclude %{_datadir}/sbd/regressions.sh
%files tests
%defattr(-,root,root)
%dir %{_datadir}/sbd
%{_datadir}/sbd/regressions.sh
%{_libdir}/libsbdtestbed*
%changelog
* Tue Jul 11 2023 Shuo Wang <abushwang@tencent.com> - 1.5.2-1
- update to 1.5.2
* Fri Apr 28 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.5.1-3
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.5.1-2
- Rebuilt for OpenCloudOS Stream 23
* Fri Feb 24 2023 Shuo Wang <abushwang@tencent.com> - 1.5.1-1
- initial build
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。