]> git.proxmox.com Git - mirror_corosync.git/blame - corosync.spec.in
Really corosync-keygen.8
[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
FDN
40
41%if %{buildtrunk}
42./autogen.sh
43%endif
44
15f3bc84
FDN
45export ibverbs_CFLAGS=-I/usr/include/infiniband \
46export ibverbs_LIBS=-libverbs \
47export rdmacm_CFLAGS=-I/usr/include/rdma \
48export rdmacm_LIBS=-lrdmacm \
49%{configure} \
50 --enable-nss \
85fb6472 51%if %{with testagents}
45fc3a51 52 --enable-testagents \
85fb6472 53%endif
dac5df7d 54 --enable-rdma \
6bae61d8 55 --with-initddir=%{_initrddir}
b5fc4494
FDN
56
57%build
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
79/sbin/chkconfig --add corosync || :
80
81%preun
82if [ $1 -eq 0 ]; then
83 /sbin/service corosync stop &>/dev/null || :
84 /sbin/chkconfig --del corosync || :
85fi
86
6aad39be 87%files
b5fc4494
FDN
88%defattr(-,root,root,-)
89%doc LICENSE SECURITY
90%{_sbindir}/corosync
91%{_sbindir}/corosync-keygen
92%{_sbindir}/corosync-objctl
93%{_sbindir}/corosync-cfgtool
94%{_sbindir}/corosync-fplay
95%{_sbindir}/corosync-pload
15f3bc84
FDN
96%{_sbindir}/corosync-cpgtool
97%{_sbindir}/corosync-quorumtool
45fc3a51 98%{_bindir}/corosync-blackbox
b446d4e9 99%dir %{_sysconfdir}/corosync
b7ebf110 100%dir %{_sysconfdir}/corosync/service.d
b446d4e9
FDN
101%dir %{_sysconfdir}/corosync/uidgid.d
102%config(noreplace) %{_sysconfdir}/corosync/corosync.conf.example
6bae61d8 103%{_initrddir}/corosync
b5fc4494
FDN
104%dir %{_libexecdir}/lcrso
105%{_libexecdir}/lcrso/coroparse.lcrso
106%{_libexecdir}/lcrso/objdb.lcrso
107%{_libexecdir}/lcrso/service_cfg.lcrso
108%{_libexecdir}/lcrso/service_cpg.lcrso
109%{_libexecdir}/lcrso/service_evs.lcrso
110%{_libexecdir}/lcrso/service_confdb.lcrso
111%{_libexecdir}/lcrso/service_pload.lcrso
112%{_libexecdir}/lcrso/quorum_votequorum.lcrso
113%{_libexecdir}/lcrso/quorum_testquorum.lcrso
114%{_libexecdir}/lcrso/vsf_quorum.lcrso
115%{_libexecdir}/lcrso/vsf_ykd.lcrso
b446d4e9 116%dir %{_localstatedir}/lib/corosync
b5fc4494
FDN
117%{_mandir}/man8/corosync_overview.8*
118%{_mandir}/man8/corosync-objctl.8*
52632075 119%{_mandir}/man8/corosync-keygen.8*
b5fc4494
FDN
120%{_mandir}/man5/corosync.conf.5*
121
85fb6472
AS
122
123# optional testagent rpm
124#
125%if %{with testagents}
126
127%package -n corosync-testagents
128Summary: The Corosync Cluster Engine Test Agents
129Group: Development/Libraries
130Requires: %{name} = %{version}-%{release}
131
132%description -n corosync-testagents
133This package contains corosync test agents.
134
135%files -n corosync-testagents
136%defattr(755,root,root,-)
137%{_datadir}/corosync/tests/mem_leak_test.sh
138%{_datadir}/corosync/tests/net_breaker.sh
139%{_bindir}/cpg_test_agent
1cdad310
AS
140%{_bindir}/confdb_test_agent
141%{_bindir}/sam_test_agent
142%{_bindir}/votequorum_test_agent
143%{_libexecdir}/lcrso/service_syncv2.lcrso
85fb6472
AS
144
145%endif
146
147# library
148#
b5fc4494
FDN
149%package -n corosynclib
150Summary: The Corosync Cluster Engine Libraries
151Group: System Environment/Libraries
47b9e296 152Requires: %{name} = %{version}-%{release}
b5fc4494
FDN
153
154%description -n corosynclib
155This package contains corosync libraries.
156
157%files -n corosynclib
158%defattr(-,root,root,-)
159%doc LICENSE
160%{_libdir}/libcfg.so.*
161%{_libdir}/libcpg.so.*
162%{_libdir}/libconfdb.so.*
163%{_libdir}/libevs.so.*
164%{_libdir}/libtotem_pg.so.*
165%{_libdir}/liblogsys.so.*
166%{_libdir}/libcoroipcc.so.*
167%{_libdir}/libcoroipcs.so.*
168%{_libdir}/libquorum.so.*
169%{_libdir}/libvotequorum.so.*
170%{_libdir}/libpload.so.*
47ae82b0 171%{_libdir}/libsam.so.*
b5fc4494
FDN
172
173%post -n corosynclib -p /sbin/ldconfig
174
175%postun -n corosynclib -p /sbin/ldconfig
176
177%package -n corosynclib-devel
178Summary: The Corosync Cluster Engine Development Kit
179Group: Development/Libraries
180Requires: corosynclib = %{version}-%{release}
181Requires: pkgconfig
182Provides: corosync-devel = %{version}
183Obsoletes: corosync-devel < 0.92-7
184
185%description -n corosynclib-devel
186This package contains include files and man pages used to develop using
187The Corosync Cluster Engine APIs.
188
189%files -n corosynclib-devel
190%defattr(-,root,root,-)
191%doc LICENSE README.devmap
192%dir %{_includedir}/corosync/
193%{_includedir}/corosync/cs_config.h
194%{_includedir}/corosync/corodefs.h
195%{_includedir}/corosync/coroipc_types.h
196%{_includedir}/corosync/coroipcs.h
197%{_includedir}/corosync/coroipcc.h
198%{_includedir}/corosync/cfg.h
199%{_includedir}/corosync/confdb.h
200%{_includedir}/corosync/corotypes.h
201%{_includedir}/corosync/cpg.h
202%{_includedir}/corosync/evs.h
203%{_includedir}/corosync/hdb.h
204%{_includedir}/corosync/list.h
205%{_includedir}/corosync/mar_gen.h
47ae82b0 206%{_includedir}/corosync/sam.h
b5fc4494
FDN
207%{_includedir}/corosync/swab.h
208%{_includedir}/corosync/quorum.h
209%{_includedir}/corosync/votequorum.h
210%dir %{_includedir}/corosync/totem/
211%{_includedir}/corosync/totem/coropoll.h
212%{_includedir}/corosync/totem/totem.h
213%{_includedir}/corosync/totem/totemip.h
214%{_includedir}/corosync/totem/totempg.h
215%dir %{_includedir}/corosync/lcr/
216%{_includedir}/corosync/lcr/lcr_ckpt.h
217%{_includedir}/corosync/lcr/lcr_comp.h
218%{_includedir}/corosync/lcr/lcr_ifact.h
219%dir %{_includedir}/corosync/engine
220%{_includedir}/corosync/engine/config.h
221%{_includedir}/corosync/engine/coroapi.h
222%{_includedir}/corosync/engine/logsys.h
223%{_includedir}/corosync/engine/objdb.h
224%{_includedir}/corosync/engine/quorum.h
225%{_libdir}/libcfg.so
226%{_libdir}/libcpg.so
227%{_libdir}/libconfdb.so
228%{_libdir}/libevs.so
229%{_libdir}/libtotem_pg.so
230%{_libdir}/liblogsys.so
231%{_libdir}/libcoroipcc.so
232%{_libdir}/libcoroipcs.so
233%{_libdir}/libquorum.so
234%{_libdir}/libvotequorum.so
235%{_libdir}/libpload.so
47ae82b0 236%{_libdir}/libsam.so
b5fc4494
FDN
237%{_libdir}/pkgconfig/*.pc
238%{_mandir}/man3/cpg_*3*
239%{_mandir}/man3/evs_*3*
240%{_mandir}/man3/confdb_*3*
241%{_mandir}/man3/votequorum_*3*
47ae82b0 242%{_mandir}/man3/sam_*3*
b5fc4494
FDN
243%{_mandir}/man8/cpg_overview.8*
244%{_mandir}/man8/evs_overview.8*
245%{_mandir}/man8/confdb_overview.8*
246%{_mandir}/man8/logsys_overview.8*
247%{_mandir}/man8/votequorum_overview.8*
248%{_mandir}/man8/coroipc_overview.8*
47ae82b0 249%{_mandir}/man8/sam_overview.8*
b5fc4494
FDN
250
251%changelog
252* @date@ Autotools generated version <nobody@nowhere.org> - @version@-1.@alphatag@
253- Autotools generated version