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