]>
Commit | Line | Data |
---|---|---|
9230d552 | 1 | # TODO: finish systemd support |
e74b6f62 JB |
2 | # |
3 | # Conditonal build: | |
4 | %bcond_without gpl # build with GPL code (md2.h, ipmi_ioctls.h) | |
5 | # | |
b172d671 | 6 | Summary: IPMI Management Utilities |
cdd9d1b0 | 7 | Summary(pl.UTF-8): Narzędzia zarządzające IPMI |
b172d671 | 8 | Name: ipmiutil |
4e4e6a7e | 9 | Version: 3.0.7 |
e74b6f62 | 10 | Release: 1 |
3a6bb25c | 11 | %if %{with gpl} |
e74b6f62 | 12 | License: GPL v2+ |
3a6bb25c | 13 | %else |
b172d671 | 14 | License: BSD |
3a6bb25c | 15 | %endif |
b172d671 | 16 | Group: Applications/System |
e74b6f62 | 17 | Source0: http://downloads.sourceforge.net/ipmiutil/%{name}-%{version}.tar.gz |
4e4e6a7e AM |
18 | # Source0-md5: f055613809d14f9aa07fa23f90ed202a |
19 | ||
ac6503df AO |
20 | Patch1: %{name}-idiscover-ifaces_with_dot_in_name_support.patch |
21 | Patch2: %{name}-libcrypto.patch | |
22 | Patch3: %{name}-symlink.patch | |
b172d671 ER |
23 | URL: http://ipmiutil.sourceforge.net/ |
24 | BuildRequires: autoconf | |
25 | BuildRequires: automake | |
018e3fc8 | 26 | BuildRequires: libtool |
023688e9 | 27 | BuildRequires: openssl-devel |
6d4ad623 | 28 | Suggests: mibs-%{name} |
b172d671 ER |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
660e0f4b | 31 | %define mibsdir /usr/share/mibs |
b172d671 ER |
32 | |
33 | %description | |
34 | The ipmiutil component package provides utilities to view the SEL | |
35 | (showsel), perform a hardware reset (hwreset), and set up the Platform | |
36 | Event Filter entry to allow BMC LAN alerts from OS Critical Stop | |
37 | messages (pefconfig). It requires an IPMI driver (ipmidrvr) package in | |
38 | order to talk to the BMC/firmware interface. | |
39 | ||
40 | An IPMI driver can be provided by either the Intel IPMI driver | |
41 | (/dev/imb) or the valinux IPMI driver (/dev/ipmikcs). | |
42 | ||
f676a882 JR |
43 | %description -l pl.UTF-8 |
44 | Pakiet ipmiutil dostarcza narzędzia do oglądania SEL (showsel), | |
45 | wykonywania sprzętowego resetu (hwreset) i ustawiania wpisu Platform | |
46 | Event Filter, aby włączyć alarmy BMC LAN pochodzące od komunikatów OS | |
c96918e0 | 47 | Critical Stop (pefconfig). Wymaga pakietu ze sterownikiem IPMI |
f676a882 | 48 | (ipmidrvr) do porozumiewania się z interfejsem BMC/firmware. |
c96918e0 | 49 | |
f676a882 | 50 | Sterownik IPMI może być dostarczony przez sterownik Intel IPMI |
c96918e0 JB |
51 | (/dev/imb), albo przez sterownik valinux IPMI (/dev/ipmikcs). |
52 | ||
ac6503df AO |
53 | %package libs |
54 | Summary: ipmiutil library | |
55 | Summary(pl.UTF-8): Biblioteka ipmiutil | |
56 | Group: Libraries | |
57 | ||
58 | %description libs | |
59 | This package contains libipmiutil library. | |
60 | ||
61 | %description libs -l pl.UTF-8 | |
62 | Ten pakiet zawiera bibliotekę libipmiutil. | |
63 | ||
64 | %package devel | |
65 | Summary: Header files and examples for ipmiutil library | |
66 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do biblioteki ipmiutil | |
67 | Group: Development/Libraries | |
68 | Requires: %{name}-libs = %{version}-%{release} | |
69 | ||
70 | %description devel | |
71 | This package contains header files and examples for developing | |
72 | own programs which use libipmiutil. | |
73 | ||
74 | %description devel -l pl.UTF-8 | |
75 | Ten pakiet zawiera pliki nagłówkowe i przykłady umożliwiające | |
76 | tworzenie własnych programów wykorzystujących bibliotekę | |
77 | ipmiutil. | |
78 | ||
79 | %package static | |
80 | Summary: Static ipmiutil library | |
81 | Summary(pl.UTF-8): Statyczna biblioteka ipmiutil | |
82 | Group: Development/Libraries | |
83 | Requires: %{name}-devel = %{version}-%{release} | |
84 | ||
85 | %description static | |
86 | This package contains static libipmiutil library. | |
87 | ||
88 | %description static -l pl.UTF-8 | |
89 | Ten pakiet zawiera statyczną bibliotekę libipmiutil. | |
90 | ||
660e0f4b ER |
91 | %package -n mibs-%{name} |
92 | Summary: MIB database from IPMI Management Utilities | |
18d9ea01 | 93 | Summary(pl.UTF-8): Baza danych MIB z narzędzi zarządzających IPMI |
b172d671 | 94 | Group: Applications/System |
660e0f4b | 95 | Requires: mibs-dirs |
98ace3dc | 96 | Requires: mibs-net-snmp |
660e0f4b | 97 | Obsoletes: ipmiutil-mibs |
b172d671 | 98 | |
660e0f4b | 99 | %description -n mibs-%{name} |
18d9ea01 | 100 | This package contains MIB file from Intel: |
b172d671 ER |
101 | - MIB file for PET events |
102 | ||
660e0f4b | 103 | %description -n mibs-%{name} -l pl.UTF-8 |
18d9ea01 | 104 | Ten pakiet zawiera plik MIB od Intela: |
f676a882 | 105 | - plik MIB dla zdarzeń PET |
c96918e0 | 106 | |
b172d671 ER |
107 | %prep |
108 | %setup -q | |
4e4e6a7e | 109 | |
ac6503df AO |
110 | %patch1 -p1 |
111 | %patch2 -p1 | |
112 | %patch3 -p1 | |
b172d671 | 113 | |
e74b6f62 | 114 | %{__rm} lib/lib*.a* |
22391cf6 | 115 | |
b172d671 | 116 | %build |
018e3fc8 | 117 | %{__libtoolize} |
b172d671 ER |
118 | %{__aclocal} |
119 | %{__autoconf} | |
120 | %{__autoheader} | |
121 | %{__automake} | |
3a6bb25c AM |
122 | %configure \ |
123 | %{?with_gpl:--enable-gpl} \ | |
124 | --enable-shared \ | |
125 | --enable-static | |
126 | ||
4aacbc61 AM |
127 | %{__make} \ |
128 | CC="%{__cc}" | |
b172d671 ER |
129 | |
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
e74b6f62 | 132 | install -d $RPM_BUILD_ROOT%{mibsdir} |
b172d671 ER |
133 | |
134 | %{__make} install \ | |
f8fc0886 JB |
135 | DESTDIR=$RPM_BUILD_ROOT \ |
136 | sysvinit=$RPM_BUILD_ROOT/etc/rc.d/init.d \ | |
137 | sysdto=$RPM_BUILD_ROOT%{systemdunitdir} | |
518e9ba6 | 138 | |
beac3190 | 139 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/ipmiutil/*.mib $RPM_BUILD_ROOT%{mibsdir} |
ac6503df AO |
140 | |
141 | install -d $RPM_BUILD_ROOT%{_includedir} | |
142 | install util/ipmicmd.h $RPM_BUILD_ROOT%{_includedir} | |
143 | ||
144 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
145 | install util/{ipmi_sample.c,ipmi_sample_evt.c,isensor.c,ievents.c,isensor.h,ievents.h,Makefile} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
b172d671 ER |
146 | |
147 | %clean | |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
beac3190 JB |
150 | %post libs -p /sbin/ldconfig |
151 | %postun libs -p /sbin/ldconfig | |
152 | ||
b172d671 ER |
153 | %files |
154 | %defattr(644,root,root,755) | |
f8fc0886 JB |
155 | %doc AUTHORS COPYING ChangeLog NEWS README TODO doc/UserGuide scripts/{checksel,*.sh} |
156 | %attr(755,root,root) %{_bindir}/idiscover | |
157 | %attr(755,root,root) %{_bindir}/ievents | |
158 | %attr(755,root,root) %{_bindir}/ipmiutil | |
e74b6f62 | 159 | %attr(755,root,root) %{_sbindir}/ialarms |
ce6b5383 | 160 | %attr(755,root,root) %{_sbindir}/icmd |
e74b6f62 | 161 | %attr(755,root,root) %{_sbindir}/iconfig |
e74b6f62 JB |
162 | %attr(755,root,root) %{_sbindir}/ifirewall |
163 | %attr(755,root,root) %{_sbindir}/ifru | |
164 | %attr(755,root,root) %{_sbindir}/ifwum | |
165 | %attr(755,root,root) %{_sbindir}/igetevent | |
166 | %attr(755,root,root) %{_sbindir}/ihealth | |
167 | %attr(755,root,root) %{_sbindir}/ihpm | |
168 | %attr(755,root,root) %{_sbindir}/ilan | |
169 | %attr(755,root,root) %{_sbindir}/ipicmg | |
023f413a | 170 | %attr(755,root,root) %{_sbindir}/ipmi_port |
e74b6f62 JB |
171 | %attr(755,root,root) %{_sbindir}/ireset |
172 | %attr(755,root,root) %{_sbindir}/isel | |
ac6503df | 173 | %attr(755,root,root) %{_sbindir}/iseltime |
e74b6f62 JB |
174 | %attr(755,root,root) %{_sbindir}/isensor |
175 | %attr(755,root,root) %{_sbindir}/iserial | |
176 | %attr(755,root,root) %{_sbindir}/isol | |
4e4e6a7e | 177 | %attr(755,root,root) %{_sbindir}/iuser |
e74b6f62 | 178 | %attr(755,root,root) %{_sbindir}/iwdt |
f9b12762 | 179 | %attr(754,root,root) /etc/rc.d/init.d/ipmi_info |
e74b6f62 JB |
180 | %attr(754,root,root) /etc/rc.d/init.d/ipmi_port |
181 | %attr(754,root,root) /etc/rc.d/init.d/ipmiutil_asy | |
182 | %attr(754,root,root) /etc/rc.d/init.d/ipmiutil_evt | |
183 | %attr(754,root,root) /etc/rc.d/init.d/ipmiutil_wdt | |
218bc3bd JB |
184 | %{systemdunitdir}/ipmi_port.service |
185 | %{systemdunitdir}/ipmiutil_asy.service | |
186 | %{systemdunitdir}/ipmiutil_evt.service | |
187 | %{systemdunitdir}/ipmiutil_wdt.service | |
e74b6f62 JB |
188 | %{_datadir}/%{name} |
189 | %{_mandir}/man8/ialarms.8* | |
ce6b5383 | 190 | %{_mandir}/man8/icmd.8* |
e74b6f62 | 191 | %{_mandir}/man8/iconfig.8* |
020dae0d | 192 | %{_mandir}/man8/idcmi.8* |
773308f8 | 193 | %{_mandir}/man8/idelloem.8* |
ce6b5383 | 194 | %{_mandir}/man8/idiscover.8* |
e74b6f62 | 195 | %{_mandir}/man8/iekanalyzer.8* |
023f413a | 196 | %{_mandir}/man8/ievents.8* |
e74b6f62 JB |
197 | %{_mandir}/man8/ifirewall.8* |
198 | %{_mandir}/man8/ifru.8* | |
199 | %{_mandir}/man8/ifwum.8* | |
200 | %{_mandir}/man8/igetevent.8* | |
201 | %{_mandir}/man8/ihealth.8* | |
202 | %{_mandir}/man8/ihpm.8* | |
203 | %{_mandir}/man8/ilan.8* | |
204 | %{_mandir}/man8/ipicmg.8* | |
205 | %{_mandir}/man8/ipmi_port.8* | |
ce6b5383 | 206 | %{_mandir}/man8/ipmiutil.8* |
e74b6f62 JB |
207 | %{_mandir}/man8/ireset.8* |
208 | %{_mandir}/man8/isel.8* | |
209 | %{_mandir}/man8/isensor.8* | |
210 | %{_mandir}/man8/iserial.8* | |
ac6503df | 211 | %{_mandir}/man8/ismcoem.8* |
e74b6f62 JB |
212 | %{_mandir}/man8/isol.8* |
213 | %{_mandir}/man8/isunoem.8* | |
020dae0d | 214 | %{_mandir}/man8/itsol.8* |
4e4e6a7e | 215 | %{_mandir}/man8/iuser.8* |
e74b6f62 | 216 | %{_mandir}/man8/iwdt.8* |
b172d671 | 217 | |
ac6503df AO |
218 | %files libs |
219 | %defattr(644,root,root,755) | |
beac3190 | 220 | %attr(755,root,root) %{_libdir}/libipmiutil.so.1 |
ac6503df AO |
221 | |
222 | %files devel | |
223 | %defattr(644,root,root,755) | |
224 | %attr(755,root,root) %{_libdir}/libipmiutil.so | |
225 | %{_includedir}/ipmicmd.h | |
226 | %{_examplesdir}/%{name}-%{version} | |
227 | ||
228 | %files static | |
229 | %defattr(644,root,root,755) | |
230 | %{_libdir}/libipmiutil.a | |
231 | ||
660e0f4b | 232 | %files -n mibs-%{name} |
b172d671 | 233 | %defattr(644,root,root,755) |
b172d671 | 234 | %{mibsdir}/bmclanpet.mib |