]>
Commit | Line | Data |
---|---|---|
a1f7a440 | 1 | # |
ab0d79a4 | 2 | # Conditional build: |
d6ba335f | 3 | %bcond_with apidocs # build apidocs |
2805ff24 JB |
4 | %bcond_with rdma # build with RDMA support |
5 | # | |
ab0d79a4 | 6 | Summary: Corosync - OSI Certified implementation of a complete cluster engine |
a1f7a440 | 7 | Summary(pl.UTF-8): Corosync - implementacja silnika klastrowego certyfikowana przez OSI |
ab0d79a4 | 8 | Name: corosync |
e7c18d27 | 9 | Version: 1.3.0 |
ee1ccba1 | 10 | Release: 1 |
ab0d79a4 | 11 | License: BSD |
12 | Group: Base | |
e7c18d27 | 13 | Source0: ftp://ftp:downloads@corosync.org/downloads/%{name}-%{version}/%{name}-%{version}.tar.gz |
14 | # Source0-md5: 66a527d668b0f908db89be26c83ca7d6 | |
ab0d79a4 | 15 | URL: http://www.corosync.org/ |
a1f7a440 | 16 | BuildRequires: autoconf >= 2.61 |
ab0d79a4 | 17 | BuildRequires: automake |
2805ff24 JB |
18 | %{?with_apidocs:BuildRequires: doxygen} |
19 | %if %{with rdma} | |
20 | BuildRequires: libibverbs-devel | |
21 | BuildRequires: librdmacm-devel | |
22 | %endif | |
40252af1 | 23 | BuildRequires: nss-devel |
9d8c645a | 24 | BuildRequires: pkgconfig |
a1f7a440 | 25 | Requires: %{name}-libs = %{version}-%{release} |
ab0d79a4 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
ee1ccba1 | 28 | # "Unresolved symbols found: clock_gettime" however -lrt is properly |
29 | # passed (or seems to me - alucard), corosync works well anyway | |
30 | %define skip_post_check_so libtotem_pg.so.4.0.0 | |
e7c18d27 | 31 | |
ab0d79a4 | 32 | %description |
33 | The Corosync Cluster Engine is an OSI Certified implementation of a | |
34 | complete cluster engine. | |
35 | ||
a1f7a440 JB |
36 | %description -l pl.UTF-8 |
37 | Corosync Cluster Engine to implementacja pełnego silnika klastrowego | |
38 | certyfikowana przez OSI. | |
39 | ||
ab0d79a4 | 40 | %package libs |
a1f7a440 JB |
41 | Summary: Corosync Cluster Engine libraries |
42 | Summary(pl.UTF-8): Biblioteki silnika klastrowego Corosync | |
ab0d79a4 | 43 | Group: Libraries |
44 | ||
45 | %description libs | |
a1f7a440 JB |
46 | This package contains the libraries of Corosync Cluster Engine, an OSI |
47 | Certified implementation of a complete cluster engine. | |
48 | ||
49 | %description libs -l pl.UTF-8 | |
a1e347d6 | 50 | Ten pakiet zawiera biblioteki Corosync Cluster Engine - pełnego |
51 | silnika klastrowego certyfikowanego przez OSI. | |
ab0d79a4 | 52 | |
53 | %package devel | |
a1f7a440 JB |
54 | Summary: Header files for Corosync libraries |
55 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Corosync | |
ab0d79a4 | 56 | Group: Development/Libraries |
57 | Requires: %{name}-libs = %{version}-%{release} | |
3398ab62 | 58 | Conflicts: openais-devel < 1.0 |
ab0d79a4 | 59 | |
60 | %description devel | |
a1f7a440 | 61 | This package contains the include files used to develop using Corosync |
ab0d79a4 | 62 | APIs. |
63 | ||
a1f7a440 JB |
64 | %description devel -l pl.UTF-8 |
65 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów z | |
66 | użyciem API Corosync. | |
67 | ||
ab0d79a4 | 68 | %package static |
a1f7a440 JB |
69 | Summary: Corosync static libraries |
70 | Summary(pl.UTF-8): Statyczne biblioteki Corosync | |
ab0d79a4 | 71 | Group: Development/Libraries |
72 | Requires: %{name}-devel = %{version}-%{release} | |
73 | ||
74 | %description static | |
a1f7a440 JB |
75 | This package contains the Corosync static libraries. |
76 | ||
77 | %description static -l pl.UTF-8 | |
78 | Ten pakiet zawiera statyczne biblioteki Corosync. | |
ab0d79a4 | 79 | |
80 | %prep | |
81 | %setup -q | |
82 | ||
83 | %build | |
84 | %{__aclocal} | |
85 | %{__autoconf} | |
a1f7a440 | 86 | %{__autoheader} |
ab0d79a4 | 87 | %{__automake} |
ab0d79a4 | 88 | %configure \ |
89 | --enable-nss \ | |
2805ff24 | 90 | %{?with_rdma:--enable-rdma} \ |
a1f7a440 | 91 | --with-initddir=/etc/rc.d/init.d \ |
ab0d79a4 | 92 | --with-lcrso-dir=%{_libdir}/lcrso |
93 | ||
94 | %{__make} | |
95 | ||
96 | %{?with_apidocs:%{__make} doxygen} | |
a1e347d6 | 97 | |
ab0d79a4 | 98 | %install |
99 | rm -rf $RPM_BUILD_ROOT | |
a1f7a440 | 100 | |
ab0d79a4 | 101 | %{__make} install \ |
102 | DESTDIR=$RPM_BUILD_ROOT | |
ab0d79a4 | 103 | |
a1e347d6 | 104 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/corosync |
a1f7a440 JB |
105 | |
106 | sed -e 's/^/#/' $RPM_BUILD_ROOT%{_sysconfdir}/corosync/corosync.conf.example \ | |
107 | >$RPM_BUILD_ROOT%{_sysconfdir}/corosync/corosync.conf | |
108 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/corosync/corosync.conf.example | |
ab0d79a4 | 109 | |
110 | %{?with_apidocs:install doc/api/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3} | |
111 | ||
112 | %clean | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
364ac3e0 | 115 | %post libs -p /sbin/ldconfig |
116 | %postun libs -p /sbin/ldconfig | |
117 | ||
ab0d79a4 | 118 | %files |
119 | %defattr(644,root,root,755) | |
e7c18d27 | 120 | %doc AUTHORS ChangeLog LICENSE README.devmap README.recovery SECURITY TODO |
a1f7a440 | 121 | %attr(754,root,root) /etc/rc.d/init.d/corosync |
ab0d79a4 | 122 | %dir %{_sysconfdir}/corosync |
123 | %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/corosync/corosync.conf | |
e7c18d27 | 124 | %attr(755,root,root) %{_bindir}/corosync-blackbox |
ab0d79a4 | 125 | %attr(755,root,root) %{_sbindir}/corosync |
126 | %attr(755,root,root) %{_sbindir}/corosync-cfgtool | |
a1f7a440 | 127 | %attr(755,root,root) %{_sbindir}/corosync-cpgtool |
ab0d79a4 | 128 | %attr(755,root,root) %{_sbindir}/corosync-fplay |
129 | %attr(755,root,root) %{_sbindir}/corosync-keygen | |
130 | %attr(755,root,root) %{_sbindir}/corosync-objctl | |
131 | %attr(755,root,root) %{_sbindir}/corosync-pload | |
40252af1 | 132 | %attr(755,root,root) %{_sbindir}/corosync-quorumtool |
ab0d79a4 | 133 | %attr(755,root,root) %{_libdir}/lcrso/*.lcrso |
a1f7a440 JB |
134 | %{_mandir}/man5/corosync.conf.5* |
135 | %{_mandir}/man8/corosync.8* | |
136 | %{_mandir}/man8/corosync-blackbox.8* | |
137 | %{_mandir}/man8/corosync-cfgtool.8* | |
138 | %{_mandir}/man8/corosync-cpgtool.8* | |
139 | %{_mandir}/man8/corosync-fplay.8* | |
140 | %{_mandir}/man8/corosync-keygen.8* | |
141 | %{_mandir}/man8/corosync-objctl.8* | |
142 | %{_mandir}/man8/corosync-pload.8* | |
143 | %{_mandir}/man8/corosync-quorumtool.8* | |
ab0d79a4 | 144 | |
145 | %files libs | |
146 | %defattr(644,root,root,755) | |
ab0d79a4 | 147 | %attr(755,root,root) %{_libdir}/libcfg.so.4.*.* |
148 | %attr(755,root,root) %ghost %{_libdir}/libcfg.so.4 | |
149 | %attr(755,root,root) %{_libdir}/libconfdb.so.4.*.* | |
150 | %attr(755,root,root) %ghost %{_libdir}/libconfdb.so.4 | |
151 | %attr(755,root,root) %{_libdir}/libcoroipcc.so.4.*.* | |
152 | %attr(755,root,root) %ghost %{_libdir}/libcoroipcc.so.4 | |
153 | %attr(755,root,root) %{_libdir}/libcoroipcs.so.4.*.* | |
154 | %attr(755,root,root) %ghost %{_libdir}/libcoroipcs.so.4 | |
155 | %attr(755,root,root) %{_libdir}/libcpg.so.4.*.* | |
156 | %attr(755,root,root) %ghost %{_libdir}/libcpg.so.4 | |
157 | %attr(755,root,root) %{_libdir}/libevs.so.4.*.* | |
158 | %attr(755,root,root) %ghost %{_libdir}/libevs.so.4 | |
159 | %attr(755,root,root) %{_libdir}/liblogsys.so.4.*.* | |
160 | %attr(755,root,root) %ghost %{_libdir}/liblogsys.so.4 | |
161 | %attr(755,root,root) %{_libdir}/libpload.so.4.*.* | |
162 | %attr(755,root,root) %ghost %{_libdir}/libpload.so.4 | |
1c7457c7 | 163 | %attr(755,root,root) %{_libdir}/libsam.so.4.*.* |
164 | %attr(755,root,root) %ghost %{_libdir}/libsam.so.4 | |
ab0d79a4 | 165 | %attr(755,root,root) %{_libdir}/libquorum.so.4.*.* |
166 | %attr(755,root,root) %ghost %{_libdir}/libquorum.so.4 | |
167 | %attr(755,root,root) %{_libdir}/libtotem_pg.so.4.*.* | |
168 | %attr(755,root,root) %ghost %{_libdir}/libtotem_pg.so.4 | |
169 | %attr(755,root,root) %{_libdir}/libvotequorum.so.4.*.* | |
170 | %attr(755,root,root) %ghost %{_libdir}/libvotequorum.so.4 | |
a1f7a440 | 171 | %dir %{_libdir}/lcrso |
ab0d79a4 | 172 | |
173 | %files devel | |
174 | %defattr(644,root,root,755) | |
a1f7a440 JB |
175 | %attr(755,root,root) %{_libdir}/libcfg.so |
176 | %attr(755,root,root) %{_libdir}/libconfdb.so | |
177 | %attr(755,root,root) %{_libdir}/libcoroipcc.so | |
178 | %attr(755,root,root) %{_libdir}/libcoroipcs.so | |
179 | %attr(755,root,root) %{_libdir}/libcpg.so | |
180 | %attr(755,root,root) %{_libdir}/libevs.so | |
181 | %attr(755,root,root) %{_libdir}/liblogsys.so | |
182 | %attr(755,root,root) %{_libdir}/libpload.so | |
183 | %attr(755,root,root) %{_libdir}/libsam.so | |
184 | %attr(755,root,root) %{_libdir}/libquorum.so | |
185 | %attr(755,root,root) %{_libdir}/libtotem_pg.so | |
186 | %attr(755,root,root) %{_libdir}/libvotequorum.so | |
ab0d79a4 | 187 | %{_includedir}/corosync |
a1f7a440 JB |
188 | %{_pkgconfigdir}/corosync.pc |
189 | %{_pkgconfigdir}/libcfg.pc | |
190 | %{_pkgconfigdir}/libconfdb.pc | |
191 | %{_pkgconfigdir}/libcoroipcc.pc | |
192 | %{_pkgconfigdir}/libcoroipcs.pc | |
193 | %{_pkgconfigdir}/libcpg.pc | |
194 | %{_pkgconfigdir}/libevs.pc | |
195 | %{_pkgconfigdir}/liblogsys.pc | |
196 | %{_pkgconfigdir}/libpload.pc | |
197 | %{_pkgconfigdir}/libquorum.pc | |
198 | %{_pkgconfigdir}/libsam.pc | |
199 | %{_pkgconfigdir}/libtotem_pg.pc | |
200 | %{_pkgconfigdir}/libvotequorum.pc | |
201 | %{_mandir}/man3/confdb_*.3* | |
202 | %{_mandir}/man3/cpg_*.3* | |
203 | %{_mandir}/man3/evs_*.3* | |
204 | %{_mandir}/man3/sam_*.3* | |
205 | %{_mandir}/man3/votequorum_*.3* | |
206 | # should be man7... | |
207 | %{_mandir}/man8/confdb_overview.8* | |
208 | %{_mandir}/man8/coroipc_overview.8* | |
209 | %{_mandir}/man8/corosync_overview.8* | |
210 | %{_mandir}/man8/cpg_overview.8* | |
211 | %{_mandir}/man8/evs_overview.8* | |
212 | %{_mandir}/man8/logsys_overview.8* | |
213 | %{_mandir}/man8/sam_overview.8* | |
214 | %{_mandir}/man8/votequorum_overview.8* | |
ab0d79a4 | 215 | |
216 | %files static | |
217 | %defattr(644,root,root,755) | |
218 | %{_libdir}/libcfg.a | |
219 | %{_libdir}/libconfdb.a | |
220 | %{_libdir}/libcoroipcc.a | |
221 | %{_libdir}/libcoroipcs.a | |
222 | %{_libdir}/libcpg.a | |
223 | %{_libdir}/libevs.a | |
224 | %{_libdir}/liblcr.a | |
225 | %{_libdir}/liblogsys.a | |
226 | %{_libdir}/libpload.a | |
1c7457c7 | 227 | %{_libdir}/libsam.a |
ab0d79a4 | 228 | %{_libdir}/libquorum.a |
229 | %{_libdir}/libtotem_pg.a | |
230 | %{_libdir}/libvotequorum.a |