5 Star 0 Fork 2

OpenCloudOS Stream / sbd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
sbd.spec 3.34 KB
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2023-09-08 22:36 . Rebuilt for OpenCloudOS Stream 23.09
%global watchdog_timeout_default 5
Summary: Storage-based death
Name: sbd
License: GPLv2+
Version: 1.5.2
Release: 3%{?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
* Fri Sep 08 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.5.2-3
- Rebuilt for OpenCloudOS Stream 23.09
* Mon Jul 17 2023 cunshunxia <cunshunxia@tencent.com> - 1.5.2-2
- rebuild for pacemaker 2.1.6.
* 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/sbd.git
git@gitee.com:opencloudos-stream/sbd.git
opencloudos-stream
sbd
sbd
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891