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