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