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