]>
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 |
9d037785 | 24 | Version: 1.0.1 |
bf77cec9 | 25 | Release: 0.1 |
1ccaf2b4 | 26 | License: GPL v2+ |
cf87ffbe | 27 | Group: Applications/System |
c52d4082 | 28 | Source0: http://ftp.gnu.org/gnu/freeipmi/%{name}-%{version}.tar.gz |
9d037785 | 29 | # Source0-md5: 4af11fb5645f025ac157684e3f5db98e |
1ccaf2b4 | 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 | ||
c52d4082 | 152 | %{__make} -j1 install \ |
cf87ffbe | 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 | 157 | # TODO: patch Makefile.am instead |
9d037785 | 158 | %{__rm} -r $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 |
9d037785 JB |
169 | %dir %{_sysconfdir}/freeipmi |
170 | %attr(640,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/freeipmi.conf | |
171 | %attr(444,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/freeipmi_interpret_sel.conf | |
172 | %attr(444,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/freeipmi_interpret_sensor.conf | |
173 | %attr(640,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/ipmidetect.conf | |
174 | %attr(640,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/libipmiconsole.conf | |
bf77cec9 | 175 | %attr(755,root,root) %{_sbindir}/bmc-config |
b1d6a380 | 176 | %attr(755,root,root) %{_sbindir}/bmc-device |
bf77cec9 | 177 | %attr(755,root,root) %{_sbindir}/bmc-info |
1ccaf2b4 JB |
178 | %attr(755,root,root) %{_sbindir}/ipmi-chassis |
179 | %attr(755,root,root) %{_sbindir}/ipmi-chassis-config | |
9d037785 | 180 | %attr(755,root,root) %{_sbindir}/ipmi-console |
1ccaf2b4 | 181 | %attr(755,root,root) %{_sbindir}/ipmi-dcmi |
9d037785 | 182 | %attr(755,root,root) %{_sbindir}/ipmi-detect |
bf77cec9 | 183 | %attr(755,root,root) %{_sbindir}/ipmi-fru |
184 | %attr(755,root,root) %{_sbindir}/ipmi-locate | |
bf77cec9 | 185 | %attr(755,root,root) %{_sbindir}/ipmi-oem |
1ccaf2b4 | 186 | %attr(755,root,root) %{_sbindir}/ipmi-pef-config |
9d037785 JB |
187 | %attr(755,root,root) %{_sbindir}/ipmi-ping |
188 | %attr(755,root,root) %{_sbindir}/ipmi-power | |
bf77cec9 | 189 | %attr(755,root,root) %{_sbindir}/ipmi-raw |
190 | %attr(755,root,root) %{_sbindir}/ipmi-sel | |
191 | %attr(755,root,root) %{_sbindir}/ipmi-sensors | |
192 | %attr(755,root,root) %{_sbindir}/ipmi-sensors-config | |
1ccaf2b4 JB |
193 | %attr(755,root,root) %{_sbindir}/ipmiconsole |
194 | %attr(755,root,root) %{_sbindir}/ipmidetect | |
195 | %attr(755,root,root) %{_sbindir}/ipmimonitoring | |
cf87ffbe ER |
196 | %attr(755,root,root) %{_sbindir}/ipmiping |
197 | %attr(755,root,root) %{_sbindir}/ipmipower | |
1ccaf2b4 | 198 | %attr(755,root,root) %{_sbindir}/pef-config |
9d037785 | 199 | %attr(755,root,root) %{_sbindir}/rmcp-ping |
bf77cec9 | 200 | %attr(755,root,root) %{_sbindir}/rmcpping |
bf77cec9 | 201 | %{_mandir}/man5/bmc-config.conf.5* |
b1d6a380 | 202 | %{_mandir}/man5/freeipmi.conf.5* |
9d037785 JB |
203 | %{_mandir}/man5/freeipmi_interpret_sel.conf.5* |
204 | %{_mandir}/man5/freeipmi_interpret_sensor.conf.5* | |
b1d6a380 | 205 | %{_mandir}/man5/ipmi_monitoring_sensors.conf.5* |
1ccaf2b4 JB |
206 | %{_mandir}/man5/ipmiconsole.conf.5* |
207 | %{_mandir}/man5/ipmidetect.conf.5* | |
b1d6a380 AG |
208 | %{_mandir}/man5/ipmimonitoring.conf.5* |
209 | %{_mandir}/man5/ipmimonitoring_sensors.conf.5* | |
1ccaf2b4 | 210 | %{_mandir}/man5/ipmipower.conf.5* |
9d037785 | 211 | %{_mandir}/man5/libipmiconsole.conf.5* |
b1d6a380 | 212 | %{_mandir}/man5/libipmimonitoring.conf.5* |
1ccaf2b4 JB |
213 | %{_mandir}/man7/freeipmi.7* |
214 | %{_mandir}/man8/bmc-config.8* | |
215 | %{_mandir}/man8/bmc-device.8* | |
216 | %{_mandir}/man8/bmc-info.8* | |
217 | %{_mandir}/man8/ipmi-chassis-config.8* | |
218 | %{_mandir}/man8/ipmi-chassis.8* | |
9d037785 | 219 | %{_mandir}/man8/ipmi-console.8* |
1ccaf2b4 | 220 | %{_mandir}/man8/ipmi-dcmi.8* |
9d037785 | 221 | %{_mandir}/man8/ipmi-detect.8* |
1ccaf2b4 JB |
222 | %{_mandir}/man8/ipmi-fru.8* |
223 | %{_mandir}/man8/ipmi-locate.8* | |
bf77cec9 | 224 | %{_mandir}/man8/ipmi-oem.8* |
1ccaf2b4 | 225 | %{_mandir}/man8/ipmi-pef-config.8* |
9d037785 JB |
226 | %{_mandir}/man8/ipmi-ping.8* |
227 | %{_mandir}/man8/ipmi-power.8* | |
bf77cec9 | 228 | %{_mandir}/man8/ipmi-raw.8* |
229 | %{_mandir}/man8/ipmi-sel.8* | |
bf77cec9 | 230 | %{_mandir}/man8/ipmi-sensors-config.8* |
1ccaf2b4 JB |
231 | %{_mandir}/man8/ipmi-sensors.8* |
232 | %{_mandir}/man8/ipmiconsole.8* | |
233 | %{_mandir}/man8/ipmidetect.8* | |
234 | %{_mandir}/man8/ipmimonitoring.8* | |
bf77cec9 | 235 | %{_mandir}/man8/ipmiping.8* |
236 | %{_mandir}/man8/ipmipower.8* | |
1ccaf2b4 | 237 | %{_mandir}/man8/pef-config.8* |
9d037785 | 238 | %{_mandir}/man8/rmcp-ping.8* |
bf77cec9 | 239 | %{_mandir}/man8/rmcpping.8* |
bf77cec9 | 240 | #%dir %{_localstatedir}/cache/ipmimonitoringsdrcache |
1ccaf2b4 | 241 | %{_infodir}/freeipmi-faq.info* |
bf77cec9 | 242 | %dir /var/log/freeipmi |
243 | ||
244 | %files bmc-watchdog | |
245 | %defattr(644,root,root,755) | |
1ccaf2b4 JB |
246 | %config(noreplace) /etc/rc.d/init.d/bmc-watchdog |
247 | %config(noreplace) /etc/sysconfig/bmc-watchdog | |
248 | %config(noreplace) /etc/logrotate.d/bmc-watchdog | |
cf87ffbe | 249 | %attr(755,root,root) %{_sbindir}/bmc-watchdog |
bf77cec9 | 250 | %{_mandir}/man8/bmc-watchdog.8* |
a20778c0 | 251 | %dir /var/log/freeipmi |
cf87ffbe | 252 | |
bf77cec9 | 253 | %files ipmidetectd |
a20778c0 | 254 | %defattr(644,root,root,755) |
bf77cec9 | 255 | %attr(755,root,root) %{_sbindir}/ipmidetectd |
1ccaf2b4 | 256 | %attr(754,root,root) /etc/rc.d/init.d/ipmidetectd |
9d037785 | 257 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/freeipmi/ipmidetectd.conf |
bf77cec9 | 258 | %{_mandir}/man5/ipmidetectd.conf.5* |
259 | %{_mandir}/man8/ipmidetectd.8* | |
cf87ffbe | 260 | |
a20778c0 ER |
261 | %files libs |
262 | %defattr(644,root,root,755) | |
1ccaf2b4 JB |
263 | %attr(755,root,root) %{_libdir}/libfreeipmi.so.*.*.* |
264 | %attr(755,root,root) %ghost %{_libdir}/libfreeipmi.so.10 | |
265 | %attr(755,root,root) %{_libdir}/libipmiconsole.so.*.*.* | |
266 | %attr(755,root,root) %ghost %{_libdir}/libipmiconsole.so.2 | |
267 | %attr(755,root,root) %{_libdir}/libipmidetect.so.*.*.* | |
268 | %attr(755,root,root) %ghost %{_libdir}/libipmidetect.so.0 | |
269 | %attr(755,root,root) %{_libdir}/libipmimonitoring.so.*.*.* | |
9d037785 | 270 | %attr(755,root,root) %ghost %{_libdir}/libipmimonitoring.so.5 |
a20778c0 ER |
271 | %dir /var/lib/freeipmi |
272 | /var/lib/freeipmi/ipckey | |
a20778c0 | 273 | |
cf87ffbe ER |
274 | %files devel |
275 | %defattr(644,root,root,755) | |
bf77cec9 | 276 | %attr(755,root,root) %{_libdir}/libipmiconsole.so |
6f5c48ee | 277 | %attr(755,root,root) %{_libdir}/libfreeipmi.so |
bf77cec9 | 278 | %attr(755,root,root) %{_libdir}/libipmidetect.so |
279 | %attr(755,root,root) %{_libdir}/libipmimonitoring.so | |
cf87ffbe | 280 | %{_libdir}/libfreeipmi.la |
bf77cec9 | 281 | %{_libdir}/libipmiconsole.la |
282 | %{_libdir}/libipmidetect.la | |
283 | %{_libdir}/libipmimonitoring.la | |
6f5c48ee | 284 | %{_includedir}/freeipmi |
bf77cec9 | 285 | %{_includedir}/ipmi*.h |
1ccaf2b4 JB |
286 | %{_mandir}/man3/libfreeipmi.3* |
287 | %{_mandir}/man3/libipmiconsole.3* | |
288 | %{_mandir}/man3/libipmidetect.3* | |
289 | %{_mandir}/man3/libipmimonitoring.3* | |
cf87ffbe ER |
290 | |
291 | %files static | |
292 | %defattr(644,root,root,755) | |
293 | %{_libdir}/libfreeipmi.a | |
bf77cec9 | 294 | %{_libdir}/libipmiconsole.a |
295 | %{_libdir}/libipmidetect.a | |
296 | %{_libdir}/libipmimonitoring.a |