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