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
19 Summary: The Corosync Cluster Engine and Application Programming Interfaces
21 Release: 1%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
23 Group: System Environment
/Base
24 URL: http
://ftp.corosync.org
25 Source0: ftp
://ftp
:user@ftp.corosync.org
/downloads
/%{name}-%{version}/%{name}-%{version}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}.tar.gz
28 Requires: corosynclib
= %{version}-%{release}
29 Requires(pre
): /usr
/sbin
/useradd
30 Requires(post
): /sbin
/chkconfig
31 Requires(preun
): /sbin
/chkconfig
32 Conflicts: openais
<= 0.89, openais
-devel
<= 0.89
37 %{?_with_buildtrunk: %define buildtrunk 1}
39 BuildRequires
: libqb
-devel
41 BuildRequires
: autoconf automake
44 BuildRequires
: nss
-devel
47 BuildRequires
: libibverbs
-devel librdmacm
-devel
50 BuildRequires
: net
-snmp
-devel
53 BuildRequires
: dbus
-devel
56 BuildRequires
: systemd
-units
62 BuildRoot: %
(mktemp
-ud
%{_tmppath}/%{name}-%{version}-%{release}-XXXXXX
)
65 %setup -q
-n
%{name}-%{version}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}
73 export ibverbs_CFLAGS
=-I
/usr
/include
/infiniband \
74 export ibverbs_LIBS
=-libverbs \
75 export rdmacm_CFLAGS
=-I
/usr
/include
/rdma \
76 export rdmacm_LIBS
=-lrdmacm \
84 %if %{with testagents}
90 %if %{with monitoring}
108 --with
-initddir
=%{_initrddir}
115 make install DESTDIR
=%{buildroot}
118 mkdir -p
-m
0700 %{buildroot}/%{_sysconfdir}/dbus
-1/system.d
119 install -m
644 %{_builddir}/%{name}-%{version}/conf/corosync-signals.conf %{buildroot}/%{_sysconfdir}/dbus
-1/system.d
/corosync
-signals.conf
124 rm -f
%{buildroot}%{_libdir}/*.a
125 # drop docs and html docs for now
126 rm -rf
%{buildroot}%{_docdir}/*
132 This package contains the Corosync Cluster Engine Executive
, several default
133 APIs and libraries
, default configuration files
, and an init script.
136 if [ $
1 -eq
1 ]; then
137 /sbin
/chkconfig
--add corosync ||
:
141 if [ $
1 -eq
0 ]; then
142 /sbin
/service corosync stop
&>/dev
/null ||
:
143 /sbin
/chkconfig
--del corosync ||
:
147 %defattr(-,root
,root
,-)
148 %doc LICENSE SECURITY
150 %{_sbindir}/corosync
-keygen
151 %{_sbindir}/corosync
-cmapctl
152 %{_sbindir}/corosync
-cfgtool
153 %{_sbindir}/corosync
-fplay
154 %{_sbindir}/corosync
-pload
155 %{_sbindir}/corosync
-cpgtool
156 %{_sbindir}/corosync
-quorumtool
157 %{_sbindir}/corosync
-notifyd
158 %{_bindir}/corosync
-blackbox
160 %{_bindir}/corosync
-xmlproc
161 %config(noreplace
) %{_sysconfdir}/corosync
/corosync.xml.example
162 %dir %{_datadir}/corosync
163 %dir %{_datadir}/corosync
/xml2conf.xsl
164 %{_mandir}/man8
/corosync
-xmlproc
.8*
165 %{_mandir}/man5
/corosync.xml
.5*
167 %dir %{_sysconfdir}/corosync
168 %dir %{_sysconfdir}/corosync
/uidgid.d
169 %config(noreplace
) %{_sysconfdir}/corosync
/corosync.conf.example
170 %config(noreplace
) %{_sysconfdir}/corosync
/corosync.conf.example.udpu
172 %{_sysconfdir}/dbus
-1/system.d
/corosync
-signals.conf
175 %{_datadir}/snmp
/mibs
/COROSYNC
-MIB.txt
178 %{_unitdir}/corosync.service
179 %{_unitdir}/corosync
-notifyd.service
181 %{_initrddir}/corosync
182 %{_initrddir}/corosync
-notifyd
184 %dir %{_localstatedir}/lib
/corosync
185 %dir %{_localstatedir}/log
/cluster
186 %{_mandir}/man8
/corosync_overview
.8*
187 %{_mandir}/man8
/corosync
.8*
188 %{_mandir}/man8
/corosync
-blackbox
.8*
189 %{_mandir}/man8
/corosync
-cmapctl
.8*
190 %{_mandir}/man8
/corosync
-keygen
.8*
191 %{_mandir}/man8
/corosync
-cfgtool
.8*
192 %{_mandir}/man8
/corosync
-cpgtool
.8*
193 %{_mandir}/man8
/corosync
-fplay
.8*
194 %{_mandir}/man8
/corosync
-pload
.8*
195 %{_mandir}/man8
/corosync
-notifyd
.8*
196 %{_mandir}/man8
/corosync
-quorumtool
.8*
197 %{_mandir}/man5
/corosync.conf
.5*
198 %{_mandir}/man5
/votequorum
.5*
200 # optional testagent rpm
202 %if %{with testagents}
204 %package -n corosync
-testagents
205 Summary: The Corosync Cluster Engine Test Agents
206 Group: Development
/Libraries
207 Requires: %{name} = %{version}-%{release}
209 %description -n corosync
-testagents
210 This package contains corosync
test agents.
212 %files -n corosync
-testagents
213 %defattr(755,root
,root
,-)
214 %{_datadir}/corosync
/tests
/mem_leak_test.sh
215 %{_datadir}/corosync
/tests
/net_breaker.sh
216 %{_datadir}/corosync
/tests
/cmap
-dispatch
-deadlock.sh
217 %{_datadir}/corosync
/tests
/shm_leak_audit.sh
218 %{_bindir}/cpg_test_agent
219 %{_bindir}/sam_test_agent
220 %{_bindir}/votequorum_test_agent
226 %package -n corosynclib
227 Summary: The Corosync Cluster Engine Libraries
228 Group: System Environment
/Libraries
229 Requires: %{name} = %{version}-%{release}
231 %description -n corosynclib
232 This package contains corosync libraries.
234 %files -n corosynclib
235 %defattr(-,root
,root
,-)
237 %{_libdir}/libcfg.so.
*
238 %{_libdir}/libcpg.so.
*
239 %{_libdir}/libcmap.so.
*
240 %{_libdir}/libevs.so.
*
241 %{_libdir}/libtotem_pg.so.
*
242 %{_libdir}/libquorum.so.
*
243 %{_libdir}/libvotequorum.so.
*
244 %{_libdir}/libpload.so.
*
245 %{_libdir}/libsam.so.
*
246 %{_libdir}/libcorosync_common.so.
*
248 %post -n corosynclib
-p
/sbin
/ldconfig
250 %postun -n corosynclib
-p
/sbin
/ldconfig
252 %package -n corosynclib
-devel
253 Summary: The Corosync Cluster Engine Development Kit
254 Group: Development
/Libraries
255 Requires: corosynclib
= %{version}-%{release}
257 Provides: corosync
-devel
= %{version}
258 Obsoletes
: corosync
-devel
< 0.92-7
260 %description -n corosynclib
-devel
261 This package contains include files and man pages used to develop using
262 The Corosync Cluster Engine APIs.
264 %files -n corosynclib
-devel
265 %defattr(-,root
,root
,-)
267 %dir %{_includedir}/corosync
/
268 %{_includedir}/corosync
/corodefs.h
269 %{_includedir}/corosync
/cfg.h
270 %{_includedir}/corosync
/cmap.h
271 %{_includedir}/corosync
/corotypes.h
272 %{_includedir}/corosync
/cpg.h
273 %{_includedir}/corosync
/evs.h
274 %{_includedir}/corosync
/hdb.h
275 %{_includedir}/corosync
/sam.h
276 %{_includedir}/corosync
/quorum.h
277 %{_includedir}/corosync
/votequorum.h
278 %dir %{_includedir}/corosync
/totem
/
279 %{_includedir}/corosync
/totem
/totem.h
280 %{_includedir}/corosync
/totem
/totemip.h
281 %{_includedir}/corosync
/totem
/totempg.h
284 %{_libdir}/libcmap.so
286 %{_libdir}/libtotem_pg.so
287 %{_libdir}/libquorum.so
288 %{_libdir}/libvotequorum.so
289 %{_libdir}/libpload.so
291 %{_libdir}/libcorosync_common.so
292 %{_libdir}/pkgconfig
/*.pc
293 %{_mandir}/man3
/cpg_
*3*
294 %{_mandir}/man3
/evs_
*3*
295 %{_mandir}/man3
/quorum_
*3*
296 %{_mandir}/man3
/votequorum_
*3*
297 %{_mandir}/man3
/sam_
*3*
298 %{_mandir}/man8
/cpg_overview
.8*
299 %{_mandir}/man8
/evs_overview
.8*
300 %{_mandir}/man8
/votequorum_overview
.8*
301 %{_mandir}/man8
/sam_overview
.8*
302 %{_mandir}/man3
/cmap_
*3*
303 %{_mandir}/man8
/cmap_overview
.8*
304 %{_mandir}/man8
/quorum_overview
.8*
307 * @date@ Autotools generated version
<nobody@nowhere.org
> - @version@
-1-@numcomm@.@alphatag@.@dirty@
308 - Autotools generated version