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
16 Summary: The Corosync Cluster Engine and Application Programming Interfaces
18 Release: 1%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
20 Group: System Environment
/Base
21 URL: http
://ftp.corosync.org
22 Source0: ftp
://ftp
:user@ftp.corosync.org
/downloads
/%{name}-%{version}/%{name}-%{version}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}.tar.gz
25 Requires: corosynclib
= %{version}-%{release}
26 Requires(pre
): /usr
/sbin
/useradd
27 Requires(post
): /sbin
/chkconfig
28 Requires(preun
): /sbin
/chkconfig
29 Conflicts: openais
<= 0.89, openais
-devel
<= 0.89
34 %{?_with_buildtrunk: %define buildtrunk 1}
37 BuildRequires
: autoconf automake
39 BuildRequires
: nss
-devel
41 BuildRequires
: libibverbs
-devel librdmacm
-devel
44 BuildRequires
: net
-snmp
-devel
47 BuildRequires
: dbus
-devel
50 BuildRoot: %
(mktemp
-ud
%{_tmppath}/%{name}-%{version}-%{release}-XXXXXX
)
53 %setup -q
-n
%{name}-%{version}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}
61 export ibverbs_CFLAGS
=-I
/usr
/include
/infiniband \
62 export ibverbs_LIBS
=-libverbs \
63 export rdmacm_CFLAGS
=-I
/usr
/include
/rdma \
64 export rdmacm_LIBS
=-lrdmacm \
68 %if %{with testagents}
74 %if %{with monitoring}
86 --with
-initddir
=%{_initrddir}
93 make install DESTDIR
=%{buildroot}
97 rm -f
%{buildroot}%{_libdir}/*.a
98 # drop docs and html docs for now
99 rm -rf
%{buildroot}%{_docdir}/*
105 This package contains the Corosync Cluster Engine Executive
, several default
106 APIs and libraries
, default configuration files
, and an init script.
109 if [ $
1 -eq
1 ]; then
110 /sbin
/chkconfig
--add corosync ||
:
114 if [ $
1 -eq
0 ]; then
115 /sbin
/service corosync stop
&>/dev
/null ||
:
116 /sbin
/chkconfig
--del corosync ||
:
120 %defattr(-,root
,root
,-)
121 %doc LICENSE SECURITY
122 %{_bindir}/corosync
-blackbox
124 %{_sbindir}/corosync
-keygen
125 %{_sbindir}/corosync
-objctl
126 %{_sbindir}/corosync
-cfgtool
127 %{_sbindir}/corosync
-fplay
128 %{_sbindir}/corosync
-pload
129 %{_sbindir}/corosync
-cpgtool
130 %{_sbindir}/corosync
-quorumtool
131 %{_sbindir}/corosync
-notifyd
132 %{_bindir}/corosync
-blackbox
133 %dir %{_sysconfdir}/corosync
134 %dir %{_sysconfdir}/corosync
/service.d
135 %dir %{_sysconfdir}/corosync
/uidgid.d
136 %config(noreplace
) %{_sysconfdir}/corosync
/corosync.conf.example
137 %config(noreplace
) %{_sysconfdir}/corosync
/corosync.conf.example.udpu
139 %{_sysconfdir}/dbus
-1/system.d
/corosync
-signals.conf
142 %{_datadir}/snmp
/mibs
/COROSYNC
-MIB.txt
144 %{_initrddir}/corosync
145 %{_initrddir}/corosync
-notifyd
146 %dir %{_libexecdir}/lcrso
147 %{_libexecdir}/lcrso
/coroparse.lcrso
148 %{_libexecdir}/lcrso
/objdb.lcrso
149 %{_libexecdir}/lcrso
/service_cfg.lcrso
150 %{_libexecdir}/lcrso
/service_cpg.lcrso
151 %{_libexecdir}/lcrso
/service_evs.lcrso
152 %{_libexecdir}/lcrso
/service_confdb.lcrso
153 %{_libexecdir}/lcrso
/service_pload.lcrso
154 %{_libexecdir}/lcrso
/quorum_votequorum.lcrso
155 %{_libexecdir}/lcrso
/quorum_testquorum.lcrso
156 %{_libexecdir}/lcrso
/vsf_quorum.lcrso
157 %{_libexecdir}/lcrso
/vsf_ykd.lcrso
159 %{_libexecdir}/lcrso
/service_wd.lcrso
161 %if %{with monitoring}
162 %{_libexecdir}/lcrso
/service_mon.lcrso
164 %dir %{_localstatedir}/lib
/corosync
165 %dir %{_localstatedir}/log
/cluster
166 %{_mandir}/man8
/corosync_overview
.8*
167 %{_mandir}/man8
/corosync
.8*
168 %{_mandir}/man8
/corosync
-blackbox
.8*
169 %{_mandir}/man8
/corosync
-objctl
.8*
170 %{_mandir}/man8
/corosync
-keygen
.8*
171 %{_mandir}/man8
/corosync
-cfgtool
.8*
172 %{_mandir}/man8
/corosync
-cpgtool
.8*
173 %{_mandir}/man8
/corosync
-fplay
.8*
174 %{_mandir}/man8
/corosync
-pload
.8*
175 %{_mandir}/man8
/corosync
-notifyd
.8*
176 %{_mandir}/man8
/corosync
-quorumtool
.8*
177 %{_mandir}/man5
/corosync.conf
.5*
180 # optional testagent rpm
182 %if %{with testagents}
184 %package -n corosync
-testagents
185 Summary: The Corosync Cluster Engine Test Agents
186 Group: Development
/Libraries
187 Requires: %{name} = %{version}-%{release}
189 %description -n corosync
-testagents
190 This package contains corosync
test agents.
192 %files -n corosync
-testagents
193 %defattr(755,root
,root
,-)
194 %{_datadir}/corosync
/tests
/mem_leak_test.sh
195 %{_datadir}/corosync
/tests
/net_breaker.sh
196 %{_bindir}/cpg_test_agent
197 %{_bindir}/confdb_test_agent
198 %{_bindir}/sam_test_agent
199 %{_bindir}/votequorum_test_agent
200 %{_libexecdir}/lcrso
/service_syncv2.lcrso
206 %package -n corosynclib
207 Summary: The Corosync Cluster Engine Libraries
208 Group: System Environment
/Libraries
209 Requires: %{name} = %{version}-%{release}
211 %description -n corosynclib
212 This package contains corosync libraries.
214 %files -n corosynclib
215 %defattr(-,root
,root
,-)
217 %{_libdir}/libcfg.so.
*
218 %{_libdir}/libcpg.so.
*
219 %{_libdir}/libconfdb.so.
*
220 %{_libdir}/libevs.so.
*
221 %{_libdir}/libtotem_pg.so.
*
222 %{_libdir}/liblogsys.so.
*
223 %{_libdir}/libcoroipcc.so.
*
224 %{_libdir}/libcoroipcs.so.
*
225 %{_libdir}/libquorum.so.
*
226 %{_libdir}/libvotequorum.so.
*
227 %{_libdir}/libpload.so.
*
228 %{_libdir}/libsam.so.
*
230 %post -n corosynclib
-p
/sbin
/ldconfig
232 %postun -n corosynclib
-p
/sbin
/ldconfig
234 %package -n corosynclib
-devel
235 Summary: The Corosync Cluster Engine Development Kit
236 Group: Development
/Libraries
237 Requires: corosynclib
= %{version}-%{release}
239 Provides: corosync
-devel
= %{version}
240 Obsoletes
: corosync
-devel
< 0.92-7
242 %description -n corosynclib
-devel
243 This package contains include files and man pages used to develop using
244 The Corosync Cluster Engine APIs.
246 %files -n corosynclib
-devel
247 %defattr(-,root
,root
,-)
248 %doc LICENSE README.devmap
249 %dir %{_includedir}/corosync
/
250 %{_includedir}/corosync
/cs_config.h
251 %{_includedir}/corosync
/corodefs.h
252 %{_includedir}/corosync
/coroipc_types.h
253 %{_includedir}/corosync
/coroipcs.h
254 %{_includedir}/corosync
/coroipcc.h
255 %{_includedir}/corosync
/cfg.h
256 %{_includedir}/corosync
/confdb.h
257 %{_includedir}/corosync
/corotypes.h
258 %{_includedir}/corosync
/cpg.h
259 %{_includedir}/corosync
/evs.h
260 %{_includedir}/corosync
/hdb.h
261 %{_includedir}/corosync
/list.h
262 %{_includedir}/corosync
/mar_gen.h
263 %{_includedir}/corosync
/sam.h
264 %{_includedir}/corosync
/swab.h
265 %{_includedir}/corosync
/quorum.h
266 %{_includedir}/corosync
/votequorum.h
267 %dir %{_includedir}/corosync
/totem
/
268 %{_includedir}/corosync
/totem
/coropoll.h
269 %{_includedir}/corosync
/totem
/totem.h
270 %{_includedir}/corosync
/totem
/totemip.h
271 %{_includedir}/corosync
/totem
/totempg.h
272 %dir %{_includedir}/corosync
/lcr
/
273 %{_includedir}/corosync
/lcr
/lcr_ckpt.h
274 %{_includedir}/corosync
/lcr
/lcr_comp.h
275 %{_includedir}/corosync
/lcr
/lcr_ifact.h
276 %dir %{_includedir}/corosync
/engine
277 %{_includedir}/corosync
/engine
/config.h
278 %{_includedir}/corosync
/engine
/coroapi.h
279 %{_includedir}/corosync
/engine
/logsys.h
280 %{_includedir}/corosync
/engine
/objdb.h
281 %{_includedir}/corosync
/engine
/quorum.h
284 %{_libdir}/libconfdb.so
286 %{_libdir}/libtotem_pg.so
287 %{_libdir}/liblogsys.so
288 %{_libdir}/libcoroipcc.so
289 %{_libdir}/libcoroipcs.so
290 %{_libdir}/libquorum.so
291 %{_libdir}/libvotequorum.so
292 %{_libdir}/libpload.so
294 %{_libdir}/pkgconfig
/*.pc
295 %{_mandir}/man3
/cpg_
*3*
296 %{_mandir}/man3
/evs_
*3*
297 %{_mandir}/man3
/confdb_
*3*
298 %{_mandir}/man3
/votequorum_
*3*
299 %{_mandir}/man3
/sam_
*3*
300 %{_mandir}/man8
/cpg_overview
.8*
301 %{_mandir}/man8
/evs_overview
.8*
302 %{_mandir}/man8
/confdb_overview
.8*
303 %{_mandir}/man8
/logsys_overview
.8*
304 %{_mandir}/man8
/votequorum_overview
.8*
305 %{_mandir}/man8
/coroipc_overview
.8*
306 %{_mandir}/man8
/sam_overview
.8*
309 * @date@ Autotools generated version
<nobody@nowhere.org
> - @version@
-1-@numcomm@.@alphatag@.@dirty@
310 - Autotools generated version