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