1 # NOTE: upstream name is "sbd" but is was already occupied, so using "cluster-" prefix
2 Summary: Shared-storage based death
3 Summary(pl.UTF-8): Uśmiercanie węzła poprzez współdzieloną przestrzeń dyskową
9 #Source0Download: https://github.com/ClusterLabs/sbd/releases
10 Source0: https://github.com/ClusterLabs/sbd/archive/v%{version}/sbd-%{version}.tar.gz
11 # Source0-md5: 035f9b05d11e4dfed44447e6dce56eb9
12 URL: https://github.com/ClusterLabs/sbd/
13 BuildRequires: autoconf >= 2.63
15 BuildRequires: automake >= 1:1.13
16 BuildRequires: corosync-devel >= 2.0
17 BuildRequires: glib2-devel >= 2.0
18 BuildRequires: libaio-devel
19 BuildRequires: libqb-devel
20 BuildRequires: libtool >= 2:2
21 BuildRequires: libuuid-devel
22 BuildRequires: libxml2-devel >= 2.0
23 BuildRequires: pacemaker-devel >= 1.1.8
24 BuildRequires: perl-tools-pod
25 BuildRequires: pkgconfig
26 BuildRequires: rpm-build >= 4.6
27 Requires: cluster-glue-stonith >= 1.0.9
28 Requires: corosync-libs >= 2.0
29 Requires: pacemaker-libs >= 1.1.8
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 A highly reliable fencing or Shoot-the-other-node-in-the-head
34 (STONITH) mechanism that works by utilizing shared storage.
36 The component works with Pacemaker clusters. (Currently, it is only
37 tested on clusters using the "old" plugin to corosync, not yet the MCP
40 %description -l pl.UTF-8
41 Wysoko wiarygodny mechanizm odgrodzenia lub "odstrzeliwania" (STONITH
42 - Shoot-the-other-node-in-the-head), działający dzięki wykorzystaniu
43 współdzielonej przestrzeni dyskowej.
45 Komponent działa z klastrami Pacemaker (aktualnie testowany był tylko
46 z klastrami wykorzystującymi "starą" wtyczkę corosync, nie kod MCP).
49 Summary: SBD development package
50 Summary(pl.UTF-8): Pakiet programistyczny SBD
51 Group: Development/Libraries
52 # doesn't require base
56 SBD development package containing build information.
58 %description devel -l pl.UTF-8
59 Pakiet programistyczny SBD, zawierający informacje z czasu budowania.
62 %setup -q -n sbd-%{version}
65 echo 'm4_define([TESTS_OPTION], [serial-tests])' > tests-opt.m4
85 rm -rf $RPM_BUILD_ROOT
88 DESTDIR=$RPM_BUILD_ROOT
90 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsbdtestbed.*
93 rm -rf $RPM_BUILD_ROOT
96 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_sbindir}/sbd
99 %attr(755,root,root) %{_libdir}/stonith/plugins/external/sbd
100 %{_mandir}/man8/sbd.8*
103 %defattr(644,root,root,755)
104 %{_npkgconfigdir}/sbd.pc