]>
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 |
ad5d7bf7 | 24 | Version: 1.0.8 |
94515342 | 25 | Release: 1 |
1ccaf2b4 | 26 | License: GPL v2+ |
cf87ffbe | 27 | Group: Applications/System |
c52d4082 | 28 | Source0: http://ftp.gnu.org/gnu/freeipmi/%{name}-%{version}.tar.gz |
ad5d7bf7 | 29 | # Source0-md5: e95a33e91f04c866f74de16e06badd49 |
cf87ffbe | 30 | URL: http://www.gnu.org/software/freeipmi/ |
1ccaf2b4 JB |
31 | BuildRequires: autoconf >= 2.57 |
32 | BuildRequires: automake >= 1:1.9 | |
bf77cec9 | 33 | BuildRequires: grep |
0eb4fec9 | 34 | BuildRequires: guile-devel |
1ccaf2b4 JB |
35 | BuildRequires: libgcrypt-devel |
36 | BuildRequires: libtool | |
1759b445 JB |
37 | BuildRequires: readline-devel >= 4.0 |
38 | Requires: %{name}-libs = %{version}-%{release} | |
cf87ffbe ER |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
cf87ffbe ER |
41 | %description |
42 | The GNU FreeIPMI system provides "Remote-Console" (out-of-band) and | |
43 | "System Management Software" (in-band) based on IPMI v1.5/2.0 | |
44 | specification. This project includes: | |
45 | - KCS, SMIC, SSIF, LAN Drivers and C Library (libfreeipmi) | |
46 | - FreeIPMI SHell (fish) | |
47 | - Watchdog Daemon (bmc-watchdog) | |
48 | - Sensors (sensors) | |
49 | - System Event Log (sel) | |
50 | - BMC Info (bmc-info) | |
51 | - BMC Config (bmc-config) | |
52 | - IPMI Power (ipmipower) | |
53 | - IPMI Ping (ipmiping) | |
54 | - RMCP Ping (rmcpping) | |
55 | ||
3314df50 JR |
56 | %description -l pl.UTF-8 |
57 | System GNU FreeIPMI dostarcza "zdalną konsolę" (Remote-Console) oraz | |
58 | "oprogramowanie do zarządzania systemem" (System Management Software) | |
1759b445 | 59 | oparte na specyfikacji IPMI v1.5/2.0. Projekt zawiera: |
3314df50 JR |
60 | - KCS, SMIC, SSIF, sterowniki LAN i bibliotekę C (libfreeipmi) |
61 | - powłokę FreeIPMI SHell (fish) | |
1759b445 JB |
62 | - demona watchdog (bmc-watchdog) |
63 | - czujniki (sensors) | |
3314df50 JR |
64 | - dziennik zdarzeń systemowych (sel - System Event Log) |
65 | - narzędzie informacyjne BMC (bmc-info) | |
66 | - narzędzie konfiguracyjne BMC (bmc-config) | |
67 | - narzędzie IPMI Power (ipmipower) | |
1759b445 JB |
68 | - ping dla IPMI (ipmiping) |
69 | - ping dla RMCP (rmcpping) | |
70 | ||
bf77cec9 | 71 | %package bmc-watchdog |
72 | Summary: FreeIPMI BMC watchdog | |
e7ac736b | 73 | Summary(pl.UTF-8): FreeIPMI - watchdog BMC |
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 | |
e7ac736b JB |
81 | %description bmc-watchdog -l pl.UTF-8 |
82 | Ten pakiet udostępnia demona watchdoga do monitorowania systemu i | |
83 | uruchamiania po awarii. | |
bf77cec9 | 84 | |
85 | %package ipmidetectd | |
e7ac736b JB |
86 | Summary: IPMI node detection daemon |
87 | Summary(pl.UTF-8): Demon wykrywający węzły IPMI | |
bf77cec9 | 88 | Group: Applications/System |
89 | Requires: %{name} = %{version}-%{release} | |
90 | Requires: logrotate | |
91 | ||
92 | %description ipmidetectd | |
93 | IPMI node detection daemon. | |
94 | ||
e7ac736b JB |
95 | %description ipmidetectd -l pl.UTF-8 |
96 | Demon wykrywający węzły IPMI. | |
97 | ||
98 | %package libs | |
99 | Summary: Shared libraries for FreeIPMI | |
100 | Summary(pl.UTF-8): Biblioteki współdzielone FreeIPMI | |
101 | Group: Libraries | |
bf77cec9 | 102 | |
a20778c0 | 103 | %description libs |
1759b445 JB |
104 | Shared libraries for FreeIPMI. |
105 | ||
3314df50 JR |
106 | %description libs -l pl.UTF-8 |
107 | Biblioteki współdzielone FreeIPMI. | |
cf87ffbe ER |
108 | |
109 | %package devel | |
110 | Summary: Development package for FreeIPMI | |
2b63a779 | 111 | Summary(pl.UTF-8): Pakiet programistyczny FreeIPMI |
cf87ffbe | 112 | Group: Development/Libraries |
a20778c0 | 113 | Requires: %{name}-libs = %{version}-%{release} |
f3f67cbb | 114 | Requires: libgcrypt-devel |
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 | |
137 | ||
138 | %build | |
1ccaf2b4 JB |
139 | %{__libtoolize} |
140 | %{__aclocal} -I config | |
141 | %{__autoconf} | |
142 | %{__autoheader} | |
143 | %{__automake} | |
cf87ffbe ER |
144 | %configure |
145 | ||
146 | %{__make} | |
147 | ||
148 | %install | |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
c52d4082 | 151 | %{__make} -j1 install \ |
cf87ffbe | 152 | DESTDIR=$RPM_BUILD_ROOT |
1ccaf2b4 | 153 | |
8d77549e | 154 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
1ccaf2b4 | 155 | mv $RPM_BUILD_ROOT/etc/init.d/* $RPM_BUILD_ROOT/etc/rc.d/init.d |
cf87ffbe | 156 | # TODO: patch Makefile.am instead |
9d037785 | 157 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/freeipmi |
cf87ffbe ER |
158 | |
159 | %clean | |
160 | rm -rf $RPM_BUILD_ROOT | |
161 | ||
375b818c | 162 | %post libs -p /sbin/ldconfig |
a20778c0 | 163 | %postun libs -p /sbin/ldconfig |
cf87ffbe ER |
164 | |
165 | %files | |
166 | %defattr(644,root,root,755) | |
bf77cec9 | 167 | %doc AUTHORS ChangeLog DISCLAIMER.* INSTALL NEWS README TODO doc/freeipmi-*.txt |
9d037785 JB |
168 | %dir %{_sysconfdir}/freeipmi |
169 | %attr(640,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/freeipmi.conf | |
170 | %attr(444,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/freeipmi_interpret_sel.conf | |
171 | %attr(444,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/freeipmi_interpret_sensor.conf | |
172 | %attr(640,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/ipmidetect.conf | |
173 | %attr(640,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/libipmiconsole.conf | |
bf77cec9 | 174 | %attr(755,root,root) %{_sbindir}/bmc-config |
b1d6a380 | 175 | %attr(755,root,root) %{_sbindir}/bmc-device |
bf77cec9 | 176 | %attr(755,root,root) %{_sbindir}/bmc-info |
1ccaf2b4 JB |
177 | %attr(755,root,root) %{_sbindir}/ipmi-chassis |
178 | %attr(755,root,root) %{_sbindir}/ipmi-chassis-config | |
9d037785 | 179 | %attr(755,root,root) %{_sbindir}/ipmi-console |
1ccaf2b4 | 180 | %attr(755,root,root) %{_sbindir}/ipmi-dcmi |
9d037785 | 181 | %attr(755,root,root) %{_sbindir}/ipmi-detect |
bf77cec9 | 182 | %attr(755,root,root) %{_sbindir}/ipmi-fru |
183 | %attr(755,root,root) %{_sbindir}/ipmi-locate | |
bf77cec9 | 184 | %attr(755,root,root) %{_sbindir}/ipmi-oem |
1ccaf2b4 | 185 | %attr(755,root,root) %{_sbindir}/ipmi-pef-config |
9d037785 JB |
186 | %attr(755,root,root) %{_sbindir}/ipmi-ping |
187 | %attr(755,root,root) %{_sbindir}/ipmi-power | |
bf77cec9 | 188 | %attr(755,root,root) %{_sbindir}/ipmi-raw |
189 | %attr(755,root,root) %{_sbindir}/ipmi-sel | |
190 | %attr(755,root,root) %{_sbindir}/ipmi-sensors | |
191 | %attr(755,root,root) %{_sbindir}/ipmi-sensors-config | |
1ccaf2b4 JB |
192 | %attr(755,root,root) %{_sbindir}/ipmiconsole |
193 | %attr(755,root,root) %{_sbindir}/ipmidetect | |
194 | %attr(755,root,root) %{_sbindir}/ipmimonitoring | |
cf87ffbe ER |
195 | %attr(755,root,root) %{_sbindir}/ipmiping |
196 | %attr(755,root,root) %{_sbindir}/ipmipower | |
1ccaf2b4 | 197 | %attr(755,root,root) %{_sbindir}/pef-config |
9d037785 | 198 | %attr(755,root,root) %{_sbindir}/rmcp-ping |
bf77cec9 | 199 | %attr(755,root,root) %{_sbindir}/rmcpping |
bf77cec9 | 200 | %{_mandir}/man5/bmc-config.conf.5* |
b1d6a380 | 201 | %{_mandir}/man5/freeipmi.conf.5* |
9d037785 JB |
202 | %{_mandir}/man5/freeipmi_interpret_sel.conf.5* |
203 | %{_mandir}/man5/freeipmi_interpret_sensor.conf.5* | |
b1d6a380 | 204 | %{_mandir}/man5/ipmi_monitoring_sensors.conf.5* |
1ccaf2b4 JB |
205 | %{_mandir}/man5/ipmiconsole.conf.5* |
206 | %{_mandir}/man5/ipmidetect.conf.5* | |
b1d6a380 AG |
207 | %{_mandir}/man5/ipmimonitoring.conf.5* |
208 | %{_mandir}/man5/ipmimonitoring_sensors.conf.5* | |
1ccaf2b4 | 209 | %{_mandir}/man5/ipmipower.conf.5* |
9d037785 | 210 | %{_mandir}/man5/libipmiconsole.conf.5* |
b1d6a380 | 211 | %{_mandir}/man5/libipmimonitoring.conf.5* |
1ccaf2b4 JB |
212 | %{_mandir}/man7/freeipmi.7* |
213 | %{_mandir}/man8/bmc-config.8* | |
214 | %{_mandir}/man8/bmc-device.8* | |
215 | %{_mandir}/man8/bmc-info.8* | |
216 | %{_mandir}/man8/ipmi-chassis-config.8* | |
217 | %{_mandir}/man8/ipmi-chassis.8* | |
9d037785 | 218 | %{_mandir}/man8/ipmi-console.8* |
1ccaf2b4 | 219 | %{_mandir}/man8/ipmi-dcmi.8* |
9d037785 | 220 | %{_mandir}/man8/ipmi-detect.8* |
1ccaf2b4 JB |
221 | %{_mandir}/man8/ipmi-fru.8* |
222 | %{_mandir}/man8/ipmi-locate.8* | |
bf77cec9 | 223 | %{_mandir}/man8/ipmi-oem.8* |
1ccaf2b4 | 224 | %{_mandir}/man8/ipmi-pef-config.8* |
9d037785 JB |
225 | %{_mandir}/man8/ipmi-ping.8* |
226 | %{_mandir}/man8/ipmi-power.8* | |
bf77cec9 | 227 | %{_mandir}/man8/ipmi-raw.8* |
228 | %{_mandir}/man8/ipmi-sel.8* | |
bf77cec9 | 229 | %{_mandir}/man8/ipmi-sensors-config.8* |
1ccaf2b4 JB |
230 | %{_mandir}/man8/ipmi-sensors.8* |
231 | %{_mandir}/man8/ipmiconsole.8* | |
232 | %{_mandir}/man8/ipmidetect.8* | |
233 | %{_mandir}/man8/ipmimonitoring.8* | |
bf77cec9 | 234 | %{_mandir}/man8/ipmiping.8* |
235 | %{_mandir}/man8/ipmipower.8* | |
1ccaf2b4 | 236 | %{_mandir}/man8/pef-config.8* |
9d037785 | 237 | %{_mandir}/man8/rmcp-ping.8* |
bf77cec9 | 238 | %{_mandir}/man8/rmcpping.8* |
bf77cec9 | 239 | #%dir %{_localstatedir}/cache/ipmimonitoringsdrcache |
1ccaf2b4 | 240 | %{_infodir}/freeipmi-faq.info* |
bf77cec9 | 241 | %dir /var/log/freeipmi |
242 | ||
243 | %files bmc-watchdog | |
244 | %defattr(644,root,root,755) | |
1ccaf2b4 JB |
245 | %config(noreplace) /etc/rc.d/init.d/bmc-watchdog |
246 | %config(noreplace) /etc/sysconfig/bmc-watchdog | |
247 | %config(noreplace) /etc/logrotate.d/bmc-watchdog | |
cf87ffbe | 248 | %attr(755,root,root) %{_sbindir}/bmc-watchdog |
bf77cec9 | 249 | %{_mandir}/man8/bmc-watchdog.8* |
a20778c0 | 250 | %dir /var/log/freeipmi |
cf87ffbe | 251 | |
bf77cec9 | 252 | %files ipmidetectd |
a20778c0 | 253 | %defattr(644,root,root,755) |
bf77cec9 | 254 | %attr(755,root,root) %{_sbindir}/ipmidetectd |
1ccaf2b4 | 255 | %attr(754,root,root) /etc/rc.d/init.d/ipmidetectd |
9d037785 | 256 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/freeipmi/ipmidetectd.conf |
bf77cec9 | 257 | %{_mandir}/man5/ipmidetectd.conf.5* |
258 | %{_mandir}/man8/ipmidetectd.8* | |
cf87ffbe | 259 | |
a20778c0 ER |
260 | %files libs |
261 | %defattr(644,root,root,755) | |
1ccaf2b4 JB |
262 | %attr(755,root,root) %{_libdir}/libfreeipmi.so.*.*.* |
263 | %attr(755,root,root) %ghost %{_libdir}/libfreeipmi.so.10 | |
264 | %attr(755,root,root) %{_libdir}/libipmiconsole.so.*.*.* | |
265 | %attr(755,root,root) %ghost %{_libdir}/libipmiconsole.so.2 | |
266 | %attr(755,root,root) %{_libdir}/libipmidetect.so.*.*.* | |
267 | %attr(755,root,root) %ghost %{_libdir}/libipmidetect.so.0 | |
268 | %attr(755,root,root) %{_libdir}/libipmimonitoring.so.*.*.* | |
9d037785 | 269 | %attr(755,root,root) %ghost %{_libdir}/libipmimonitoring.so.5 |
a20778c0 ER |
270 | %dir /var/lib/freeipmi |
271 | /var/lib/freeipmi/ipckey | |
a20778c0 | 272 | |
cf87ffbe ER |
273 | %files devel |
274 | %defattr(644,root,root,755) | |
bf77cec9 | 275 | %attr(755,root,root) %{_libdir}/libipmiconsole.so |
6f5c48ee | 276 | %attr(755,root,root) %{_libdir}/libfreeipmi.so |
bf77cec9 | 277 | %attr(755,root,root) %{_libdir}/libipmidetect.so |
278 | %attr(755,root,root) %{_libdir}/libipmimonitoring.so | |
cf87ffbe | 279 | %{_libdir}/libfreeipmi.la |
bf77cec9 | 280 | %{_libdir}/libipmiconsole.la |
281 | %{_libdir}/libipmidetect.la | |
282 | %{_libdir}/libipmimonitoring.la | |
6f5c48ee | 283 | %{_includedir}/freeipmi |
bf77cec9 | 284 | %{_includedir}/ipmi*.h |
f3f67cbb JB |
285 | %{_pkgconfigdir}/libfreeipmi.pc |
286 | %{_pkgconfigdir}/libipmiconsole.pc | |
287 | %{_pkgconfigdir}/libipmidetect.pc | |
288 | %{_pkgconfigdir}/libipmimonitoring.pc | |
1ccaf2b4 JB |
289 | %{_mandir}/man3/libfreeipmi.3* |
290 | %{_mandir}/man3/libipmiconsole.3* | |
291 | %{_mandir}/man3/libipmidetect.3* | |
292 | %{_mandir}/man3/libipmimonitoring.3* | |
cf87ffbe ER |
293 | |
294 | %files static | |
295 | %defattr(644,root,root,755) | |
296 | %{_libdir}/libfreeipmi.a | |
bf77cec9 | 297 | %{_libdir}/libipmiconsole.a |
298 | %{_libdir}/libipmidetect.a | |
299 | %{_libdir}/libipmimonitoring.a |