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