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