]> git.proxmox.com Git - mirror_corosync.git/blame - corosync.spec.in
Add a simple man page for corosync
[mirror_corosync.git] / corosync.spec.in
CommitLineData
47b9e296 1%global alphatag @alphatag@
b5fc4494 2
85fb6472
AS
3
4# Conditionals
5# Invoke "rpmbuild --without <feature>" or "rpmbuild --with <feature>"
6# to disable or enable specific features
7%bcond_with testagents
8
b5fc4494
FDN
9Name: corosync
10Summary: The Corosync Cluster Engine and Application Programming Interfaces
11Version: @version@
12Release: 1%{?alphatag:.%{alphatag}}%{?dist}
13License: BSD
14Group: System Environment/Base
15URL: http://www.openais.org
47b9e296 16Source0: http://developer.osdl.org/dev/openais/downloads/%{name}-%{version}/%{name}-%{version}.tar.gz
b5fc4494
FDN
17
18# Runtime bits
19Requires: corosynclib = %{version}-%{release}
20Requires(pre): /usr/sbin/useradd
21Requires(post): /sbin/chkconfig
22Requires(preun): /sbin/chkconfig
23Conflicts: openais <= 0.89, openais-devel <= 0.89
24
47b9e296
FDN
25# Build bits
26
b5fc4494
FDN
27%define buildtrunk 0
28%{?_with_buildtrunk: %define buildtrunk 1}
29
30%if %{buildtrunk}
31BuildRequires: autoconf automake
32%endif
33BuildRequires: nss-devel
15f3bc84 34BuildRequires: libibverbs-devel librdmacm-devel
b5fc4494
FDN
35
36BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
37
38%prep
47b9e296 39%setup -q -n %{name}-%{version}
b5fc4494 40
583eb6ae 41%build
b5fc4494
FDN
42%if %{buildtrunk}
43./autogen.sh
44%endif
45
15f3bc84
FDN
46export ibverbs_CFLAGS=-I/usr/include/infiniband \
47export ibverbs_LIBS=-libverbs \
48export rdmacm_CFLAGS=-I/usr/include/rdma \
49export rdmacm_LIBS=-lrdmacm \
50%{configure} \
51 --enable-nss \
85fb6472 52%if %{with testagents}
45fc3a51 53 --enable-testagents \
85fb6472 54%endif
dac5df7d 55 --enable-rdma \
6bae61d8 56 --with-initddir=%{_initrddir}
b5fc4494 57
b5fc4494
FDN
58make %{_smp_mflags}
59
60%install
61rm -rf %{buildroot}
62
63make install DESTDIR=%{buildroot}
b5fc4494
FDN
64
65## tree fixup
66# drop static libs
67rm -f %{buildroot}%{_libdir}/*.a
68# drop docs and html docs for now
69rm -rf %{buildroot}%{_docdir}/*
70
71%clean
72rm -rf %{buildroot}
73
6aad39be 74%description
b5fc4494
FDN
75This package contains the Corosync Cluster Engine Executive, several default
76APIs and libraries, default configuration files, and an init script.
77
78%post
583eb6ae
SD
79if [ $1 -eq 1 ]; then
80 /sbin/chkconfig --add corosync || :
81fi
b5fc4494
FDN
82
83%preun
84if [ $1 -eq 0 ]; then
85 /sbin/service corosync stop &>/dev/null || :
86 /sbin/chkconfig --del corosync || :
87fi
88
6aad39be 89%files
b5fc4494
FDN
90%defattr(-,root,root,-)
91%doc LICENSE SECURITY
92%{_sbindir}/corosync
93%{_sbindir}/corosync-keygen
94%{_sbindir}/corosync-objctl
95%{_sbindir}/corosync-cfgtool
96%{_sbindir}/corosync-fplay
97%{_sbindir}/corosync-pload
15f3bc84
FDN
98%{_sbindir}/corosync-cpgtool
99%{_sbindir}/corosync-quorumtool
45fc3a51 100%{_bindir}/corosync-blackbox
b446d4e9 101%dir %{_sysconfdir}/corosync
b7ebf110 102%dir %{_sysconfdir}/corosync/service.d
b446d4e9
FDN
103%dir %{_sysconfdir}/corosync/uidgid.d
104%config(noreplace) %{_sysconfdir}/corosync/corosync.conf.example
6bae61d8 105%{_initrddir}/corosync
b5fc4494
FDN
106%dir %{_libexecdir}/lcrso
107%{_libexecdir}/lcrso/coroparse.lcrso
108%{_libexecdir}/lcrso/objdb.lcrso
109%{_libexecdir}/lcrso/service_cfg.lcrso
110%{_libexecdir}/lcrso/service_cpg.lcrso
111%{_libexecdir}/lcrso/service_evs.lcrso
112%{_libexecdir}/lcrso/service_confdb.lcrso
113%{_libexecdir}/lcrso/service_pload.lcrso
114%{_libexecdir}/lcrso/quorum_votequorum.lcrso
115%{_libexecdir}/lcrso/quorum_testquorum.lcrso
116%{_libexecdir}/lcrso/vsf_quorum.lcrso
117%{_libexecdir}/lcrso/vsf_ykd.lcrso
b446d4e9 118%dir %{_localstatedir}/lib/corosync
b5fc4494
FDN
119%{_mandir}/man8/corosync_overview.8*
120%{_mandir}/man8/corosync-objctl.8*
52632075 121%{_mandir}/man8/corosync-keygen.8*
de317d57 122%{_mandir}/man8/corosync-cfgtool.8*
b7ed8064 123%{_mandir}/man8/corosync-cpgtool.8*
54fe60a6 124%{_mandir}/man8/corosync-fplay.8*
3a2771d0 125%{_mandir}/man8/corosync-pload.8*
d655a79c 126%{_mandir}/man8/corosync-quorumtool.8*
b5fc4494
FDN
127%{_mandir}/man5/corosync.conf.5*
128
85fb6472
AS
129
130# optional testagent rpm
131#
132%if %{with testagents}
133
134%package -n corosync-testagents
135Summary: The Corosync Cluster Engine Test Agents
136Group: Development/Libraries
137Requires: %{name} = %{version}-%{release}
138
139%description -n corosync-testagents
140This package contains corosync test agents.
141
142%files -n corosync-testagents
143%defattr(755,root,root,-)
144%{_datadir}/corosync/tests/mem_leak_test.sh
145%{_datadir}/corosync/tests/net_breaker.sh
146%{_bindir}/cpg_test_agent
1cdad310
AS
147%{_bindir}/confdb_test_agent
148%{_bindir}/sam_test_agent
149%{_bindir}/votequorum_test_agent
150%{_libexecdir}/lcrso/service_syncv2.lcrso
85fb6472
AS
151
152%endif
153
154# library
155#
b5fc4494
FDN
156%package -n corosynclib
157Summary: The Corosync Cluster Engine Libraries
158Group: System Environment/Libraries
47b9e296 159Requires: %{name} = %{version}-%{release}
b5fc4494
FDN
160
161%description -n corosynclib
162This package contains corosync libraries.
163
164%files -n corosynclib
165%defattr(-,root,root,-)
166%doc LICENSE
167%{_libdir}/libcfg.so.*
168%{_libdir}/libcpg.so.*
169%{_libdir}/libconfdb.so.*
170%{_libdir}/libevs.so.*
171%{_libdir}/libtotem_pg.so.*
172%{_libdir}/liblogsys.so.*
173%{_libdir}/libcoroipcc.so.*
174%{_libdir}/libcoroipcs.so.*
175%{_libdir}/libquorum.so.*
176%{_libdir}/libvotequorum.so.*
177%{_libdir}/libpload.so.*
47ae82b0 178%{_libdir}/libsam.so.*
b5fc4494
FDN
179
180%post -n corosynclib -p /sbin/ldconfig
181
182%postun -n corosynclib -p /sbin/ldconfig
183
184%package -n corosynclib-devel
185Summary: The Corosync Cluster Engine Development Kit
186Group: Development/Libraries
187Requires: corosynclib = %{version}-%{release}
188Requires: pkgconfig
189Provides: corosync-devel = %{version}
190Obsoletes: corosync-devel < 0.92-7
191
192%description -n corosynclib-devel
193This package contains include files and man pages used to develop using
194The Corosync Cluster Engine APIs.
195
196%files -n corosynclib-devel
197%defattr(-,root,root,-)
198%doc LICENSE README.devmap
199%dir %{_includedir}/corosync/
200%{_includedir}/corosync/cs_config.h
201%{_includedir}/corosync/corodefs.h
202%{_includedir}/corosync/coroipc_types.h
203%{_includedir}/corosync/coroipcs.h
204%{_includedir}/corosync/coroipcc.h
205%{_includedir}/corosync/cfg.h
206%{_includedir}/corosync/confdb.h
207%{_includedir}/corosync/corotypes.h
208%{_includedir}/corosync/cpg.h
209%{_includedir}/corosync/evs.h
210%{_includedir}/corosync/hdb.h
211%{_includedir}/corosync/list.h
212%{_includedir}/corosync/mar_gen.h
47ae82b0 213%{_includedir}/corosync/sam.h
b5fc4494
FDN
214%{_includedir}/corosync/swab.h
215%{_includedir}/corosync/quorum.h
216%{_includedir}/corosync/votequorum.h
217%dir %{_includedir}/corosync/totem/
218%{_includedir}/corosync/totem/coropoll.h
219%{_includedir}/corosync/totem/totem.h
220%{_includedir}/corosync/totem/totemip.h
221%{_includedir}/corosync/totem/totempg.h
222%dir %{_includedir}/corosync/lcr/
223%{_includedir}/corosync/lcr/lcr_ckpt.h
224%{_includedir}/corosync/lcr/lcr_comp.h
225%{_includedir}/corosync/lcr/lcr_ifact.h
226%dir %{_includedir}/corosync/engine
227%{_includedir}/corosync/engine/config.h
228%{_includedir}/corosync/engine/coroapi.h
229%{_includedir}/corosync/engine/logsys.h
230%{_includedir}/corosync/engine/objdb.h
231%{_includedir}/corosync/engine/quorum.h
232%{_libdir}/libcfg.so
233%{_libdir}/libcpg.so
234%{_libdir}/libconfdb.so
235%{_libdir}/libevs.so
236%{_libdir}/libtotem_pg.so
237%{_libdir}/liblogsys.so
238%{_libdir}/libcoroipcc.so
239%{_libdir}/libcoroipcs.so
240%{_libdir}/libquorum.so
241%{_libdir}/libvotequorum.so
242%{_libdir}/libpload.so
47ae82b0 243%{_libdir}/libsam.so
b5fc4494
FDN
244%{_libdir}/pkgconfig/*.pc
245%{_mandir}/man3/cpg_*3*
246%{_mandir}/man3/evs_*3*
247%{_mandir}/man3/confdb_*3*
248%{_mandir}/man3/votequorum_*3*
47ae82b0 249%{_mandir}/man3/sam_*3*
b5fc4494
FDN
250%{_mandir}/man8/cpg_overview.8*
251%{_mandir}/man8/evs_overview.8*
252%{_mandir}/man8/confdb_overview.8*
253%{_mandir}/man8/logsys_overview.8*
254%{_mandir}/man8/votequorum_overview.8*
255%{_mandir}/man8/coroipc_overview.8*
47ae82b0 256%{_mandir}/man8/sam_overview.8*
b5fc4494
FDN
257
258%changelog
259* @date@ Autotools generated version <nobody@nowhere.org> - @version@-1.@alphatag@
260- Autotools generated version