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