]> git.pld-linux.org Git - packages/cluster-sbd.git/blame - cluster-sbd.spec
- updated to 1.4.2, added -devel package with .pc file
[packages/cluster-sbd.git] / cluster-sbd.spec
CommitLineData
cd378ea7
JB
1# NOTE: upstream name is "sbd" but is was already occupied, so using "cluster-" prefix
2Summary: Shared-storage based death
3Summary(pl.UTF-8): Uśmiercanie węzła poprzez współdzieloną przestrzeń dyskową
4Name: cluster-sbd
a454b538 5Version: 1.4.2
cd378ea7
JB
6Release: 1
7License: GPL v2+
8Group: Daemons
9#Source0Download: https://github.com/ClusterLabs/sbd/releases
10Source0: https://github.com/ClusterLabs/sbd/archive/v%{version}/sbd-%{version}.tar.gz
a454b538 11# Source0-md5: 035f9b05d11e4dfed44447e6dce56eb9
cd378ea7
JB
12URL: https://github.com/ClusterLabs/sbd/
13BuildRequires: autoconf >= 2.63
8e062442
JB
14# for serial-tests
15BuildRequires: automake >= 1:1.13
16BuildRequires: corosync-devel >= 2.0
cd378ea7
JB
17BuildRequires: glib2-devel >= 2.0
18BuildRequires: libaio-devel
8e062442 19BuildRequires: libqb-devel
a454b538 20BuildRequires: libtool >= 2:2
8e062442 21BuildRequires: libuuid-devel
cd378ea7
JB
22BuildRequires: libxml2-devel >= 2.0
23BuildRequires: pacemaker-devel >= 1.1.8
24BuildRequires: perl-tools-pod
25BuildRequires: pkgconfig
a454b538 26BuildRequires: rpm-build >= 4.6
cd378ea7 27Requires: cluster-glue-stonith >= 1.0.9
8e062442
JB
28Requires: corosync-libs >= 2.0
29Requires: pacemaker-libs >= 1.1.8
cd378ea7
JB
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33A highly reliable fencing or Shoot-the-other-node-in-the-head
34(STONITH) mechanism that works by utilizing shared storage.
35
36The component works with Pacemaker clusters. (Currently, it is only
37tested on clusters using the "old" plugin to corosync, not yet the MCP
38code).
39
40%description -l pl.UTF-8
41Wysoko wiarygodny mechanizm odgrodzenia lub "odstrzeliwania" (STONITH
42- Shoot-the-other-node-in-the-head), działający dzięki wykorzystaniu
43współdzielonej przestrzeni dyskowej.
44
45Komponent działa z klastrami Pacemaker (aktualnie testowany był tylko
46z klastrami wykorzystującymi "starą" wtyczkę corosync, nie kod MCP).
47
a454b538
JB
48%package devel
49Summary: SBD development package
50Summary(pl.UTF-8): Pakiet programistyczny SBD
51Group: Development/Libraries
52# doesn't require base
53BuildArch: noarch
54
55%description devel
56SBD development package containing build information.
57
58%description devel -l pl.UTF-8
59Pakiet programistyczny SBD, zawierający informacje z czasu budowania.
60
cd378ea7
JB
61%prep
62%setup -q -n sbd-%{version}
8e062442
JB
63
64# see autogen.sh
65echo 'm4_define([TESTS_OPTION], [serial-tests])' > tests-opt.m4
cd378ea7
JB
66
67%build
68%{__aclocal}
69%{__autoconf}
70%{__autoheader}
71%{__automake}
8e062442
JB
72cd tests
73%{__libtoolize}
74%{__aclocal}
75%{__autoconf}
76%{__autoheader}
77%{__automake}
78cd ..
79%configure \
80 --disable-static
cd378ea7
JB
81
82%{__make}
83
84%install
85rm -rf $RPM_BUILD_ROOT
86
87%{__make} install \
88 DESTDIR=$RPM_BUILD_ROOT
89
8e062442
JB
90%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsbdtestbed.*
91
cd378ea7
JB
92%clean
93rm -rf $RPM_BUILD_ROOT
94
95%files
96%defattr(644,root,root,755)
a454b538 97%doc NEWS README.md
cd378ea7
JB
98%attr(755,root,root) %{_sbindir}/sbd
99%attr(755,root,root) %{_libdir}/stonith/plugins/external/sbd
100%{_mandir}/man8/sbd.8*
a454b538
JB
101
102%files devel
103%defattr(644,root,root,755)
104%{_npkgconfigdir}/sbd.pc
This page took 0.092305 seconds and 4 git commands to generate.