]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - PLDize/register init scripts, register/deregister with chkconfig | |
3 | # - split based on provided spec.in: devel, fish, utils ? | |
4 | # still not sure about how to split packages. move -libs to main | |
5 | # and programs to -utils? or leave as it is? (but package init.d | |
6 | # scripts separately?). -libs contains /var/lib/%{name} (because | |
7 | # that .so needs to read ipckey inode), so one vote for discarding | |
8 | # -libs? | |
9 | # - additional split by requires/services (watchdog) | |
10 | Summary: GNU FreeIPMI - system management software | |
11 | Summary(pl.UTF-8): GNU FreeIPMI - oprogramowanie do zarządzania systemem | |
12 | Name: freeipmi | |
13 | Version: 1.5.7 | |
14 | Release: 1 | |
15 | License: GPL v3+ | |
16 | Group: Applications/System | |
17 | Source0: http://ftp.gnu.org/gnu/freeipmi/%{name}-%{version}.tar.gz | |
18 | # Source0-md5: b9d55b2e02de76bf3ad34fc86fc92b2b | |
19 | URL: http://www.gnu.org/software/freeipmi/ | |
20 | BuildRequires: autoconf >= 2.57 | |
21 | BuildRequires: automake >= 1:1.9 | |
22 | BuildRequires: guile-devel | |
23 | BuildRequires: libgcrypt-devel | |
24 | BuildRequires: libtool | |
25 | BuildRequires: readline-devel >= 4.0 | |
26 | Requires: %{name}-libs = %{version}-%{release} | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | The GNU FreeIPMI system provides "Remote-Console" (out-of-band) and | |
31 | "System Management Software" (in-band) based on IPMI v1.5/2.0 | |
32 | specification. This project includes: | |
33 | - KCS, SMIC, SSIF, LAN Drivers and C Library (libfreeipmi) | |
34 | - FreeIPMI SHell (fish) | |
35 | - Watchdog Daemon (bmc-watchdog) | |
36 | - Sensors (sensors) | |
37 | - System Event Log (sel) | |
38 | - BMC Info (bmc-info) | |
39 | - BMC Config (bmc-config) | |
40 | - IPMI Power (ipmipower) | |
41 | - IPMI Ping (ipmiping) | |
42 | - RMCP Ping (rmcpping) | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | System GNU FreeIPMI dostarcza "zdalną konsolę" (Remote-Console) oraz | |
46 | "oprogramowanie do zarządzania systemem" (System Management Software) | |
47 | oparte na specyfikacji IPMI v1.5/2.0. Projekt zawiera: | |
48 | - KCS, SMIC, SSIF, sterowniki LAN i bibliotekę C (libfreeipmi) | |
49 | - powłokę FreeIPMI SHell (fish) | |
50 | - demona watchdog (bmc-watchdog) | |
51 | - czujniki (sensors) | |
52 | - dziennik zdarzeń systemowych (sel - System Event Log) | |
53 | - narzędzie informacyjne BMC (bmc-info) | |
54 | - narzędzie konfiguracyjne BMC (bmc-config) | |
55 | - narzędzie IPMI Power (ipmipower) | |
56 | - ping dla IPMI (ipmiping) | |
57 | - ping dla RMCP (rmcpping) | |
58 | ||
59 | %package bmc-watchdog | |
60 | Summary: FreeIPMI BMC watchdog | |
61 | Summary(pl.UTF-8): FreeIPMI - watchdog BMC | |
62 | Group: Applications/System | |
63 | Requires: %{name} = %{version}-%{release} | |
64 | ||
65 | %description bmc-watchdog | |
66 | Provides a watchdog daemon for OS monitoring and recovery. | |
67 | ||
68 | %description bmc-watchdog -l pl.UTF-8 | |
69 | Ten pakiet udostępnia demona watchdoga do monitorowania systemu i | |
70 | uruchamiania po awarii. | |
71 | ||
72 | %package ipmidetectd | |
73 | Summary: IPMI node detection daemon | |
74 | Summary(pl.UTF-8): Demon wykrywający węzły IPMI | |
75 | Group: Applications/System | |
76 | Requires(post,preun): /sbin/ldconfig | |
77 | Requires: %{name} = %{version}-%{release} | |
78 | ||
79 | %description ipmidetectd | |
80 | IPMI node detection daemon. | |
81 | ||
82 | %description ipmidetectd -l pl.UTF-8 | |
83 | Demon wykrywający węzły IPMI. | |
84 | ||
85 | %package ipmiseld | |
86 | Summary: IPMI SEL syslog logging daemon | |
87 | Summary(pl.UTF-8): IPMI SEL - demon logujący do sysloga | |
88 | Group: Applications/System | |
89 | Requires(post,preun): /sbin/ldconfig | |
90 | Requires: %{name} = %{version}-%{release} | |
91 | ||
92 | %description ipmiseld | |
93 | IPMI SEL syslog logging daemon. | |
94 | ||
95 | %description ipmiseld -l pl.UTF-8 | |
96 | IPMI SEL - demon logujący do sysloga. | |
97 | ||
98 | %package libs | |
99 | Summary: Shared libraries for FreeIPMI | |
100 | Summary(pl.UTF-8): Biblioteki współdzielone FreeIPMI | |
101 | Group: Libraries | |
102 | ||
103 | %description libs | |
104 | Shared libraries for FreeIPMI. | |
105 | ||
106 | %description libs -l pl.UTF-8 | |
107 | Biblioteki współdzielone FreeIPMI. | |
108 | ||
109 | %package devel | |
110 | Summary: Development package for FreeIPMI | |
111 | Summary(pl.UTF-8): Pakiet programistyczny FreeIPMI | |
112 | Group: Development/Libraries | |
113 | Requires: %{name}-libs = %{version}-%{release} | |
114 | Requires: libgcrypt-devel | |
115 | ||
116 | %description devel | |
117 | Development package for FreeIPMI. This package includes the FreeIPMI | |
118 | header files. | |
119 | ||
120 | %description devel -l pl.UTF-8 | |
121 | Pakiet programistyczny FreeIPMI. Zawiera pliki nagłówkowe. | |
122 | ||
123 | %package static | |
124 | Summary: Static FreeIPMI library | |
125 | Summary(pl.UTF-8): Statyczna biblioteka FreeIPMI | |
126 | Group: Development/Libraries | |
127 | Requires: %{name}-devel = %{version}-%{release} | |
128 | ||
129 | %description static | |
130 | Static FreeIPMI library. | |
131 | ||
132 | %description static -l pl.UTF-8 | |
133 | Statyczna biblioteka FreeIPMI. | |
134 | ||
135 | %prep | |
136 | %setup -q | |
137 | ||
138 | %build | |
139 | %{__libtoolize} | |
140 | %{__aclocal} -I config | |
141 | %{__autoconf} | |
142 | %{__autoheader} | |
143 | %{__automake} | |
144 | %configure \ | |
145 | --with-systemdsystemunitdir=%{systemdunitdir} | |
146 | ||
147 | %{__make} | |
148 | ||
149 | %install | |
150 | rm -rf $RPM_BUILD_ROOT | |
151 | ||
152 | %{__make} -j1 install \ | |
153 | DESTDIR=$RPM_BUILD_ROOT \ | |
154 | INSTALL_DAEMON_SCRIPTS="install-init-scripts install-systemd-scripts" | |
155 | ||
156 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d | |
157 | %{__mv} $RPM_BUILD_ROOT/etc/init.d/* $RPM_BUILD_ROOT/etc/rc.d/init.d | |
158 | # TODO: patch Makefile.am instead | |
159 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
160 | ||
161 | %clean | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
164 | %post -p /sbin/postshell | |
165 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
166 | ||
167 | %postun -p /sbin/postshell | |
168 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
169 | ||
170 | %post libs -p /sbin/ldconfig | |
171 | %postun libs -p /sbin/ldconfig | |
172 | ||
173 | %files | |
174 | %defattr(644,root,root,755) | |
175 | %doc AUTHORS ChangeLog DISCLAIMER.* INSTALL NEWS README TODO doc/freeipmi-*.txt | |
176 | %dir %{_sysconfdir}/freeipmi | |
177 | %attr(640,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/freeipmi.conf | |
178 | %attr(444,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/freeipmi_interpret_sel.conf | |
179 | %attr(444,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/freeipmi_interpret_sensor.conf | |
180 | %attr(640,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/ipmidetect.conf | |
181 | %attr(640,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/libipmiconsole.conf | |
182 | %attr(755,root,root) %{_sbindir}/bmc-config | |
183 | %attr(755,root,root) %{_sbindir}/bmc-device | |
184 | %attr(755,root,root) %{_sbindir}/bmc-info | |
185 | %attr(755,root,root) %{_sbindir}/ipmi-chassis | |
186 | %attr(755,root,root) %{_sbindir}/ipmi-chassis-config | |
187 | %attr(755,root,root) %{_sbindir}/ipmi-config | |
188 | %attr(755,root,root) %{_sbindir}/ipmi-console | |
189 | %attr(755,root,root) %{_sbindir}/ipmi-dcmi | |
190 | %attr(755,root,root) %{_sbindir}/ipmi-detect | |
191 | %attr(755,root,root) %{_sbindir}/ipmi-fru | |
192 | %attr(755,root,root) %{_sbindir}/ipmi-locate | |
193 | %attr(755,root,root) %{_sbindir}/ipmi-oem | |
194 | %attr(755,root,root) %{_sbindir}/ipmi-pef-config | |
195 | %attr(755,root,root) %{_sbindir}/ipmi-pet | |
196 | %attr(755,root,root) %{_sbindir}/ipmi-ping | |
197 | %attr(755,root,root) %{_sbindir}/ipmi-power | |
198 | %attr(755,root,root) %{_sbindir}/ipmi-raw | |
199 | %attr(755,root,root) %{_sbindir}/ipmi-sel | |
200 | %attr(755,root,root) %{_sbindir}/ipmi-sensors | |
201 | %attr(755,root,root) %{_sbindir}/ipmi-sensors-config | |
202 | %attr(755,root,root) %{_sbindir}/ipmiconsole | |
203 | %attr(755,root,root) %{_sbindir}/ipmidetect | |
204 | %attr(755,root,root) %{_sbindir}/ipmimonitoring | |
205 | %attr(755,root,root) %{_sbindir}/ipmiping | |
206 | %attr(755,root,root) %{_sbindir}/ipmipower | |
207 | %attr(755,root,root) %{_sbindir}/pef-config | |
208 | %attr(755,root,root) %{_sbindir}/rmcp-ping | |
209 | %attr(755,root,root) %{_sbindir}/rmcpping | |
210 | %{_mandir}/man5/bmc-config.conf.5* | |
211 | %{_mandir}/man5/freeipmi.conf.5* | |
212 | %{_mandir}/man5/freeipmi_interpret_sel.conf.5* | |
213 | %{_mandir}/man5/freeipmi_interpret_sensor.conf.5* | |
214 | %{_mandir}/man5/ipmi-config.conf.5* | |
215 | %{_mandir}/man5/ipmi_monitoring_sensors.conf.5* | |
216 | %{_mandir}/man5/ipmiconsole.conf.5* | |
217 | %{_mandir}/man5/ipmidetect.conf.5* | |
218 | %{_mandir}/man5/ipmimonitoring.conf.5* | |
219 | %{_mandir}/man5/ipmimonitoring_sensors.conf.5* | |
220 | %{_mandir}/man5/ipmipower.conf.5* | |
221 | %{_mandir}/man5/libipmiconsole.conf.5* | |
222 | %{_mandir}/man5/libipmimonitoring.conf.5* | |
223 | %{_mandir}/man7/freeipmi.7* | |
224 | %{_mandir}/man8/bmc-config.8* | |
225 | %{_mandir}/man8/bmc-device.8* | |
226 | %{_mandir}/man8/bmc-info.8* | |
227 | %{_mandir}/man8/ipmi-chassis-config.8* | |
228 | %{_mandir}/man8/ipmi-chassis.8* | |
229 | %{_mandir}/man8/ipmi-config.8* | |
230 | %{_mandir}/man8/ipmi-console.8* | |
231 | %{_mandir}/man8/ipmi-dcmi.8* | |
232 | %{_mandir}/man8/ipmi-detect.8* | |
233 | %{_mandir}/man8/ipmi-fru.8* | |
234 | %{_mandir}/man8/ipmi-locate.8* | |
235 | %{_mandir}/man8/ipmi-oem.8* | |
236 | %{_mandir}/man8/ipmi-pef-config.8* | |
237 | %{_mandir}/man8/ipmi-pet.8* | |
238 | %{_mandir}/man8/ipmi-ping.8* | |
239 | %{_mandir}/man8/ipmi-power.8* | |
240 | %{_mandir}/man8/ipmi-raw.8* | |
241 | %{_mandir}/man8/ipmi-sel.8* | |
242 | %{_mandir}/man8/ipmi-sensors-config.8* | |
243 | %{_mandir}/man8/ipmi-sensors.8* | |
244 | %{_mandir}/man8/ipmiconsole.8* | |
245 | %{_mandir}/man8/ipmidetect.8* | |
246 | %{_mandir}/man8/ipmimonitoring.8* | |
247 | %{_mandir}/man8/ipmiping.8* | |
248 | %{_mandir}/man8/ipmipower.8* | |
249 | %{_mandir}/man8/pef-config.8* | |
250 | %{_mandir}/man8/rmcp-ping.8* | |
251 | %{_mandir}/man8/rmcpping.8* | |
252 | #%dir %{_localstatedir}/cache/ipmimonitoringsdrcache | |
253 | %{_infodir}/freeipmi-faq.info* | |
254 | ||
255 | %files bmc-watchdog | |
256 | %defattr(644,root,root,755) | |
257 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bmc-watchdog | |
258 | %attr(754,root,root) %config(noreplace) /etc/rc.d/init.d/bmc-watchdog | |
259 | %{systemdunitdir}/bmc-watchdog.service | |
260 | %attr(755,root,root) %{_sbindir}/bmc-watchdog | |
261 | %{_mandir}/man8/bmc-watchdog.8* | |
262 | ||
263 | %files ipmidetectd | |
264 | %defattr(644,root,root,755) | |
265 | %attr(755,root,root) %{_sbindir}/ipmidetectd | |
266 | %attr(754,root,root) /etc/rc.d/init.d/ipmidetectd | |
267 | %{systemdunitdir}/ipmidetectd.service | |
268 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/freeipmi/ipmidetectd.conf | |
269 | %{_mandir}/man5/ipmidetectd.conf.5* | |
270 | %{_mandir}/man8/ipmidetectd.8* | |
271 | ||
272 | %files ipmiseld | |
273 | %defattr(644,root,root,755) | |
274 | %attr(755,root,root) %{_sbindir}/ipmiseld | |
275 | %attr(754,root,root) /etc/rc.d/init.d/ipmiseld | |
276 | %{systemdunitdir}/ipmiseld.service | |
277 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/freeipmi/ipmiseld.conf | |
278 | %{_mandir}/man5/ipmiseld.conf.5* | |
279 | %{_mandir}/man8/ipmiseld.8* | |
280 | ||
281 | %files libs | |
282 | %defattr(644,root,root,755) | |
283 | %attr(755,root,root) %{_libdir}/libfreeipmi.so.*.*.* | |
284 | %attr(755,root,root) %ghost %{_libdir}/libfreeipmi.so.17 | |
285 | %attr(755,root,root) %{_libdir}/libipmiconsole.so.*.*.* | |
286 | %attr(755,root,root) %ghost %{_libdir}/libipmiconsole.so.2 | |
287 | %attr(755,root,root) %{_libdir}/libipmidetect.so.*.*.* | |
288 | %attr(755,root,root) %ghost %{_libdir}/libipmidetect.so.0 | |
289 | %attr(755,root,root) %{_libdir}/libipmimonitoring.so.*.*.* | |
290 | %attr(755,root,root) %ghost %{_libdir}/libipmimonitoring.so.6 | |
291 | %dir /var/lib/freeipmi | |
292 | /var/lib/freeipmi/ipckey | |
293 | ||
294 | %files devel | |
295 | %defattr(644,root,root,755) | |
296 | %attr(755,root,root) %{_libdir}/libipmiconsole.so | |
297 | %attr(755,root,root) %{_libdir}/libfreeipmi.so | |
298 | %attr(755,root,root) %{_libdir}/libipmidetect.so | |
299 | %attr(755,root,root) %{_libdir}/libipmimonitoring.so | |
300 | %{_libdir}/libfreeipmi.la | |
301 | %{_libdir}/libipmiconsole.la | |
302 | %{_libdir}/libipmidetect.la | |
303 | %{_libdir}/libipmimonitoring.la | |
304 | %{_includedir}/freeipmi | |
305 | %{_includedir}/ipmi*.h | |
306 | %{_pkgconfigdir}/libfreeipmi.pc | |
307 | %{_pkgconfigdir}/libipmiconsole.pc | |
308 | %{_pkgconfigdir}/libipmidetect.pc | |
309 | %{_pkgconfigdir}/libipmimonitoring.pc | |
310 | %{_mandir}/man3/libfreeipmi.3* | |
311 | %{_mandir}/man3/libipmiconsole.3* | |
312 | %{_mandir}/man3/libipmidetect.3* | |
313 | %{_mandir}/man3/libipmimonitoring.3* | |
314 | ||
315 | %files static | |
316 | %defattr(644,root,root,755) | |
317 | %{_libdir}/libfreeipmi.a | |
318 | %{_libdir}/libipmiconsole.a | |
319 | %{_libdir}/libipmidetect.a | |
320 | %{_libdir}/libipmimonitoring.a |