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