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