]>
Commit | Line | Data |
---|---|---|
cf87ffbe ER |
1 | # TODO |
2 | # - split based on provided spec.in: devel, fish, utils ? | |
a20778c0 ER |
3 | # still not sure about how to split packages. move -libs to main |
4 | # and programs to -utils? or leave as it is? (but package init.d | |
5 | # scripts separately?). -libs contains /var/lib/%{name} (because | |
6 | # that .so needs to read ipckey inode), so one vote for discarding | |
7 | # -libs? | |
cf87ffbe | 8 | # - additional split by requires/services (watchdog) |
94edf6e5 ER |
9 | # - wtf is this? |
10 | # # bmc-config | |
11 | #>>--:> >>--:> >>--:> >>--:> | |
12 | #~ ~ Cat ate the fish!! ~ ~ | |
13 | #>>--:> >>--:> >>--:> >>--:> | |
14 | #Fish Exception (gh_standard_handler dump): | |
15 | #tag : | |
16 | #throw args : | |
17 | #data : [/usr/share/fish/extensions/sensors.scm] | |
18 | #misc-error(#f %s %S (no such module (srfi srfi-13)) #f)No backtrace | |
19 | #available. | |
20 | # dig: http://www.google.com/search?q=srfi&ie=UTF-8&oe=UTF-8 | |
6f5c48ee | 21 | Summary: GNU FreeIPMI - system management software |
2b63a779 | 22 | Summary(pl.UTF-8): GNU FreeIPMI - oprogramowanie do zarządzania systemem |
cf87ffbe | 23 | Name: freeipmi |
1ccaf2b4 | 24 | Version: 0.8.9 |
bf77cec9 | 25 | Release: 0.1 |
1ccaf2b4 | 26 | License: GPL v2+ |
cf87ffbe | 27 | Group: Applications/System |
bf77cec9 | 28 | Source0: http://ftp.zresearch.com/pub/freeipmi/%{version}/%{name}-%{version}.tar.gz |
1ccaf2b4 JB |
29 | # Source0-md5: 5c729b91e229c3ed3cd1d568195a2d26 |
30 | Patch0: %{name}-install.patch | |
cf87ffbe | 31 | URL: http://www.gnu.org/software/freeipmi/ |
1ccaf2b4 JB |
32 | BuildRequires: autoconf >= 2.57 |
33 | BuildRequires: automake >= 1:1.9 | |
bf77cec9 | 34 | BuildRequires: grep |
0eb4fec9 | 35 | BuildRequires: guile-devel |
1ccaf2b4 JB |
36 | BuildRequires: libgcrypt-devel |
37 | BuildRequires: libtool | |
1759b445 JB |
38 | BuildRequires: readline-devel >= 4.0 |
39 | Requires: %{name}-libs = %{version}-%{release} | |
cf87ffbe ER |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
cf87ffbe ER |
42 | %description |
43 | The GNU FreeIPMI system provides "Remote-Console" (out-of-band) and | |
44 | "System Management Software" (in-band) based on IPMI v1.5/2.0 | |
45 | specification. This project includes: | |
46 | - KCS, SMIC, SSIF, LAN Drivers and C Library (libfreeipmi) | |
47 | - FreeIPMI SHell (fish) | |
48 | - Watchdog Daemon (bmc-watchdog) | |
49 | - Sensors (sensors) | |
50 | - System Event Log (sel) | |
51 | - BMC Info (bmc-info) | |
52 | - BMC Config (bmc-config) | |
53 | - IPMI Power (ipmipower) | |
54 | - IPMI Ping (ipmiping) | |
55 | - RMCP Ping (rmcpping) | |
56 | ||
3314df50 JR |
57 | %description -l pl.UTF-8 |
58 | System GNU FreeIPMI dostarcza "zdalną konsolę" (Remote-Console) oraz | |
59 | "oprogramowanie do zarządzania systemem" (System Management Software) | |
1759b445 | 60 | oparte na specyfikacji IPMI v1.5/2.0. Projekt zawiera: |
3314df50 JR |
61 | - KCS, SMIC, SSIF, sterowniki LAN i bibliotekę C (libfreeipmi) |
62 | - powłokę FreeIPMI SHell (fish) | |
1759b445 JB |
63 | - demona watchdog (bmc-watchdog) |
64 | - czujniki (sensors) | |
3314df50 JR |
65 | - dziennik zdarzeń systemowych (sel - System Event Log) |
66 | - narzędzie informacyjne BMC (bmc-info) | |
67 | - narzędzie konfiguracyjne BMC (bmc-config) | |
68 | - narzędzie IPMI Power (ipmipower) | |
1759b445 JB |
69 | - ping dla IPMI (ipmiping) |
70 | - ping dla RMCP (rmcpping) | |
71 | ||
bf77cec9 | 72 | %package bmc-watchdog |
73 | Summary: FreeIPMI BMC watchdog | |
a20778c0 ER |
74 | Group: Applications/System |
75 | Requires: %{name} = %{version}-%{release} | |
bf77cec9 | 76 | Requires: logrotate |
a20778c0 | 77 | |
bf77cec9 | 78 | %description bmc-watchdog |
79 | Provides a watchdog daemon for OS monitoring and recovery. | |
1759b445 | 80 | |
a20778c0 ER |
81 | %package libs |
82 | Summary: Shared libraries for FreeIPMI | |
2b63a779 | 83 | Summary(pl.UTF-8): Biblioteki współdzielone FreeIPMI |
1759b445 | 84 | Group: Libraries |
a20778c0 | 85 | |
bf77cec9 | 86 | |
87 | %package ipmidetectd | |
88 | Summary: IPMI node detection monitoring daemon | |
89 | Group: Applications/System | |
90 | Requires: %{name} = %{version}-%{release} | |
91 | Requires: logrotate | |
92 | ||
93 | %description ipmidetectd | |
94 | IPMI node detection daemon. | |
95 | ||
96 | ||
a20778c0 | 97 | %description libs |
1759b445 JB |
98 | Shared libraries for FreeIPMI. |
99 | ||
3314df50 JR |
100 | %description libs -l pl.UTF-8 |
101 | Biblioteki współdzielone FreeIPMI. | |
cf87ffbe ER |
102 | |
103 | %package devel | |
104 | Summary: Development package for FreeIPMI | |
2b63a779 | 105 | Summary(pl.UTF-8): Pakiet programistyczny FreeIPMI |
cf87ffbe | 106 | Group: Development/Libraries |
a20778c0 | 107 | Requires: %{name}-libs = %{version}-%{release} |
cf87ffbe ER |
108 | |
109 | %description devel | |
110 | Development package for FreeIPMI. This package includes the FreeIPMI | |
6f5c48ee JB |
111 | header files. |
112 | ||
3314df50 JR |
113 | %description devel -l pl.UTF-8 |
114 | Pakiet programistyczny FreeIPMI. Zawiera pliki nagłówkowe. | |
cf87ffbe ER |
115 | |
116 | %package static | |
117 | Summary: Static FreeIPMI library | |
2b63a779 | 118 | Summary(pl.UTF-8): Statyczna biblioteka FreeIPMI |
cf87ffbe ER |
119 | Group: Development/Libraries |
120 | Requires: %{name}-devel = %{version}-%{release} | |
121 | ||
122 | %description static | |
123 | Static FreeIPMI library. | |
124 | ||
3314df50 | 125 | %description static -l pl.UTF-8 |
6f5c48ee JB |
126 | Statyczna biblioteka FreeIPMI. |
127 | ||
cf87ffbe ER |
128 | %prep |
129 | %setup -q | |
1ccaf2b4 JB |
130 | %patch0 -p1 |
131 | #install %{_includedir}/limits.h ipmi-oem/src/ | |
132 | #cat %{_includedir}/linux/limits.h |grep ARG_MAX >> ipmi-oem/src/limits.h | |
133 | #install ipmi-oem/src/limits.h ipmi-raw/src/limits.h | |
cf87ffbe ER |
134 | |
135 | %build | |
1ccaf2b4 JB |
136 | %{__libtoolize} |
137 | %{__aclocal} -I config | |
138 | %{__autoconf} | |
139 | %{__autoheader} | |
140 | %{__automake} | |
cf87ffbe ER |
141 | %configure |
142 | ||
143 | %{__make} | |
144 | ||
145 | %install | |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
148 | %{__make} install -j1 \ | |
149 | DESTDIR=$RPM_BUILD_ROOT | |
1ccaf2b4 | 150 | |
8d77549e | 151 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
1ccaf2b4 | 152 | mv $RPM_BUILD_ROOT/etc/init.d/* $RPM_BUILD_ROOT/etc/rc.d/init.d |
cf87ffbe ER |
153 | # TODO: patch Makefile.am instead |
154 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/freeipmi | |
cf87ffbe ER |
155 | |
156 | %clean | |
157 | rm -rf $RPM_BUILD_ROOT | |
158 | ||
375b818c | 159 | %post libs -p /sbin/ldconfig |
a20778c0 | 160 | %postun libs -p /sbin/ldconfig |
cf87ffbe ER |
161 | |
162 | %files | |
163 | %defattr(644,root,root,755) | |
bf77cec9 | 164 | %doc AUTHORS ChangeLog DISCLAIMER.* INSTALL NEWS README TODO doc/freeipmi-*.txt |
1ccaf2b4 JB |
165 | %attr(640,root,root) %config(noreplace) %{_sysconfdir}/freeipmi.conf |
166 | %attr(444,root,root) %config(noreplace) %{_sysconfdir}/ipmi_monitoring_sensors.conf | |
bf77cec9 | 167 | %attr(755,root,root) %{_sbindir}/bmc-config |
b1d6a380 | 168 | %attr(755,root,root) %{_sbindir}/bmc-device |
bf77cec9 | 169 | %attr(755,root,root) %{_sbindir}/bmc-info |
1ccaf2b4 JB |
170 | %attr(755,root,root) %{_sbindir}/ipmi-chassis |
171 | %attr(755,root,root) %{_sbindir}/ipmi-chassis-config | |
172 | %attr(755,root,root) %{_sbindir}/ipmi-dcmi | |
bf77cec9 | 173 | %attr(755,root,root) %{_sbindir}/ipmi-fru |
174 | %attr(755,root,root) %{_sbindir}/ipmi-locate | |
bf77cec9 | 175 | %attr(755,root,root) %{_sbindir}/ipmi-oem |
1ccaf2b4 | 176 | %attr(755,root,root) %{_sbindir}/ipmi-pef-config |
bf77cec9 | 177 | %attr(755,root,root) %{_sbindir}/ipmi-raw |
178 | %attr(755,root,root) %{_sbindir}/ipmi-sel | |
179 | %attr(755,root,root) %{_sbindir}/ipmi-sensors | |
180 | %attr(755,root,root) %{_sbindir}/ipmi-sensors-config | |
1ccaf2b4 JB |
181 | %attr(755,root,root) %{_sbindir}/ipmiconsole |
182 | %attr(755,root,root) %{_sbindir}/ipmidetect | |
183 | %attr(755,root,root) %{_sbindir}/ipmimonitoring | |
cf87ffbe ER |
184 | %attr(755,root,root) %{_sbindir}/ipmiping |
185 | %attr(755,root,root) %{_sbindir}/ipmipower | |
1ccaf2b4 | 186 | %attr(755,root,root) %{_sbindir}/pef-config |
bf77cec9 | 187 | %attr(755,root,root) %{_sbindir}/rmcpping |
bf77cec9 | 188 | %{_mandir}/man5/bmc-config.conf.5* |
b1d6a380 | 189 | %{_mandir}/man5/freeipmi.conf.5* |
b1d6a380 | 190 | %{_mandir}/man5/ipmi_monitoring_sensors.conf.5* |
1ccaf2b4 JB |
191 | %{_mandir}/man5/ipmiconsole.conf.5* |
192 | %{_mandir}/man5/ipmidetect.conf.5* | |
b1d6a380 AG |
193 | %{_mandir}/man5/ipmimonitoring.conf.5* |
194 | %{_mandir}/man5/ipmimonitoring_sensors.conf.5* | |
1ccaf2b4 | 195 | %{_mandir}/man5/ipmipower.conf.5* |
b1d6a380 | 196 | %{_mandir}/man5/libipmimonitoring.conf.5* |
1ccaf2b4 JB |
197 | %{_mandir}/man7/freeipmi.7* |
198 | %{_mandir}/man8/bmc-config.8* | |
199 | %{_mandir}/man8/bmc-device.8* | |
200 | %{_mandir}/man8/bmc-info.8* | |
201 | %{_mandir}/man8/ipmi-chassis-config.8* | |
202 | %{_mandir}/man8/ipmi-chassis.8* | |
203 | %{_mandir}/man8/ipmi-dcmi.8* | |
204 | %{_mandir}/man8/ipmi-fru.8* | |
205 | %{_mandir}/man8/ipmi-locate.8* | |
bf77cec9 | 206 | %{_mandir}/man8/ipmi-oem.8* |
1ccaf2b4 | 207 | %{_mandir}/man8/ipmi-pef-config.8* |
bf77cec9 | 208 | %{_mandir}/man8/ipmi-raw.8* |
209 | %{_mandir}/man8/ipmi-sel.8* | |
bf77cec9 | 210 | %{_mandir}/man8/ipmi-sensors-config.8* |
1ccaf2b4 JB |
211 | %{_mandir}/man8/ipmi-sensors.8* |
212 | %{_mandir}/man8/ipmiconsole.8* | |
213 | %{_mandir}/man8/ipmidetect.8* | |
214 | %{_mandir}/man8/ipmimonitoring.8* | |
bf77cec9 | 215 | %{_mandir}/man8/ipmiping.8* |
216 | %{_mandir}/man8/ipmipower.8* | |
1ccaf2b4 | 217 | %{_mandir}/man8/pef-config.8* |
bf77cec9 | 218 | %{_mandir}/man8/rmcpping.8* |
bf77cec9 | 219 | #%dir %{_localstatedir}/cache/ipmimonitoringsdrcache |
1ccaf2b4 | 220 | %{_infodir}/freeipmi-faq.info* |
bf77cec9 | 221 | %dir /var/log/freeipmi |
222 | ||
223 | %files bmc-watchdog | |
224 | %defattr(644,root,root,755) | |
1ccaf2b4 JB |
225 | %config(noreplace) /etc/rc.d/init.d/bmc-watchdog |
226 | %config(noreplace) /etc/sysconfig/bmc-watchdog | |
227 | %config(noreplace) /etc/logrotate.d/bmc-watchdog | |
cf87ffbe | 228 | %attr(755,root,root) %{_sbindir}/bmc-watchdog |
bf77cec9 | 229 | %{_mandir}/man8/bmc-watchdog.8* |
a20778c0 | 230 | %dir /var/log/freeipmi |
cf87ffbe | 231 | |
bf77cec9 | 232 | %files ipmidetectd |
a20778c0 | 233 | %defattr(644,root,root,755) |
bf77cec9 | 234 | %attr(755,root,root) %{_sbindir}/ipmidetectd |
1ccaf2b4 JB |
235 | %attr(754,root,root) /etc/rc.d/init.d/ipmidetectd |
236 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ipmidetectd.conf | |
bf77cec9 | 237 | %{_mandir}/man5/ipmidetectd.conf.5* |
238 | %{_mandir}/man8/ipmidetectd.8* | |
cf87ffbe | 239 | |
a20778c0 ER |
240 | %files libs |
241 | %defattr(644,root,root,755) | |
1ccaf2b4 JB |
242 | %attr(755,root,root) %{_libdir}/libfreeipmi.so.*.*.* |
243 | %attr(755,root,root) %ghost %{_libdir}/libfreeipmi.so.10 | |
244 | %attr(755,root,root) %{_libdir}/libipmiconsole.so.*.*.* | |
245 | %attr(755,root,root) %ghost %{_libdir}/libipmiconsole.so.2 | |
246 | %attr(755,root,root) %{_libdir}/libipmidetect.so.*.*.* | |
247 | %attr(755,root,root) %ghost %{_libdir}/libipmidetect.so.0 | |
248 | %attr(755,root,root) %{_libdir}/libipmimonitoring.so.*.*.* | |
249 | %attr(755,root,root) %ghost %{_libdir}/libipmimonitoring.so.4 | |
a20778c0 ER |
250 | %dir /var/lib/freeipmi |
251 | /var/lib/freeipmi/ipckey | |
a20778c0 | 252 | |
cf87ffbe ER |
253 | %files devel |
254 | %defattr(644,root,root,755) | |
bf77cec9 | 255 | %attr(755,root,root) %{_libdir}/libipmiconsole.so |
6f5c48ee | 256 | %attr(755,root,root) %{_libdir}/libfreeipmi.so |
bf77cec9 | 257 | %attr(755,root,root) %{_libdir}/libipmidetect.so |
258 | %attr(755,root,root) %{_libdir}/libipmimonitoring.so | |
cf87ffbe | 259 | %{_libdir}/libfreeipmi.la |
bf77cec9 | 260 | %{_libdir}/libipmiconsole.la |
261 | %{_libdir}/libipmidetect.la | |
262 | %{_libdir}/libipmimonitoring.la | |
6f5c48ee | 263 | %{_includedir}/freeipmi |
bf77cec9 | 264 | %{_includedir}/ipmi*.h |
1ccaf2b4 JB |
265 | %{_mandir}/man3/libfreeipmi.3* |
266 | %{_mandir}/man3/libipmiconsole.3* | |
267 | %{_mandir}/man3/libipmidetect.3* | |
268 | %{_mandir}/man3/libipmimonitoring.3* | |
cf87ffbe ER |
269 | |
270 | %files static | |
271 | %defattr(644,root,root,755) | |
272 | %{_libdir}/libfreeipmi.a | |
bf77cec9 | 273 | %{_libdir}/libipmiconsole.a |
274 | %{_libdir}/libipmidetect.a | |
275 | %{_libdir}/libipmimonitoring.a |