1 %global alphatag @alphatag@
2 %global numcomm @numcomm@
6 # Invoke "rpmbuild --without <feature>" or "rpmbuild --with <feature>"
7 # to disable or enable specific features
10 %bcond_with monitoring
18 Summary: The Corosync Cluster Engine and Application Programming Interfaces
20 Release: 1%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
22 Group: System Environment
/Base
23 URL: http
://ftp.corosync.org
24 Source0: ftp
://ftp
:user@ftp.corosync.org
/downloads
/%{name}-%{version}/%{name}-%{version}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}.tar.gz
27 Requires: corosynclib
= %{version}-%{release}
28 Requires(pre
): /usr
/sbin
/useradd
29 Requires(post
): /sbin
/chkconfig
30 Requires(preun
): /sbin
/chkconfig
31 Conflicts: openais
<= 0.89, openais
-devel
<= 0.89
36 %{?_with_buildtrunk: %define buildtrunk 1}
38 BuildRequires
: libqb
-devel
40 BuildRequires
: autoconf automake
43 BuildRequires
: nss
-devel
46 BuildRequires
: libibverbs
-devel librdmacm
-devel
49 BuildRequires
: net
-snmp
-devel
52 BuildRequires
: dbus
-devel
55 BuildRequires
: systemd
-units
58 BuildRoot: %
(mktemp
-ud
%{_tmppath}/%{name}-%{version}-%{release}-XXXXXX
)
61 %setup -q
-n
%{name}-%{version}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}
69 export ibverbs_CFLAGS
=-I
/usr
/include
/infiniband \
70 export ibverbs_LIBS
=-libverbs \
71 export rdmacm_CFLAGS
=-I
/usr
/include
/rdma \
72 export rdmacm_LIBS
=-lrdmacm \
80 %if %{with testagents}
86 %if %{with monitoring}
101 --with
-initddir
=%{_initrddir}
108 make install DESTDIR
=%{buildroot}
111 mkdir -p
-m
0700 %{buildroot}/%{_sysconfdir}/dbus
-1/system.d
112 install -m
644 %{_builddir}/%{name}-%{version}/conf/corosync-signals.conf %{buildroot}/%{_sysconfdir}/dbus
-1/system.d
/corosync
-signals.conf
117 rm -f
%{buildroot}%{_libdir}/*.a
118 # drop docs and html docs for now
119 rm -rf
%{buildroot}%{_docdir}/*
125 This package contains the Corosync Cluster Engine Executive
, several default
126 APIs and libraries
, default configuration files
, and an init script.
129 if [ $
1 -eq
1 ]; then
130 /sbin
/chkconfig
--add corosync ||
:
134 if [ $
1 -eq
0 ]; then
135 /sbin
/service corosync stop
&>/dev
/null ||
:
136 /sbin
/chkconfig
--del corosync ||
:
140 %defattr(-,root
,root
,-)
141 %doc LICENSE SECURITY
143 %{_sbindir}/corosync
-keygen
144 %{_sbindir}/corosync
-objctl
145 %{_sbindir}/corosync
-cfgtool
146 %{_sbindir}/corosync
-fplay
147 %{_sbindir}/corosync
-pload
148 %{_sbindir}/corosync
-cpgtool
149 %{_sbindir}/corosync
-quorumtool
150 %{_sbindir}/corosync
-notifyd
151 %{_bindir}/corosync
-blackbox
152 %dir %{_sysconfdir}/corosync
153 %dir %{_sysconfdir}/corosync
/service.d
154 %dir %{_sysconfdir}/corosync
/uidgid.d
155 %config(noreplace
) %{_sysconfdir}/corosync
/corosync.conf.example
156 %config(noreplace
) %{_sysconfdir}/corosync
/corosync.conf.example.udpu
158 %{_sysconfdir}/dbus
-1/system.d
/corosync
-signals.conf
161 %{_datadir}/snmp
/mibs
/COROSYNC
-MIB.txt
164 %{_unitdir}/corosync.service
165 %{_unitdir}/corosync
-notifyd.service
167 %{_initrddir}/corosync
168 %{_initrddir}/corosync
-notifyd
170 %dir %{_libexecdir}/lcrso
171 %{_libexecdir}/lcrso
/coroparse.lcrso
172 %{_libexecdir}/lcrso
/service_cfg.lcrso
173 %{_libexecdir}/lcrso
/service_cpg.lcrso
174 %{_libexecdir}/lcrso
/service_evs.lcrso
175 %{_libexecdir}/lcrso
/service_cmap.lcrso
176 %{_libexecdir}/lcrso
/service_pload.lcrso
177 %{_libexecdir}/lcrso
/quorum_votequorum.lcrso
178 %{_libexecdir}/lcrso
/quorum_testquorum.lcrso
179 %{_libexecdir}/lcrso
/vsf_quorum.lcrso
180 %{_libexecdir}/lcrso
/vsf_ykd.lcrso
182 %{_libexecdir}/lcrso
/service_wd.lcrso
184 %if %{with monitoring}
185 %{_libexecdir}/lcrso
/service_mon.lcrso
187 %dir %{_localstatedir}/lib
/corosync
188 %dir %{_localstatedir}/log
/cluster
189 %{_mandir}/man8
/corosync_overview
.8*
190 %{_mandir}/man8
/corosync
.8*
191 %{_mandir}/man8
/corosync
-blackbox
.8*
192 %{_mandir}/man8
/corosync
-objctl
.8*
193 %{_mandir}/man8
/corosync
-keygen
.8*
194 %{_mandir}/man8
/corosync
-cfgtool
.8*
195 %{_mandir}/man8
/corosync
-cpgtool
.8*
196 %{_mandir}/man8
/corosync
-fplay
.8*
197 %{_mandir}/man8
/corosync
-pload
.8*
198 %{_mandir}/man8
/corosync
-notifyd
.8*
199 %{_mandir}/man8
/corosync
-quorumtool
.8*
200 %{_mandir}/man5
/corosync.conf
.5*
203 # optional testagent rpm
205 %if %{with testagents}
207 %package -n corosync
-testagents
208 Summary: The Corosync Cluster Engine Test Agents
209 Group: Development
/Libraries
210 Requires: %{name} = %{version}-%{release}
212 %description -n corosync
-testagents
213 This package contains corosync
test agents.
215 %files -n corosync
-testagents
216 %defattr(755,root
,root
,-)
217 %{_datadir}/corosync
/tests
/mem_leak_test.sh
218 %{_datadir}/corosync
/tests
/net_breaker.sh
219 %{_bindir}/cpg_test_agent
220 %{_bindir}/sam_test_agent
221 %{_bindir}/votequorum_test_agent
222 %{_libexecdir}/lcrso
/service_syncv2.lcrso
228 %package -n corosynclib
229 Summary: The Corosync Cluster Engine Libraries
230 Group: System Environment
/Libraries
231 Requires: %{name} = %{version}-%{release}
233 %description -n corosynclib
234 This package contains corosync libraries.
236 %files -n corosynclib
237 %defattr(-,root
,root
,-)
239 %{_libdir}/libcfg.so.
*
240 %{_libdir}/libcpg.so.
*
241 %{_libdir}/libcmap.so.
*
242 %{_libdir}/libevs.so.
*
243 %{_libdir}/libtotem_pg.so.
*
244 %{_libdir}/liblogsys.so.
*
245 %{_libdir}/libicmap.so.
*
246 %{_libdir}/libquorum.so.
*
247 %{_libdir}/libvotequorum.so.
*
248 %{_libdir}/libpload.so.
*
249 %{_libdir}/libsam.so.
*
251 %post -n corosynclib
-p
/sbin
/ldconfig
253 %postun -n corosynclib
-p
/sbin
/ldconfig
255 %package -n corosynclib
-devel
256 Summary: The Corosync Cluster Engine Development Kit
257 Group: Development
/Libraries
258 Requires: corosynclib
= %{version}-%{release}
260 Provides: corosync
-devel
= %{version}
261 Obsoletes
: corosync
-devel
< 0.92-7
263 %description -n corosynclib
-devel
264 This package contains include files and man pages used to develop using
265 The Corosync Cluster Engine APIs.
267 %files -n corosynclib
-devel
268 %defattr(-,root
,root
,-)
270 %dir %{_includedir}/corosync
/
271 %{_includedir}/corosync
/cs_config.h
272 %{_includedir}/corosync
/corodefs.h
273 %{_includedir}/corosync
/cfg.h
274 %{_includedir}/corosync
/cmap.h
275 %{_includedir}/corosync
/corotypes.h
276 %{_includedir}/corosync
/cpg.h
277 %{_includedir}/corosync
/evs.h
278 %{_includedir}/corosync
/hdb.h
279 %{_includedir}/corosync
/list.h
280 %{_includedir}/corosync
/mar_gen.h
281 %{_includedir}/corosync
/sam.h
282 %{_includedir}/corosync
/swab.h
283 %{_includedir}/corosync
/quorum.h
284 %{_includedir}/corosync
/votequorum.h
285 %dir %{_includedir}/corosync
/totem
/
286 %{_includedir}/corosync
/totem
/totem.h
287 %{_includedir}/corosync
/totem
/totemip.h
288 %{_includedir}/corosync
/totem
/totempg.h
289 %dir %{_includedir}/corosync
/lcr
/
290 %{_includedir}/corosync
/lcr
/lcr_ckpt.h
291 %{_includedir}/corosync
/lcr
/lcr_comp.h
292 %{_includedir}/corosync
/lcr
/lcr_ifact.h
293 %dir %{_includedir}/corosync
/engine
294 %{_includedir}/corosync
/engine
/config.h
295 %{_includedir}/corosync
/engine
/coroapi.h
296 %{_includedir}/corosync
/engine
/logsys.h
297 %{_includedir}/corosync
/engine
/icmap.h
298 %{_includedir}/corosync
/engine
/quorum.h
301 %{_libdir}/libcmap.so
303 %{_libdir}/libtotem_pg.so
304 %{_libdir}/liblogsys.so
305 %{_libdir}/libquorum.so
306 %{_libdir}/libvotequorum.so
307 %{_libdir}/libpload.so
309 %{_libdir}/pkgconfig
/*.pc
310 %{_mandir}/man3
/cpg_
*3*
311 %{_mandir}/man3
/evs_
*3*
312 %{_mandir}/man3
/confdb_
*3*
313 %{_mandir}/man3
/votequorum_
*3*
314 %{_mandir}/man3
/sam_
*3*
315 %{_mandir}/man8
/cpg_overview
.8*
316 %{_mandir}/man8
/evs_overview
.8*
317 %{_mandir}/man8
/confdb_overview
.8*
318 %{_mandir}/man8
/votequorum_overview
.8*
319 %{_mandir}/man8
/sam_overview
.8*
322 * @date@ Autotools generated version
<nobody@nowhere.org
> - @version@
-1-@numcomm@.@alphatag@.@dirty@
323 - Autotools generated version