]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
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 | |
7 | # | |
8 | Summary: Corosync - OSI Certified implementation of a complete cluster engine | |
9 | Summary(pl.UTF-8): Corosync - implementacja silnika klastrowego certyfikowana przez OSI | |
10 | Name: corosync | |
11 | Version: 1.4.3 | |
12 | Release: 1 | |
13 | License: BSD | |
14 | Group: Base | |
15 | Source0: ftp://ftp:downloads@corosync.org/downloads/%{name}-%{version}/%{name}-%{version}.tar.gz | |
16 | # Source0-md5: 9e9943a7d9eb90fabd52d12b215c699c | |
17 | Patch0: %{name}-makefile.patch | |
18 | URL: http://www.corosync.org/ | |
19 | BuildRequires: autoconf >= 2.61 | |
20 | BuildRequires: automake | |
21 | %{?with_dbus:BuildRequires: dbus-devel} | |
22 | %{?with_apidocs:BuildRequires: doxygen} | |
23 | %if %{with rdma} | |
24 | BuildRequires: libibverbs-devel | |
25 | BuildRequires: librdmacm-devel | |
26 | %endif | |
27 | %{?with_snmp:BuildRequires: net-snmp-devel} | |
28 | BuildRequires: nss-devel | |
29 | BuildRequires: pkgconfig | |
30 | Requires: %{name}-libs = %{version}-%{release} | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | # short_service_name_get() is defined in executable | |
34 | %define skip_post_check_so libcoroipcs\.so.* | |
35 | ||
36 | %description | |
37 | The Corosync Cluster Engine is an OSI Certified implementation of a | |
38 | complete cluster engine. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Corosync Cluster Engine to implementacja pełnego silnika klastrowego | |
42 | certyfikowana przez OSI. | |
43 | ||
44 | %package libs | |
45 | Summary: Corosync Cluster Engine libraries | |
46 | Summary(pl.UTF-8): Biblioteki silnika klastrowego Corosync | |
47 | Group: Libraries | |
48 | ||
49 | %description libs | |
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 | |
54 | Ten pakiet zawiera biblioteki Corosync Cluster Engine - pełnego | |
55 | silnika klastrowego certyfikowanego przez OSI. | |
56 | ||
57 | %package devel | |
58 | Summary: Header files for Corosync libraries | |
59 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Corosync | |
60 | Group: Development/Libraries | |
61 | Requires: %{name}-libs = %{version}-%{release} | |
62 | Conflicts: openais-devel < 1.0 | |
63 | ||
64 | %description devel | |
65 | This package contains the include files used to develop using Corosync | |
66 | APIs. | |
67 | ||
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 | ||
72 | %package static | |
73 | Summary: Corosync static libraries | |
74 | Summary(pl.UTF-8): Statyczne biblioteki Corosync | |
75 | Group: Development/Libraries | |
76 | Requires: %{name}-devel = %{version}-%{release} | |
77 | ||
78 | %description static | |
79 | This package contains the Corosync static libraries. | |
80 | ||
81 | %description static -l pl.UTF-8 | |
82 | Ten pakiet zawiera statyczne biblioteki Corosync. | |
83 | ||
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 | ||
96 | %prep | |
97 | %setup -q | |
98 | %patch0 -p1 | |
99 | ||
100 | %build | |
101 | %{__aclocal} | |
102 | %{__autoconf} | |
103 | %{__autoheader} | |
104 | %{__automake} | |
105 | # options not yet supported: monitoring, watchdog, augeas | |
106 | %configure \ | |
107 | %{?with_dbus:--enable-dbus} \ | |
108 | --enable-nss \ | |
109 | %{?with_rdma:--enable-rdma} \ | |
110 | %{?with_snmp:--enable-snmp} \ | |
111 | --with-initddir=/etc/rc.d/init.d \ | |
112 | --with-lcrso-dir=%{_libdir}/lcrso | |
113 | ||
114 | %{__make} | |
115 | ||
116 | %{?with_apidocs:%{__make} doxygen} | |
117 | ||
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %{__make} install \ | |
122 | DESTDIR=$RPM_BUILD_ROOT | |
123 | ||
124 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/corosync | |
125 | ||
126 | sed -e 's/^/#/' $RPM_BUILD_ROOT%{_sysconfdir}/corosync/corosync.conf.example \ | |
127 | >$RPM_BUILD_ROOT%{_sysconfdir}/corosync/corosync.conf | |
128 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/corosync/corosync.conf.example* | |
129 | ||
130 | %{?with_apidocs:install doc/api/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3} | |
131 | ||
132 | %clean | |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %post libs -p /sbin/ldconfig | |
136 | %postun libs -p /sbin/ldconfig | |
137 | ||
138 | %files | |
139 | %defattr(644,root,root,755) | |
140 | %doc AUTHORS ChangeLog LICENSE README.devmap README.recovery SECURITY TODO conf/corosync.conf.example* | |
141 | %attr(754,root,root) /etc/rc.d/init.d/corosync | |
142 | %attr(754,root,root) /etc/rc.d/init.d/corosync-notifyd | |
143 | %dir %{_sysconfdir}/corosync | |
144 | %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/corosync/corosync.conf | |
145 | %attr(755,root,root) %{_bindir}/corosync-blackbox | |
146 | %attr(755,root,root) %{_sbindir}/corosync | |
147 | %attr(755,root,root) %{_sbindir}/corosync-cfgtool | |
148 | %attr(755,root,root) %{_sbindir}/corosync-cpgtool | |
149 | %attr(755,root,root) %{_sbindir}/corosync-fplay | |
150 | %attr(755,root,root) %{_sbindir}/corosync-keygen | |
151 | %attr(755,root,root) %{_sbindir}/corosync-notifyd | |
152 | %attr(755,root,root) %{_sbindir}/corosync-objctl | |
153 | %attr(755,root,root) %{_sbindir}/corosync-pload | |
154 | %attr(755,root,root) %{_sbindir}/corosync-quorumtool | |
155 | %attr(755,root,root) %{_libdir}/lcrso/*.lcrso | |
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* | |
163 | %{_mandir}/man8/corosync-notifyd.8* | |
164 | %{_mandir}/man8/corosync-objctl.8* | |
165 | %{_mandir}/man8/corosync-pload.8* | |
166 | %{_mandir}/man8/corosync-quorumtool.8* | |
167 | ||
168 | %files libs | |
169 | %defattr(644,root,root,755) | |
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 | |
186 | %attr(755,root,root) %{_libdir}/libsam.so.4.*.* | |
187 | %attr(755,root,root) %ghost %{_libdir}/libsam.so.4 | |
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 | |
194 | %dir %{_libdir}/lcrso | |
195 | ||
196 | %files devel | |
197 | %defattr(644,root,root,755) | |
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 | |
210 | %{_includedir}/corosync | |
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* | |
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 | |
250 | %{_libdir}/libsam.a | |
251 | %{_libdir}/libquorum.a | |
252 | %{_libdir}/libtotem_pg.a | |
253 | %{_libdir}/libvotequorum.a | |
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 |