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
-cmapctl
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
153 %{_bindir}/corosync
-xmlproc
155 %dir %{_sysconfdir}/corosync
156 %dir %{_sysconfdir}/corosync
/service.d
157 %dir %{_sysconfdir}/corosync
/uidgid.d
158 %config(noreplace
) %{_sysconfdir}/corosync
/corosync.conf.example
159 %config(noreplace
) %{_sysconfdir}/corosync
/corosync.conf.example.udpu
161 %{_sysconfdir}/dbus
-1/system.d
/corosync
-signals.conf
164 %{_datadir}/snmp
/mibs
/COROSYNC
-MIB.txt
167 %{_unitdir}/corosync.service
168 %{_unitdir}/corosync
-notifyd.service
170 %{_initrddir}/corosync
171 %{_initrddir}/corosync
-notifyd
173 %dir %{_libexecdir}/lcrso
174 %{_libexecdir}/lcrso
/coroparse.lcrso
175 %{_libexecdir}/lcrso
/service_cfg.lcrso
176 %{_libexecdir}/lcrso
/service_cpg.lcrso
177 %{_libexecdir}/lcrso
/service_evs.lcrso
178 %{_libexecdir}/lcrso
/service_cmap.lcrso
179 %{_libexecdir}/lcrso
/service_pload.lcrso
180 %{_libexecdir}/lcrso
/quorum_votequorum.lcrso
181 %{_libexecdir}/lcrso
/quorum_testquorum.lcrso
182 %{_libexecdir}/lcrso
/vsf_quorum.lcrso
183 %{_libexecdir}/lcrso
/vsf_ykd.lcrso
185 %{_libexecdir}/lcrso
/service_wd.lcrso
187 %if %{with monitoring}
188 %{_libexecdir}/lcrso
/service_mon.lcrso
190 %dir %{_localstatedir}/lib
/corosync
191 %dir %{_localstatedir}/log
/cluster
192 %{_mandir}/man8
/corosync_overview
.8*
193 %{_mandir}/man8
/corosync
.8*
194 %{_mandir}/man8
/corosync
-blackbox
.8*
195 %{_mandir}/man8
/corosync
-objctl
.8*
196 %{_mandir}/man8
/corosync
-keygen
.8*
197 %{_mandir}/man8
/corosync
-cfgtool
.8*
198 %{_mandir}/man8
/corosync
-cpgtool
.8*
199 %{_mandir}/man8
/corosync
-fplay
.8*
200 %{_mandir}/man8
/corosync
-pload
.8*
201 %{_mandir}/man8
/corosync
-notifyd
.8*
202 %{_mandir}/man8
/corosync
-quorumtool
.8*
203 %{_mandir}/man5
/corosync.conf
.5*
206 # optional testagent rpm
208 %if %{with testagents}
210 %package -n corosync
-testagents
211 Summary: The Corosync Cluster Engine Test Agents
212 Group: Development
/Libraries
213 Requires: %{name} = %{version}-%{release}
215 %description -n corosync
-testagents
216 This package contains corosync
test agents.
218 %files -n corosync
-testagents
219 %defattr(755,root
,root
,-)
220 %{_datadir}/corosync
/tests
/mem_leak_test.sh
221 %{_datadir}/corosync
/tests
/net_breaker.sh
222 %{_bindir}/cpg_test_agent
223 %{_bindir}/sam_test_agent
224 %{_bindir}/votequorum_test_agent
225 %{_libexecdir}/lcrso
/service_syncv2.lcrso
231 %package -n corosynclib
232 Summary: The Corosync Cluster Engine Libraries
233 Group: System Environment
/Libraries
234 Requires: %{name} = %{version}-%{release}
236 %description -n corosynclib
237 This package contains corosync libraries.
239 %files -n corosynclib
240 %defattr(-,root
,root
,-)
242 %{_libdir}/libcfg.so.
*
243 %{_libdir}/libcpg.so.
*
244 %{_libdir}/libcmap.so.
*
245 %{_libdir}/libevs.so.
*
246 %{_libdir}/libtotem_pg.so.
*
247 %{_libdir}/libicmap.so.
*
248 %{_libdir}/libquorum.so.
*
249 %{_libdir}/libvotequorum.so.
*
250 %{_libdir}/libpload.so.
*
251 %{_libdir}/libsam.so.
*
253 %post -n corosynclib
-p
/sbin
/ldconfig
255 %postun -n corosynclib
-p
/sbin
/ldconfig
257 %package -n corosynclib
-devel
258 Summary: The Corosync Cluster Engine Development Kit
259 Group: Development
/Libraries
260 Requires: corosynclib
= %{version}-%{release}
262 Provides: corosync
-devel
= %{version}
263 Obsoletes
: corosync
-devel
< 0.92-7
265 %description -n corosynclib
-devel
266 This package contains include files and man pages used to develop using
267 The Corosync Cluster Engine APIs.
269 %files -n corosynclib
-devel
270 %defattr(-,root
,root
,-)
272 %dir %{_includedir}/corosync
/
273 %{_includedir}/corosync
/cs_config.h
274 %{_includedir}/corosync
/corodefs.h
275 %{_includedir}/corosync
/cfg.h
276 %{_includedir}/corosync
/cmap.h
277 %{_includedir}/corosync
/corotypes.h
278 %{_includedir}/corosync
/cpg.h
279 %{_includedir}/corosync
/evs.h
280 %{_includedir}/corosync
/hdb.h
281 %{_includedir}/corosync
/list.h
282 %{_includedir}/corosync
/mar_gen.h
283 %{_includedir}/corosync
/sam.h
284 %{_includedir}/corosync
/swab.h
285 %{_includedir}/corosync
/quorum.h
286 %{_includedir}/corosync
/votequorum.h
287 %dir %{_includedir}/corosync
/totem
/
288 %{_includedir}/corosync
/totem
/totem.h
289 %{_includedir}/corosync
/totem
/totemip.h
290 %{_includedir}/corosync
/totem
/totempg.h
291 %dir %{_includedir}/corosync
/lcr
/
292 %{_includedir}/corosync
/lcr
/lcr_ckpt.h
293 %{_includedir}/corosync
/lcr
/lcr_comp.h
294 %{_includedir}/corosync
/lcr
/lcr_ifact.h
295 %dir %{_includedir}/corosync
/engine
296 %{_includedir}/corosync
/engine
/config.h
297 %{_includedir}/corosync
/engine
/coroapi.h
298 %{_includedir}/corosync
/engine
/icmap.h
299 %{_includedir}/corosync
/engine
/quorum.h
302 %{_libdir}/libcmap.so
304 %{_libdir}/libtotem_pg.so
305 %{_libdir}/libquorum.so
306 %{_libdir}/libvotequorum.so
307 %{_libdir}/libpload.so
309 %{_libdir}/libicmap.so
310 %{_libdir}/pkgconfig
/*.pc
311 %{_mandir}/man3
/cpg_
*3*
312 %{_mandir}/man3
/evs_
*3*
313 %{_mandir}/man3
/confdb_
*3*
314 %{_mandir}/man3
/votequorum_
*3*
315 %{_mandir}/man3
/sam_
*3*
316 %{_mandir}/man8
/cpg_overview
.8*
317 %{_mandir}/man8
/evs_overview
.8*
318 %{_mandir}/man8
/confdb_overview
.8*
319 %{_mandir}/man8
/votequorum_overview
.8*
320 %{_mandir}/man8
/sam_overview
.8*
323 * @date@ Autotools generated version
<nobody@nowhere.org
> - @version@
-1-@numcomm@.@alphatag@.@dirty@
324 - Autotools generated version