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