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