]>
Commit | Line | Data |
---|---|---|
ad5b8def ER |
1 | # TODO |
2 | # - filterout fix needed: | |
3 | # ./.libs/ipmilan.so: undefined reference to `stonith_free_hostlist' | |
4 | # ./.libs/ipmilan.so: undefined reference to `PILCallLog' | |
5 | # collect2: ld returned 1 exit status | |
6 | # gmake[4]: *** [ipmilantest] Error 1 | |
7 | # gmake[4]: Leaving directory `/home/users/glen/rpm/BUILD.x86_64-linux/cluster-glue-1.0.2-rc2/lib/plugins/stonith' | |
8 | # - pld deps for "docbook-dtds" | |
6badcd29 ER |
9 | %define subver rc2 |
10 | %define rel 0.1 | |
11 | Summary: Reusable cluster components | |
12 | Name: cluster-glue | |
13 | Version: 1.0.2 | |
14 | Release: 0.%{subver}.%{rel} | |
ad5b8def | 15 | License: GPL v2+ and LGPL v2+ |
6badcd29 | 16 | Group: Base |
ad5b8def | 17 | URL: http://www.clusterlabs.org/ |
6badcd29 ER |
18 | Source0: http://www.linux-ha.org/w/images/3/3d/Cluster-glue-%{version}-%{subver}.tar.bz2 |
19 | # Source0-md5: 1f83b6bd83d9cae5310c32d14fecf2fd | |
20 | BuildRequires: OpenIPMI-devel | |
21 | BuildRequires: autoconf | |
22 | BuildRequires: automake | |
23 | BuildRequires: bzip2-devel | |
24 | BuildRequires: curl-devel | |
25 | #BuildRequires: docbook-dtds | |
26 | BuildRequires: docbook-style-xsl | |
27 | BuildRequires: glib2-devel | |
28 | BuildRequires: libltdl-devel | |
29 | BuildRequires: libnet-devel | |
30 | BuildRequires: libstdc++-devel | |
31 | BuildRequires: libtool | |
32 | BuildRequires: libuuid-devel | |
33 | BuildRequires: libxml2-devel | |
34 | BuildRequires: libxslt | |
35 | BuildRequires: net-snmp-devel >= 5.4 | |
36 | BuildRequires: openhpi-devel | |
37 | BuildRequires: openssl-devel | |
38 | BuildRequires: pkgconfig | |
39 | BuildRequires: python-devel | |
40 | BuildRequires: which | |
41 | Requires: perl-TimeDate | |
42 | # Directives to allow upgrade from combined heartbeat packages | |
43 | Provides: heartbeat-pils = 3.0.0-1 | |
44 | Provides: heartbeat-stonith = 3.0.0-1 | |
45 | Obsoletes: heartbeat-common | |
46 | Obsoletes: heartbeat-pils < 3.0.0-1 | |
47 | Obsoletes: heartbeat-stonith < 3.0.0-1 | |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
49 | ||
ad5b8def ER |
50 | %define filterout_ld -Wl,--as-needed |
51 | ||
6badcd29 ER |
52 | %description |
53 | A collection of common tools that are useful for writing cluster | |
54 | managers such as Pacemaker. Provides a local resource manager that | |
55 | understands the OCF and LSB standards, and an interface to common | |
56 | STONITH devices. | |
57 | ||
58 | %package libs | |
59 | Summary: Reusable cluster libraries | |
60 | Group: Development/Libraries | |
61 | Requires: %{name} = %{version}-%{release} | |
62 | Obsoletes: libheartbeat2 | |
63 | ||
64 | %description libs | |
65 | A collection of libraries that are useful for writing cluster managers | |
66 | such as Pacemaker. | |
67 | ||
68 | %package libs-devel | |
69 | Summary: Headers and libraries for writing cluster managers | |
70 | Group: Development/Libraries | |
71 | Requires: %{name} = %{version}-%{release} | |
72 | Requires: %{name}-libs = %{version}-%{release} | |
73 | Obsoletes: libheartbeat-devel | |
74 | ||
75 | %description libs-devel | |
76 | Headers and shared libraries for a useful for writing cluster managers | |
77 | such as Pacemaker. | |
78 | ||
79 | %prep | |
80 | %setup -q -n %{name}-%{version}-%{subver} | |
81 | ||
82 | %build | |
83 | %{__libtoolize} | |
84 | %{__aclocal} | |
85 | %{__autoheader} | |
86 | %{__automake} | |
87 | %{__autoconf} | |
6badcd29 | 88 | %configure \ |
ad5b8def | 89 | --with-initdir=/etc/rc.d/init.d \ |
6badcd29 ER |
90 | --enable-fatal-warnings=yes \ |
91 | --with-daemon-group=haclient \ | |
92 | --with-daemon-user=hacluster\ | |
93 | --docdir=%{_docdir}/%{name}-%{version} | |
ad5b8def | 94 | %{__make} -j1 |
6badcd29 ER |
95 | |
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | %{__make} install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
101 | ## tree fix up | |
102 | # Dont package static libs | |
103 | find $RPM_BUILD_ROOT -name '*.a' -exec rm {} \; | |
104 | find $RPM_BUILD_ROOT -name '*.la' -exec rm {} \; | |
105 | ||
ad5b8def ER |
106 | #%{_docdir}/cluster-glue-1.0.2/stonith/README.bladehpi |
107 | ||
6badcd29 ER |
108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %post libs -p /sbin/ldconfig | |
112 | %postun libs -p /sbin/ldconfig | |
113 | ||
114 | %files | |
115 | %defattr(644,root,root,755) | |
ad5b8def ER |
116 | %doc AUTHORS logd/logd.cf doc/stonith/README* |
117 | %attr(754,root,root) /etc/rc.d/init.d/logd | |
118 | ||
119 | %attr(755,root,root) %{_sbindir}/ha_logger | |
120 | %attr(755,root,root) %{_sbindir}/hb_report | |
121 | %attr(755,root,root) %{_sbindir}/lrmadmin | |
122 | %attr(755,root,root) %{_sbindir}/meatclient | |
123 | %attr(755,root,root) %{_sbindir}/stonith | |
124 | %attr(755,root,root) %{_sbindir}/sbd | |
125 | %{_mandir}/man1/* | |
126 | %{_mandir}/man8/* | |
127 | ||
128 | %dir %{_datadir}/%{name} | |
129 | %{_datadir}/%{name}/ha_cf_support.sh | |
130 | %{_datadir}/%{name}/openais_conf_support.sh | |
131 | %{_datadir}/%{name}/utillib.sh | |
132 | %{_datadir}/%{name}/combine-logs.pl | |
133 | %{_datadir}/%{name}/ha_log.sh | |
134 | ||
135 | %dir %{_libdir}/heartbeat | |
136 | %dir %{_libdir}/heartbeat/plugins | |
137 | %dir %{_libdir}/heartbeat/plugins/RAExec | |
138 | %dir %{_libdir}/heartbeat/plugins/InterfaceMgr | |
139 | %{_libdir}/heartbeat/lrmd | |
140 | %{_libdir}/heartbeat/ha_logd | |
141 | %{_libdir}/heartbeat/plugins/RAExec/*.so | |
142 | %{_libdir}/heartbeat/plugins/InterfaceMgr/*.so | |
143 | ||
144 | %dir %{_libdir}/stonith | |
145 | %dir %{_libdir}/stonith/plugins | |
146 | %dir %{_libdir}/stonith/plugins/stonith2 | |
147 | %{_libdir}/stonith/plugins/external | |
148 | %{_libdir}/stonith/plugins/stonith2/*.so | |
149 | %{_libdir}/stonith/plugins/stonith2/*.py* | |
150 | %{_libdir}/stonith/plugins/xen0-ha-dom0-stonith-helper | |
151 | ||
152 | %dir %{_var}/lib/heartbeat | |
153 | %dir %{_var}/lib/heartbeat/cores | |
154 | %dir %attr(700,root,root) %{_var}/lib/heartbeat/cores/root | |
155 | %dir %attr(700,nobody,nobody) %{_var}/lib/heartbeat/cores/nobody | |
156 | %dir %attr(700,hacluster,haclient) %{_var}/lib/heartbeat/cores/hacluster | |
157 | ||
158 | %files libs | |
159 | %defattr(644,root,root,755) | |
160 | %attr(755,root,root) %{_libdir}/lib*.so.* | |
161 | ||
162 | %files libs-devel | |
163 | %defattr(644,root,root,755) | |
164 | %{_includedir}/clplumbing | |
165 | %{_includedir}/heartbeat | |
166 | %{_includedir}/stonith | |
167 | %{_includedir}/pils | |
168 | ||
169 | %{_libdir}/lib*.so | |
170 | ||
171 | %dir %{_libdir}/heartbeat | |
172 | %dir %{_libdir}/heartbeat/plugins | |
173 | %dir %{_libdir}/heartbeat/plugins/test | |
174 | %{_libdir}/heartbeat/ipctest | |
175 | %{_libdir}/heartbeat/ipctransientclient | |
176 | %{_libdir}/heartbeat/ipctransientserver | |
177 | %{_libdir}/heartbeat/transient-test.sh | |
178 | %{_libdir}/heartbeat/base64_md5_test | |
179 | %{_libdir}/heartbeat/logtest | |
180 | %{_libdir}/heartbeat/plugins/test/test.so | |
181 | ||
182 | %dir %{_datadir}/%{name} | |
183 | %{_datadir}/%{name}/lrmtest |