]>
Commit | Line | Data |
---|---|---|
21400eec | 1 | # TODO: PLDify init script |
632ee324 | 2 | Summary: Service Availability Forum's Hardware Platform Interface (HPI) implementation |
2a4655e0 | 3 | Summary(pl.UTF-8): Implementacja HPI (Hardware Platform Interface) Service Availability Forum |
ec5858d3 | 4 | Name: openhpi |
34facee3 | 5 | Version: 3.8.0 |
152c45e0 | 6 | Release: 5 |
ec5858d3 | 7 | License: BSD |
21400eec JB |
8 | Group: Applications/System |
9 | Source0: http://downloads.sourceforge.net/openhpi/%{name}-%{version}.tar.gz | |
34facee3 | 10 | # Source0-md5: fffda3deea8a0d3671a72eea9d13a4df |
e6bbbf93 | 11 | Patch0: makefile_3.8.0.patch |
278c7ca6 | 12 | Patch1: %{name}-sh.patch |
add2f300 JB |
13 | Patch2: %{name}-proto.patch |
14 | Patch3: %{name}-rtas.patch | |
15 | Patch4: %{name}-c++.patch | |
16 | Patch5: %{name}-install.patch | |
e6bbbf93 | 17 | Patch6: %{name}-types.patch |
1970ccfd | 18 | Patch7: %{name}-config-echo.patch |
34facee3 | 19 | Patch8: ipmi.patch |
e6bbbf93 | 20 | Patch9: no-md2.patch |
b8d587fa | 21 | URL: http://www.openhpi.org/ |
ebe90188 | 22 | BuildRequires: OpenIPMI-devel >= 1.4.20 |
fa178c24 | 23 | BuildRequires: autoconf >= 2.57 |
ebe90188 | 24 | BuildRequires: automake >= 1:1.8 |
dd16388a | 25 | BuildRequires: curl-devel |
70911efe | 26 | BuildRequires: docbook-dtd41-sgml |
a4050f56 | 27 | BuildRequires: docbook-utils |
fa178c24 | 28 | BuildRequires: gcc >= 5:3.2.0 |
22a6af9c | 29 | BuildRequires: glib2-devel >= 1:2.12 |
dd16388a | 30 | BuildRequires: json-c-devel |
2a223882 | 31 | BuildRequires: libgcrypt-devel |
ec5858d3 | 32 | BuildRequires: libltdl-devel |
b1922010 JB |
33 | %ifarch ppc ppc64 |
34 | BuildRequires: librtas-devel | |
35 | %endif | |
a4050f56 | 36 | BuildRequires: libstdc++-devel |
632ee324 | 37 | BuildRequires: libtool |
ec5858d3 | 38 | BuildRequires: libuuid-devel |
08716c7a | 39 | BuildRequires: libxml2-devel >= 2.0 |
a4050f56 | 40 | BuildRequires: net-snmp-devel |
278c7ca6 | 41 | BuildRequires: openssl-devel |
5718b02a | 42 | BuildRequires: perl-tools-pod |
632ee324 | 43 | BuildRequires: pkgconfig |
34facee3 | 44 | BuildRequires: rabbitmq-c-devel |
a0f0b3a9 | 45 | BuildRequires: sqlite3-devel |
ebe90188 | 46 | BuildRequires: sysfsutils-devel >= 1.3.0-3 |
21400eec | 47 | Requires: %{name}-libs = %{version}-%{release} |
ec5858d3 AM |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
9f9ae340 JB |
50 | %define specflags -fno-strict-aliasing |
51 | ||
5718b02a JB |
52 | # oh_* symbols provided by openhpi |
53 | %define skip_post_check_so .*%{_libdir}/openhpi/lib.*.so.* | |
a0f0b3a9 | 54 | |
ec5858d3 AM |
55 | %description |
56 | OpenHPI is an open source project created with the intent of providing | |
632ee324 JB |
57 | an implementation of the Service Availability Forum's Hardware |
58 | Platform Interface (HPI). HPI provides a universal interface for | |
59 | creating resource system models, typically for chassis and rack based | |
60 | servers, but extendable for other problem domains such as clustering, | |
61 | virtualization and simulation. | |
62 | ||
7f481fde | 63 | %description -l pl.UTF-8 |
8912af1d | 64 | OpenHPI to otwarty projekt stworzony z zamiarem dostarczenia |
632ee324 | 65 | implementacji HPI (Hardware Platform Interface - interfejsu platformy |
7f481fde JR |
66 | sprzętowej) Service Availability Forum. HPI udostępnia uniwersalny |
67 | interfejs do tworzenia modeli systemów zasobów, zwykle dla serwerów | |
68 | w ramach i szafach, ale rozszerzalny dla innego rodzaju problemów, | |
632ee324 | 69 | takich jak klastrowanie, wirtualizacja czy symulacja. |
ec5858d3 | 70 | |
21400eec JB |
71 | %package libs |
72 | Summary: OpenHPI Toolkit libraries | |
73 | Summary(pl.UTF-8): Biblioteki OpenHPI | |
74 | Group: Libraries | |
22a6af9c | 75 | Requires: glib2 >= 1:2.12 |
21400eec JB |
76 | Conflicts: openhpi < 2.14.1 |
77 | ||
78 | %description libs | |
79 | OpenHPI Toolkit libraries. | |
80 | ||
81 | %description libs -l pl.UTF-8 | |
82 | Biblioteki OpenHPI. | |
83 | ||
ec5858d3 | 84 | %package devel |
632ee324 | 85 | Summary: Development part of OpenHPI Toolkit library |
2a4655e0 | 86 | Summary(pl.UTF-8): Programistyczna część biblioteki OpenHPI |
ec5858d3 | 87 | Group: Development/Libraries |
21400eec | 88 | Requires: %{name}-libs = %{version}-%{release} |
22a6af9c | 89 | Requires: glib2-devel >= 1:2.12 |
a4050f56 | 90 | Requires: libltdl-devel |
b1922010 JB |
91 | # for libosahpi |
92 | Requires: libstdc++-devel | |
93 | Requires: libuuid-devel | |
ec5858d3 AM |
94 | |
95 | %description devel | |
96 | Development part of OpenHPI library. | |
97 | ||
7f481fde JR |
98 | %description devel -l pl.UTF-8 |
99 | Programistyczna część biblioteki OpenHPI. | |
632ee324 | 100 | |
ec5858d3 | 101 | %package static |
632ee324 | 102 | Summary: Static OpenHPI library |
2a4655e0 | 103 | Summary(pl.UTF-8): Statyczna biblioteka OpenHPI |
ec5858d3 | 104 | Group: Development/Libraries |
fa178c24 | 105 | Requires: %{name}-devel = %{version}-%{release} |
ec5858d3 AM |
106 | |
107 | %description static | |
108 | Static OpenHPI Toolkit libraries. | |
109 | ||
7f481fde | 110 | %description static -l pl.UTF-8 |
632ee324 JB |
111 | Statyczna biblioteka OpenHPI. |
112 | ||
a4050f56 JB |
113 | %package plugin-ipmi |
114 | Summary: ipmi plugin for OpenHPI | |
2a4655e0 | 115 | Summary(pl.UTF-8): Wtyczka ipmi dla OpenHPI |
a4050f56 | 116 | Group: Libraries |
fa178c24 | 117 | Requires: %{name} = %{version}-%{release} |
ebe90188 | 118 | Requires: OpenIPMI >= 1.4.20 |
a4050f56 JB |
119 | |
120 | %description plugin-ipmi | |
121 | ipmi plugin for OpenHPI. | |
122 | ||
7f481fde | 123 | %description plugin-ipmi -l pl.UTF-8 |
a4050f56 JB |
124 | Wtyczka ipmi dla OpenHPI. |
125 | ||
126 | %package plugin-ipmidirect | |
127 | Summary: ipmidirect plugin for OpenHPI | |
2a4655e0 | 128 | Summary(pl.UTF-8): Wtyczka ipmidirect dla OpenHPI |
a4050f56 | 129 | Group: Libraries |
fa178c24 | 130 | Requires: %{name} = %{version}-%{release} |
a4050f56 JB |
131 | |
132 | %description plugin-ipmidirect | |
133 | ipmidirect plugin for OpenHPI. | |
134 | ||
7f481fde | 135 | %description plugin-ipmidirect -l pl.UTF-8 |
a4050f56 JB |
136 | Wtyczka ipmidirect dla OpenHPI. |
137 | ||
dd16388a JB |
138 | %package plugin-ov_rest |
139 | Summary: OV REST plugin for OpenHPI | |
140 | Summary(pl.UTF-8): Wtyczka OV REST dla OpenHPI | |
141 | Group: Libraries | |
142 | Requires: %{name} = %{version}-%{release} | |
143 | ||
144 | %description plugin-ov_rest | |
145 | OV REST plugin for OpenHPI. | |
146 | ||
147 | %description plugin-ov_rest -l pl.UTF-8 | |
148 | Wtyczka OV REST dla OpenHPI. | |
149 | ||
b1922010 JB |
150 | %package plugin-rtas |
151 | Summary: RTAS plugin for OpenHPI | |
152 | Summary(pl.UTF-8): Wtyczka RTAS dla OpenHPI | |
a4050f56 | 153 | Group: Libraries |
fa178c24 | 154 | Requires: %{name} = %{version}-%{release} |
9e626baf | 155 | Requires: lsvpd |
a4050f56 | 156 | |
b1922010 JB |
157 | %description plugin-rtas |
158 | RTAS plugin for OpenHPI. | |
a4050f56 | 159 | |
b1922010 JB |
160 | %description plugin-rtas -l pl.UTF-8 |
161 | Wtyczka RTAS dla OpenHPI. | |
a4050f56 | 162 | |
fa178c24 JB |
163 | %package plugin-simulator |
164 | Summary: simulator plugin for OpenHPI | |
2a4655e0 | 165 | Summary(pl.UTF-8): Wtyczka simulator dla OpenHPI |
fa178c24 JB |
166 | Group: Libraries |
167 | Requires: %{name} = %{version}-%{release} | |
168 | ||
169 | %description plugin-simulator | |
170 | simulator plugin for OpenHPI. | |
171 | ||
7f481fde | 172 | %description plugin-simulator -l pl.UTF-8 |
fa178c24 JB |
173 | Wtyczka simulator dla OpenHPI. |
174 | ||
b1922010 JB |
175 | %package plugin-snmp |
176 | Summary: SNMP plugins for OpenHPI | |
177 | Summary(pl.UTF-8): Wtyczki SNMP dla OpenHPI | |
178 | Group: Libraries | |
179 | Requires: %{name} = %{version}-%{release} | |
180 | ||
181 | %description plugin-snmp | |
182 | SNMP plugins for OpenHPI: snmp_bc. | |
183 | ||
184 | %description plugin-snmp -l pl.UTF-8 | |
185 | Wtyczki SNMP dla OpenHPI: snmp_bc. | |
186 | ||
a4050f56 JB |
187 | %package plugin-sysfs |
188 | Summary: sysfs plugin for OpenHPI | |
2a4655e0 | 189 | Summary(pl.UTF-8): Wtyczka sysfs dla OpenHPI |
a4050f56 | 190 | Group: Libraries |
fa178c24 | 191 | Requires: %{name} = %{version}-%{release} |
a4050f56 JB |
192 | |
193 | %description plugin-sysfs | |
194 | sysfs plugin for OpenHPI. | |
195 | ||
7f481fde | 196 | %description plugin-sysfs -l pl.UTF-8 |
a4050f56 JB |
197 | Wtyczka sysfs dla OpenHPI. |
198 | ||
ec5858d3 AM |
199 | %prep |
200 | %setup -q | |
a4050f56 | 201 | %patch0 -p1 |
25db1b44 JB |
202 | %patch1 -p1 |
203 | %patch2 -p1 | |
1b582e3e | 204 | %patch3 -p1 |
9f9ae340 | 205 | %patch4 -p1 |
a4c3f6f2 | 206 | %patch5 -p1 |
22a6af9c | 207 | %patch6 -p1 |
1970ccfd | 208 | %patch7 -p1 |
34facee3 | 209 | %patch8 -p1 |
e6bbbf93 | 210 | %patch9 -p1 |
ec5858d3 AM |
211 | |
212 | %build | |
213 | %{__libtoolize} | |
214 | %{__aclocal} | |
215 | %{__autoconf} | |
ade50cb2 | 216 | %{__autoheader} |
ec5858d3 AM |
217 | %{__automake} |
218 | %configure \ | |
b1922010 | 219 | --enable-cpp_wrappers \ |
278c7ca6 | 220 | --enable-daemon \ |
add2f300 | 221 | --enable-ipmi \ |
b1922010 JB |
222 | %ifarch ppc ppc64 |
223 | --enable-rtas \ | |
224 | %endif | |
278c7ca6 | 225 | --enable-simulator |
0f87b8dd | 226 | |
ec5858d3 AM |
227 | %{__make} |
228 | ||
229 | %install | |
230 | rm -rf $RPM_BUILD_ROOT | |
231 | ||
232 | %{__make} install \ | |
233 | DESTDIR=$RPM_BUILD_ROOT | |
234 | ||
a4050f56 | 235 | # remove useless static plugins (but *.la are used by lt_dlopen) |
21400eec | 236 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.a |
2a223882 JB |
237 | # packaged as %doc |
238 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
a4050f56 | 239 | |
ec5858d3 AM |
240 | %clean |
241 | rm -rf $RPM_BUILD_ROOT | |
242 | ||
21400eec JB |
243 | %post libs -p /sbin/ldconfig |
244 | %postun libs -p /sbin/ldconfig | |
ec5858d3 AM |
245 | |
246 | %files | |
247 | %defattr(644,root,root,755) | |
22a6af9c | 248 | %doc COPYING README README.daemon |
b1922010 | 249 | %attr(755,root,root) %{_bindir}/hpi* |
add2f300 JB |
250 | %attr(755,root,root) %{_bindir}/ohdomainlist |
251 | %attr(755,root,root) %{_bindir}/ohhandler | |
252 | %attr(755,root,root) %{_bindir}/ohparam | |
ebe90188 | 253 | %attr(755,root,root) %{_sbindir}/openhpid |
632ee324 | 254 | %dir %{_libdir}/%{name} |
dd16388a | 255 | # R: libstdc++ |
add2f300 JB |
256 | %attr(755,root,root) %{_libdir}/%{name}/libdyn_simulator.so* |
257 | %{_libdir}/%{name}/libdyn_simulator.la | |
dd16388a | 258 | # R: libxml2 openssl |
08716c7a JB |
259 | %attr(755,root,root) %{_libdir}/%{name}/libilo2_ribcl.so* |
260 | %{_libdir}/%{name}/libilo2_ribcl.la | |
dd16388a | 261 | # R: libxml2 openssl |
08716c7a JB |
262 | %attr(755,root,root) %{_libdir}/%{name}/liboa_soap.so* |
263 | %{_libdir}/%{name}/liboa_soap.la | |
dd16388a | 264 | # R: glib2(gmodule) |
5718b02a JB |
265 | %attr(755,root,root) %{_libdir}/%{name}/libslave.so* |
266 | %{_libdir}/%{name}/libslave.la | |
dd16388a | 267 | # R: glib2(gmodule) |
5718b02a JB |
268 | %attr(755,root,root) %{_libdir}/%{name}/libtest_agent.so* |
269 | %{_libdir}/%{name}/libtest_agent.la | |
a4050f56 JB |
270 | %attr(755,root,root) %{_libdir}/%{name}/libwatchdog.so* |
271 | %{_libdir}/%{name}/libwatchdog.la | |
272 | %dir %{_sysconfdir}/openhpi | |
278c7ca6 | 273 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openhpi/openhpi.conf |
21400eec | 274 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openhpi/openhpiclient.conf |
add2f300 | 275 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openhpi/simulation.data |
21400eec | 276 | %attr(754,root,root) /etc/rc.d/init.d/openhpid |
278c7ca6 | 277 | %dir %{_localstatedir}/lib/%{name} |
21400eec | 278 | %{_mandir}/man1/hpi*.1* |
add2f300 JB |
279 | %{_mandir}/man1/ohdomainlist.1* |
280 | %{_mandir}/man1/ohhandler.1* | |
281 | %{_mandir}/man1/ohparam.1* | |
278c7ca6 | 282 | %{_mandir}/man7/openhpi.7* |
b1922010 | 283 | %{_mandir}/man8/openhpid.8* |
ec5858d3 | 284 | |
21400eec JB |
285 | %files libs |
286 | %defattr(644,root,root,755) | |
21400eec | 287 | %attr(755,root,root) %{_libdir}/libopenhpi*.so.*.*.* |
22a6af9c | 288 | %attr(755,root,root) %ghost %{_libdir}/libopenhpi*.so.3 |
21400eec | 289 | %attr(755,root,root) %{_libdir}/libosahpi.so.*.*.* |
22a6af9c | 290 | %attr(755,root,root) %ghost %{_libdir}/libosahpi.so.3 |
21400eec | 291 | |
ec5858d3 AM |
292 | %files devel |
293 | %defattr(644,root,root,755) | |
b1922010 JB |
294 | %attr(755,root,root) %{_libdir}/libopenhpi*.so |
295 | %attr(755,root,root) %{_libdir}/libosahpi.so | |
b1922010 JB |
296 | %{_libdir}/libopenhpi*.la |
297 | %{_libdir}/libosahpi.la | |
298 | %dir %{_includedir}/openhpi | |
299 | %{_includedir}/openhpi/*.h | |
300 | %{_includedir}/openhpi/oSaHpi*.hpp | |
301 | %{_pkgconfigdir}/openhpi.pc | |
302 | %{_pkgconfigdir}/openhpiutils.pc | |
ec5858d3 AM |
303 | |
304 | %files static | |
305 | %defattr(644,root,root,755) | |
b1922010 JB |
306 | %{_libdir}/libopenhpi*.a |
307 | %{_libdir}/libosahpi.a | |
a4050f56 | 308 | |
a4050f56 JB |
309 | %files plugin-ipmi |
310 | %defattr(644,root,root,755) | |
dd16388a | 311 | # R: OpenIPMI ncurses |
a4050f56 JB |
312 | %attr(755,root,root) %{_libdir}/%{name}/libipmi.so* |
313 | %{_libdir}/%{name}/libipmi.la | |
a4050f56 JB |
314 | |
315 | %files plugin-ipmidirect | |
316 | %defattr(644,root,root,755) | |
dd16388a | 317 | # R: libstdc++ openssl(libcrypto) |
a4050f56 JB |
318 | %attr(755,root,root) %{_libdir}/%{name}/libipmidirect.so* |
319 | %{_libdir}/%{name}/libipmidirect.la | |
320 | ||
dd16388a JB |
321 | %files plugin-ov_rest |
322 | %defattr(644,root,root,755) | |
323 | # R: curl-libs json-c rabbitmq-c | |
324 | %attr(755,root,root) %{_libdir}/%{name}/libov_rest.so* | |
325 | %{_libdir}/%{name}/libov_rest.la | |
326 | ||
b1922010 JB |
327 | %ifarch ppc ppc64 |
328 | %files plugin-rtas | |
329 | %defattr(644,root,root,755) | |
dd16388a | 330 | # R: librtas |
b1922010 JB |
331 | %attr(755,root,root) %{_libdir}/%{name}/librtas2hpi.so* |
332 | %{_libdir}/%{name}/librtas2hpi.la | |
333 | %endif | |
334 | ||
fa178c24 JB |
335 | %files plugin-simulator |
336 | %defattr(644,root,root,755) | |
337 | %attr(755,root,root) %{_libdir}/%{name}/libsimulator.so* | |
338 | %{_libdir}/%{name}/libsimulator.la | |
339 | ||
a4050f56 JB |
340 | %files plugin-snmp |
341 | %defattr(644,root,root,755) | |
dd16388a | 342 | # R: libuuid net-snmp |
a4050f56 JB |
343 | %attr(755,root,root) %{_libdir}/%{name}/libsnmp_bc.so* |
344 | %{_libdir}/%{name}/libsnmp_bc.la | |
a4050f56 JB |
345 | |
346 | %files plugin-sysfs | |
347 | %defattr(644,root,root,755) | |
dd16388a | 348 | # R: sysfsutils |
a4050f56 JB |
349 | %attr(755,root,root) %{_libdir}/%{name}/libsysfs2hpi.so* |
350 | %{_libdir}/%{name}/libsysfs2hpi.la |