]> git.pld-linux.org Git - packages/cluster-sbd.git/blob - cluster-sbd.spec
6f49ecc8b77a2745f491454770be164aabdeb458
[packages/cluster-sbd.git] / cluster-sbd.spec
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ą
4 Name:           cluster-sbd
5 Version:        1.4.1
6 Release:        1
7 License:        GPL v2+
8 Group:          Daemons
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:  506253d40490d49a8effc0f563bcd666
12 URL:            https://github.com/ClusterLabs/sbd/
13 BuildRequires:  autoconf >= 2.63
14 # for serial-tests
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
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 Requires:       cluster-glue-stonith >= 1.0.9
27 Requires:       corosync-libs >= 2.0
28 Requires:       pacemaker-libs >= 1.1.8
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 A highly reliable fencing or Shoot-the-other-node-in-the-head
33 (STONITH) mechanism that works by utilizing shared storage.
34
35 The component works with Pacemaker clusters. (Currently, it is only
36 tested on clusters using the "old" plugin to corosync, not yet the MCP
37 code).
38
39 %description -l pl.UTF-8
40 Wysoko wiarygodny mechanizm odgrodzenia lub "odstrzeliwania" (STONITH
41 - Shoot-the-other-node-in-the-head), działający dzięki wykorzystaniu
42 współdzielonej przestrzeni dyskowej.
43
44 Komponent działa z klastrami Pacemaker (aktualnie testowany był tylko
45 z klastrami wykorzystującymi "starą" wtyczkę corosync, nie kod MCP).
46
47 %prep
48 %setup -q -n sbd-%{version}
49
50 # see autogen.sh
51 echo 'm4_define([TESTS_OPTION], [serial-tests])' > tests-opt.m4
52
53 %build
54 %{__aclocal}
55 %{__autoconf}
56 %{__autoheader}
57 %{__automake}
58 cd tests
59 %{__libtoolize}
60 %{__aclocal}
61 %{__autoconf}
62 %{__autoheader}
63 %{__automake}
64 cd ..
65 %configure \
66         --disable-static
67
68 %{__make}
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72
73 %{__make} install \
74         DESTDIR=$RPM_BUILD_ROOT
75
76 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsbdtestbed.*
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files
82 %defattr(644,root,root,755)
83 %doc NEWS README.md ROADMAP
84 %attr(755,root,root) %{_sbindir}/sbd
85 %attr(755,root,root) %{_libdir}/stonith/plugins/external/sbd
86 %{_mandir}/man8/sbd.8*
This page took 0.099009 seconds and 2 git commands to generate.