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