]>
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 | |
e7ac736b | 74 | Summary(pl.UTF-8): FreeIPMI - watchdog BMC |
a20778c0 ER |
75 | Group: Applications/System |
76 | Requires: %{name} = %{version}-%{release} | |
bf77cec9 | 77 | Requires: logrotate |
a20778c0 | 78 | |
bf77cec9 | 79 | %description bmc-watchdog |
80 | Provides a watchdog daemon for OS monitoring and recovery. | |
1759b445 | 81 | |
e7ac736b JB |
82 | %description bmc-watchdog -l pl.UTF-8 |
83 | Ten pakiet udostępnia demona watchdoga do monitorowania systemu i | |
84 | uruchamiania po awarii. | |
bf77cec9 | 85 | |
86 | %package ipmidetectd | |
e7ac736b JB |
87 | Summary: IPMI node detection daemon |
88 | Summary(pl.UTF-8): Demon wykrywający węzły IPMI | |
bf77cec9 | 89 | Group: Applications/System |
90 | Requires: %{name} = %{version}-%{release} | |
91 | Requires: logrotate | |
92 | ||
93 | %description ipmidetectd | |
94 | IPMI node detection daemon. | |
95 | ||
e7ac736b JB |
96 | %description ipmidetectd -l pl.UTF-8 |
97 | Demon wykrywający węzły IPMI. | |
98 | ||
99 | %package libs | |
100 | Summary: Shared libraries for FreeIPMI | |
101 | Summary(pl.UTF-8): Biblioteki współdzielone FreeIPMI | |
102 | Group: Libraries | |
bf77cec9 | 103 | |
a20778c0 | 104 | %description libs |
1759b445 JB |
105 | Shared libraries for FreeIPMI. |
106 | ||
3314df50 JR |
107 | %description libs -l pl.UTF-8 |
108 | Biblioteki współdzielone FreeIPMI. | |
cf87ffbe ER |
109 | |
110 | %package devel | |
111 | Summary: Development package for FreeIPMI | |
2b63a779 | 112 | Summary(pl.UTF-8): Pakiet programistyczny FreeIPMI |
cf87ffbe | 113 | Group: Development/Libraries |
a20778c0 | 114 | Requires: %{name}-libs = %{version}-%{release} |
cf87ffbe ER |
115 | |
116 | %description devel | |
117 | Development package for FreeIPMI. This package includes the FreeIPMI | |
6f5c48ee JB |
118 | header files. |
119 | ||
3314df50 JR |
120 | %description devel -l pl.UTF-8 |
121 | Pakiet programistyczny FreeIPMI. Zawiera pliki nagłówkowe. | |
cf87ffbe ER |
122 | |
123 | %package static | |
124 | Summary: Static FreeIPMI library | |
2b63a779 | 125 | Summary(pl.UTF-8): Statyczna biblioteka FreeIPMI |
cf87ffbe ER |
126 | Group: Development/Libraries |
127 | Requires: %{name}-devel = %{version}-%{release} | |
128 | ||
129 | %description static | |
130 | Static FreeIPMI library. | |
131 | ||
3314df50 | 132 | %description static -l pl.UTF-8 |
6f5c48ee JB |
133 | Statyczna biblioteka FreeIPMI. |
134 | ||
cf87ffbe ER |
135 | %prep |
136 | %setup -q | |
1ccaf2b4 | 137 | %patch0 -p1 |
cf87ffbe ER |
138 | |
139 | %build | |
1ccaf2b4 JB |
140 | %{__libtoolize} |
141 | %{__aclocal} -I config | |
142 | %{__autoconf} | |
143 | %{__autoheader} | |
144 | %{__automake} | |
cf87ffbe ER |
145 | %configure |
146 | ||
147 | %{__make} | |
148 | ||
149 | %install | |
150 | rm -rf $RPM_BUILD_ROOT | |
151 | ||
152 | %{__make} install -j1 \ | |
153 | DESTDIR=$RPM_BUILD_ROOT | |
1ccaf2b4 | 154 | |
8d77549e | 155 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
1ccaf2b4 | 156 | mv $RPM_BUILD_ROOT/etc/init.d/* $RPM_BUILD_ROOT/etc/rc.d/init.d |
cf87ffbe ER |
157 | # TODO: patch Makefile.am instead |
158 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/freeipmi | |
cf87ffbe ER |
159 | |
160 | %clean | |
161 | rm -rf $RPM_BUILD_ROOT | |
162 | ||
375b818c | 163 | %post libs -p /sbin/ldconfig |
a20778c0 | 164 | %postun libs -p /sbin/ldconfig |
cf87ffbe ER |
165 | |
166 | %files | |
167 | %defattr(644,root,root,755) | |
bf77cec9 | 168 | %doc AUTHORS ChangeLog DISCLAIMER.* INSTALL NEWS README TODO doc/freeipmi-*.txt |
1ccaf2b4 JB |
169 | %attr(640,root,root) %config(noreplace) %{_sysconfdir}/freeipmi.conf |
170 | %attr(444,root,root) %config(noreplace) %{_sysconfdir}/ipmi_monitoring_sensors.conf | |
bf77cec9 | 171 | %attr(755,root,root) %{_sbindir}/bmc-config |
b1d6a380 | 172 | %attr(755,root,root) %{_sbindir}/bmc-device |
bf77cec9 | 173 | %attr(755,root,root) %{_sbindir}/bmc-info |
1ccaf2b4 JB |
174 | %attr(755,root,root) %{_sbindir}/ipmi-chassis |
175 | %attr(755,root,root) %{_sbindir}/ipmi-chassis-config | |
176 | %attr(755,root,root) %{_sbindir}/ipmi-dcmi | |
bf77cec9 | 177 | %attr(755,root,root) %{_sbindir}/ipmi-fru |
178 | %attr(755,root,root) %{_sbindir}/ipmi-locate | |
bf77cec9 | 179 | %attr(755,root,root) %{_sbindir}/ipmi-oem |
1ccaf2b4 | 180 | %attr(755,root,root) %{_sbindir}/ipmi-pef-config |
bf77cec9 | 181 | %attr(755,root,root) %{_sbindir}/ipmi-raw |
182 | %attr(755,root,root) %{_sbindir}/ipmi-sel | |
183 | %attr(755,root,root) %{_sbindir}/ipmi-sensors | |
184 | %attr(755,root,root) %{_sbindir}/ipmi-sensors-config | |
1ccaf2b4 JB |
185 | %attr(755,root,root) %{_sbindir}/ipmiconsole |
186 | %attr(755,root,root) %{_sbindir}/ipmidetect | |
187 | %attr(755,root,root) %{_sbindir}/ipmimonitoring | |
cf87ffbe ER |
188 | %attr(755,root,root) %{_sbindir}/ipmiping |
189 | %attr(755,root,root) %{_sbindir}/ipmipower | |
1ccaf2b4 | 190 | %attr(755,root,root) %{_sbindir}/pef-config |
bf77cec9 | 191 | %attr(755,root,root) %{_sbindir}/rmcpping |
bf77cec9 | 192 | %{_mandir}/man5/bmc-config.conf.5* |
b1d6a380 | 193 | %{_mandir}/man5/freeipmi.conf.5* |
b1d6a380 | 194 | %{_mandir}/man5/ipmi_monitoring_sensors.conf.5* |
1ccaf2b4 JB |
195 | %{_mandir}/man5/ipmiconsole.conf.5* |
196 | %{_mandir}/man5/ipmidetect.conf.5* | |
b1d6a380 AG |
197 | %{_mandir}/man5/ipmimonitoring.conf.5* |
198 | %{_mandir}/man5/ipmimonitoring_sensors.conf.5* | |
1ccaf2b4 | 199 | %{_mandir}/man5/ipmipower.conf.5* |
b1d6a380 | 200 | %{_mandir}/man5/libipmimonitoring.conf.5* |
1ccaf2b4 JB |
201 | %{_mandir}/man7/freeipmi.7* |
202 | %{_mandir}/man8/bmc-config.8* | |
203 | %{_mandir}/man8/bmc-device.8* | |
204 | %{_mandir}/man8/bmc-info.8* | |
205 | %{_mandir}/man8/ipmi-chassis-config.8* | |
206 | %{_mandir}/man8/ipmi-chassis.8* | |
207 | %{_mandir}/man8/ipmi-dcmi.8* | |
208 | %{_mandir}/man8/ipmi-fru.8* | |
209 | %{_mandir}/man8/ipmi-locate.8* | |
bf77cec9 | 210 | %{_mandir}/man8/ipmi-oem.8* |
1ccaf2b4 | 211 | %{_mandir}/man8/ipmi-pef-config.8* |
bf77cec9 | 212 | %{_mandir}/man8/ipmi-raw.8* |
213 | %{_mandir}/man8/ipmi-sel.8* | |
bf77cec9 | 214 | %{_mandir}/man8/ipmi-sensors-config.8* |
1ccaf2b4 JB |
215 | %{_mandir}/man8/ipmi-sensors.8* |
216 | %{_mandir}/man8/ipmiconsole.8* | |
217 | %{_mandir}/man8/ipmidetect.8* | |
218 | %{_mandir}/man8/ipmimonitoring.8* | |
bf77cec9 | 219 | %{_mandir}/man8/ipmiping.8* |
220 | %{_mandir}/man8/ipmipower.8* | |
1ccaf2b4 | 221 | %{_mandir}/man8/pef-config.8* |
bf77cec9 | 222 | %{_mandir}/man8/rmcpping.8* |
bf77cec9 | 223 | #%dir %{_localstatedir}/cache/ipmimonitoringsdrcache |
1ccaf2b4 | 224 | %{_infodir}/freeipmi-faq.info* |
bf77cec9 | 225 | %dir /var/log/freeipmi |
226 | ||
227 | %files bmc-watchdog | |
228 | %defattr(644,root,root,755) | |
1ccaf2b4 JB |
229 | %config(noreplace) /etc/rc.d/init.d/bmc-watchdog |
230 | %config(noreplace) /etc/sysconfig/bmc-watchdog | |
231 | %config(noreplace) /etc/logrotate.d/bmc-watchdog | |
cf87ffbe | 232 | %attr(755,root,root) %{_sbindir}/bmc-watchdog |
bf77cec9 | 233 | %{_mandir}/man8/bmc-watchdog.8* |
a20778c0 | 234 | %dir /var/log/freeipmi |
cf87ffbe | 235 | |
bf77cec9 | 236 | %files ipmidetectd |
a20778c0 | 237 | %defattr(644,root,root,755) |
bf77cec9 | 238 | %attr(755,root,root) %{_sbindir}/ipmidetectd |
1ccaf2b4 JB |
239 | %attr(754,root,root) /etc/rc.d/init.d/ipmidetectd |
240 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ipmidetectd.conf | |
bf77cec9 | 241 | %{_mandir}/man5/ipmidetectd.conf.5* |
242 | %{_mandir}/man8/ipmidetectd.8* | |
cf87ffbe | 243 | |
a20778c0 ER |
244 | %files libs |
245 | %defattr(644,root,root,755) | |
1ccaf2b4 JB |
246 | %attr(755,root,root) %{_libdir}/libfreeipmi.so.*.*.* |
247 | %attr(755,root,root) %ghost %{_libdir}/libfreeipmi.so.10 | |
248 | %attr(755,root,root) %{_libdir}/libipmiconsole.so.*.*.* | |
249 | %attr(755,root,root) %ghost %{_libdir}/libipmiconsole.so.2 | |
250 | %attr(755,root,root) %{_libdir}/libipmidetect.so.*.*.* | |
251 | %attr(755,root,root) %ghost %{_libdir}/libipmidetect.so.0 | |
252 | %attr(755,root,root) %{_libdir}/libipmimonitoring.so.*.*.* | |
253 | %attr(755,root,root) %ghost %{_libdir}/libipmimonitoring.so.4 | |
a20778c0 ER |
254 | %dir /var/lib/freeipmi |
255 | /var/lib/freeipmi/ipckey | |
a20778c0 | 256 | |
cf87ffbe ER |
257 | %files devel |
258 | %defattr(644,root,root,755) | |
bf77cec9 | 259 | %attr(755,root,root) %{_libdir}/libipmiconsole.so |
6f5c48ee | 260 | %attr(755,root,root) %{_libdir}/libfreeipmi.so |
bf77cec9 | 261 | %attr(755,root,root) %{_libdir}/libipmidetect.so |
262 | %attr(755,root,root) %{_libdir}/libipmimonitoring.so | |
cf87ffbe | 263 | %{_libdir}/libfreeipmi.la |
bf77cec9 | 264 | %{_libdir}/libipmiconsole.la |
265 | %{_libdir}/libipmidetect.la | |
266 | %{_libdir}/libipmimonitoring.la | |
6f5c48ee | 267 | %{_includedir}/freeipmi |
bf77cec9 | 268 | %{_includedir}/ipmi*.h |
1ccaf2b4 JB |
269 | %{_mandir}/man3/libfreeipmi.3* |
270 | %{_mandir}/man3/libipmiconsole.3* | |
271 | %{_mandir}/man3/libipmidetect.3* | |
272 | %{_mandir}/man3/libipmimonitoring.3* | |
cf87ffbe ER |
273 | |
274 | %files static | |
275 | %defattr(644,root,root,755) | |
276 | %{_libdir}/libfreeipmi.a | |
bf77cec9 | 277 | %{_libdir}/libipmiconsole.a |
278 | %{_libdir}/libipmidetect.a | |
279 | %{_libdir}/libipmimonitoring.a |