]>
Commit | Line | Data |
---|---|---|
ab0d79a4 | 1 | # Conditional build: |
d6ba335f | 2 | %bcond_with apidocs # build apidocs |
ab0d79a4 | 3 | |
4 | Summary: Corosync - OSI Certified implementation of a complete cluster engine | |
5 | Name: corosync | |
40252af1 | 6 | Version: 1.1.2 |
444e7b51 | 7 | Release: 1 |
ab0d79a4 | 8 | License: BSD |
9 | Group: Base | |
10 | Source0: http://devresources.linux-foundation.org/dev/openais/downloads/%{name}-%{version}/%{name}-%{version}.tar.gz | |
40252af1 | 11 | # Source0-md5: 03ea8d775b2855fd3c0a1ed5e7705a86 |
ab0d79a4 | 12 | URL: http://www.corosync.org/ |
13 | BuildRequires: autoconf | |
14 | BuildRequires: automake | |
40252af1 | 15 | BuildRequires: nss-devel |
ab0d79a4 | 16 | %{?with_apidocs:BuildRequires: doxygen} |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | The Corosync Cluster Engine is an OSI Certified implementation of a | |
21 | complete cluster engine. | |
22 | ||
23 | %package libs | |
24 | Summary: The corosync OSI Certified implementation of a complete cluster engine libraries | |
25 | Group: Libraries | |
26 | ||
27 | %description libs | |
28 | This package contains the corosync libraries. | |
29 | ||
30 | %package devel | |
31 | Summary: The corosync OSI Certified implementation of a complete cluster engine libraries development files | |
32 | Group: Development/Libraries | |
33 | Requires: %{name}-libs = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | This package contains the include files used to develop using corosync | |
37 | APIs. | |
38 | ||
39 | %package static | |
40 | Summary: The corosync OSI Certified implementation of a complete cluster engine static libraries | |
41 | Group: Development/Libraries | |
42 | Requires: %{name}-devel = %{version}-%{release} | |
43 | ||
44 | %description static | |
45 | This package contains the corosync static libraries. | |
46 | ||
47 | %prep | |
48 | %setup -q | |
49 | ||
50 | %build | |
51 | %{__aclocal} | |
52 | %{__autoconf} | |
53 | %{__automake} | |
54 | ||
55 | %configure \ | |
56 | --enable-nss \ | |
57 | --with-lcrso-dir=%{_libdir}/lcrso | |
58 | ||
59 | %{__make} | |
60 | ||
61 | %{?with_apidocs:%{__make} doxygen} | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | %{__make} install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT | |
67 | rm -rf $RPM_BUILD_ROOT/usr/share/doc/corosync | |
68 | ||
69 | mv $RPM_BUILD_ROOT/etc/corosync/corosync.conf{.example,} | |
70 | sed -i -e 's/\(^.*$\)/#\1/' $RPM_BUILD_ROOT/etc/corosync/corosync.conf | |
71 | ||
72 | %{?with_apidocs:install doc/api/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3} | |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
364ac3e0 | 77 | %post libs -p /sbin/ldconfig |
78 | %postun libs -p /sbin/ldconfig | |
79 | ||
ab0d79a4 | 80 | %files |
81 | %defattr(644,root,root,755) | |
82 | %doc AUTHORS CHANGELOG README.devmap README.recovery SECURITY | |
83 | %defattr(644,root,root,755) | |
84 | %dir %{_sysconfdir}/corosync | |
85 | %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/corosync/corosync.conf | |
86 | %attr(755,root,root) %{_sbindir}/corosync | |
87 | %attr(755,root,root) %{_sbindir}/corosync-cfgtool | |
88 | %attr(755,root,root) %{_sbindir}/corosync-fplay | |
89 | %attr(755,root,root) %{_sbindir}/corosync-keygen | |
90 | %attr(755,root,root) %{_sbindir}/corosync-objctl | |
91 | %attr(755,root,root) %{_sbindir}/corosync-pload | |
40252af1 | 92 | %attr(755,root,root) %{_sbindir}/corosync-cpgtool |
93 | %attr(755,root,root) %{_sbindir}/corosync-quorumtool | |
ab0d79a4 | 94 | %attr(755,root,root) %{_libdir}/lcrso/*.lcrso |
95 | %{_mandir}/man5/*.5* | |
96 | %{_mandir}/man8/*.8* | |
97 | ||
98 | %files libs | |
99 | %defattr(644,root,root,755) | |
100 | %dir %{_libdir}/lcrso | |
101 | %attr(755,root,root) %{_libdir}/libcfg.so.4.*.* | |
102 | %attr(755,root,root) %ghost %{_libdir}/libcfg.so.4 | |
103 | %attr(755,root,root) %{_libdir}/libconfdb.so.4.*.* | |
104 | %attr(755,root,root) %ghost %{_libdir}/libconfdb.so.4 | |
105 | %attr(755,root,root) %{_libdir}/libcoroipcc.so.4.*.* | |
106 | %attr(755,root,root) %ghost %{_libdir}/libcoroipcc.so.4 | |
107 | %attr(755,root,root) %{_libdir}/libcoroipcs.so.4.*.* | |
108 | %attr(755,root,root) %ghost %{_libdir}/libcoroipcs.so.4 | |
109 | %attr(755,root,root) %{_libdir}/libcpg.so.4.*.* | |
110 | %attr(755,root,root) %ghost %{_libdir}/libcpg.so.4 | |
111 | %attr(755,root,root) %{_libdir}/libevs.so.4.*.* | |
112 | %attr(755,root,root) %ghost %{_libdir}/libevs.so.4 | |
113 | %attr(755,root,root) %{_libdir}/liblogsys.so.4.*.* | |
114 | %attr(755,root,root) %ghost %{_libdir}/liblogsys.so.4 | |
115 | %attr(755,root,root) %{_libdir}/libpload.so.4.*.* | |
116 | %attr(755,root,root) %ghost %{_libdir}/libpload.so.4 | |
117 | %attr(755,root,root) %{_libdir}/libquorum.so.4.*.* | |
118 | %attr(755,root,root) %ghost %{_libdir}/libquorum.so.4 | |
119 | %attr(755,root,root) %{_libdir}/libtotem_pg.so.4.*.* | |
120 | %attr(755,root,root) %ghost %{_libdir}/libtotem_pg.so.4 | |
121 | %attr(755,root,root) %{_libdir}/libvotequorum.so.4.*.* | |
122 | %attr(755,root,root) %ghost %{_libdir}/libvotequorum.so.4 | |
123 | ||
124 | %files devel | |
125 | %defattr(644,root,root,755) | |
126 | %{_includedir}/corosync | |
127 | %{_libdir}/libcfg.so | |
128 | %{_libdir}/libconfdb.so | |
129 | %{_libdir}/libcoroipcc.so | |
130 | %{_libdir}/libcoroipcs.so | |
131 | %{_libdir}/libcpg.so | |
132 | %{_libdir}/libevs.so | |
133 | %{_libdir}/liblogsys.so | |
134 | %{_libdir}/libpload.so | |
135 | %{_libdir}/libquorum.so | |
136 | %{_libdir}/libtotem_pg.so | |
137 | %{_libdir}/libvotequorum.so | |
138 | %{_pkgconfigdir}/*.pc | |
139 | %{_mandir}/man3/*.3* | |
140 | ||
141 | %files static | |
142 | %defattr(644,root,root,755) | |
143 | %{_libdir}/libcfg.a | |
144 | %{_libdir}/libconfdb.a | |
145 | %{_libdir}/libcoroipcc.a | |
146 | %{_libdir}/libcoroipcs.a | |
147 | %{_libdir}/libcpg.a | |
148 | %{_libdir}/libevs.a | |
149 | %{_libdir}/liblcr.a | |
150 | %{_libdir}/liblogsys.a | |
151 | %{_libdir}/libpload.a | |
152 | %{_libdir}/libquorum.a | |
153 | %{_libdir}/libtotem_pg.a | |
154 | %{_libdir}/libvotequorum.a |