]>
Commit | Line | Data |
---|---|---|
cf87ffbe | 1 | # TODO |
b93ce681 | 2 | # - PLDize/register init scripts, register/deregister with chkconfig |
cf87ffbe | 3 | # - split based on provided spec.in: devel, fish, utils ? |
a20778c0 ER |
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? | |
cf87ffbe | 9 | # - additional split by requires/services (watchdog) |
6f5c48ee | 10 | Summary: GNU FreeIPMI - system management software |
2b63a779 | 11 | Summary(pl.UTF-8): GNU FreeIPMI - oprogramowanie do zarządzania systemem |
cf87ffbe | 12 | Name: freeipmi |
b3c2f764 | 13 | Version: 1.6.7 |
583b9a01 | 14 | Release: 1 |
564066b2 | 15 | License: GPL v3+ |
cf87ffbe | 16 | Group: Applications/System |
d2ec1c6d | 17 | Source0: https://ftp.gnu.org/gnu/freeipmi/%{name}-%{version}.tar.gz |
b3c2f764 | 18 | # Source0-md5: 9024ce181f719502ebbfd859434cfd60 |
cf87ffbe | 19 | URL: http://www.gnu.org/software/freeipmi/ |
1ccaf2b4 JB |
20 | BuildRequires: autoconf >= 2.57 |
21 | BuildRequires: automake >= 1:1.9 | |
0eb4fec9 | 22 | BuildRequires: guile-devel |
1ccaf2b4 JB |
23 | BuildRequires: libgcrypt-devel |
24 | BuildRequires: libtool | |
1759b445 JB |
25 | BuildRequires: readline-devel >= 4.0 |
26 | Requires: %{name}-libs = %{version}-%{release} | |
cf87ffbe ER |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
cf87ffbe ER |
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 | ||
3314df50 JR |
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) | |
1759b445 | 47 | oparte na specyfikacji IPMI v1.5/2.0. Projekt zawiera: |
3314df50 JR |
48 | - KCS, SMIC, SSIF, sterowniki LAN i bibliotekę C (libfreeipmi) |
49 | - powłokę FreeIPMI SHell (fish) | |
1759b445 JB |
50 | - demona watchdog (bmc-watchdog) |
51 | - czujniki (sensors) | |
3314df50 JR |
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) | |
1759b445 JB |
56 | - ping dla IPMI (ipmiping) |
57 | - ping dla RMCP (rmcpping) | |
58 | ||
bf77cec9 | 59 | %package bmc-watchdog |
60 | Summary: FreeIPMI BMC watchdog | |
e7ac736b | 61 | Summary(pl.UTF-8): FreeIPMI - watchdog BMC |
a20778c0 ER |
62 | Group: Applications/System |
63 | Requires: %{name} = %{version}-%{release} | |
a20778c0 | 64 | |
bf77cec9 | 65 | %description bmc-watchdog |
66 | Provides a watchdog daemon for OS monitoring and recovery. | |
1759b445 | 67 | |
e7ac736b JB |
68 | %description bmc-watchdog -l pl.UTF-8 |
69 | Ten pakiet udostępnia demona watchdoga do monitorowania systemu i | |
70 | uruchamiania po awarii. | |
bf77cec9 | 71 | |
72 | %package ipmidetectd | |
e7ac736b JB |
73 | Summary: IPMI node detection daemon |
74 | Summary(pl.UTF-8): Demon wykrywający węzły IPMI | |
bf77cec9 | 75 | Group: Applications/System |
39e711d4 | 76 | Requires(post,preun): /sbin/ldconfig |
bf77cec9 | 77 | Requires: %{name} = %{version}-%{release} |
bf77cec9 | 78 | |
79 | %description ipmidetectd | |
80 | IPMI node detection daemon. | |
81 | ||
e7ac736b JB |
82 | %description ipmidetectd -l pl.UTF-8 |
83 | Demon wykrywający węzły IPMI. | |
84 | ||
39e711d4 JB |
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 | ||
e7ac736b JB |
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} | |
46346733 JB |
144 | %configure \ |
145 | --with-systemdsystemunitdir=%{systemdunitdir} | |
cf87ffbe ER |
146 | |
147 | %{__make} | |
148 | ||
149 | %install | |
150 | rm -rf $RPM_BUILD_ROOT | |
151 | ||
c52d4082 | 152 | %{__make} -j1 install \ |
1dff6c6d JB |
153 | DESTDIR=$RPM_BUILD_ROOT \ |
154 | INSTALL_DAEMON_SCRIPTS="install-init-scripts install-systemd-scripts" | |
1ccaf2b4 | 155 | |
8d77549e | 156 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
46346733 | 157 | %{__mv} $RPM_BUILD_ROOT/etc/init.d/* $RPM_BUILD_ROOT/etc/rc.d/init.d |
cf87ffbe | 158 | # TODO: patch Makefile.am instead |
b93ce681 | 159 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
cf87ffbe ER |
160 | |
161 | %clean | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
57e79115 ER |
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 | ||
375b818c | 170 | %post libs -p /sbin/ldconfig |
a20778c0 | 171 | %postun libs -p /sbin/ldconfig |
cf87ffbe ER |
172 | |
173 | %files | |
174 | %defattr(644,root,root,755) | |
bf77cec9 | 175 | %doc AUTHORS ChangeLog DISCLAIMER.* INSTALL NEWS README TODO doc/freeipmi-*.txt |
9d037785 JB |
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 | |
bf77cec9 | 182 | %attr(755,root,root) %{_sbindir}/bmc-config |
b1d6a380 | 183 | %attr(755,root,root) %{_sbindir}/bmc-device |
bf77cec9 | 184 | %attr(755,root,root) %{_sbindir}/bmc-info |
1ccaf2b4 JB |
185 | %attr(755,root,root) %{_sbindir}/ipmi-chassis |
186 | %attr(755,root,root) %{_sbindir}/ipmi-chassis-config | |
517d9dd7 | 187 | %attr(755,root,root) %{_sbindir}/ipmi-config |
9d037785 | 188 | %attr(755,root,root) %{_sbindir}/ipmi-console |
1ccaf2b4 | 189 | %attr(755,root,root) %{_sbindir}/ipmi-dcmi |
9d037785 | 190 | %attr(755,root,root) %{_sbindir}/ipmi-detect |
bf77cec9 | 191 | %attr(755,root,root) %{_sbindir}/ipmi-fru |
192 | %attr(755,root,root) %{_sbindir}/ipmi-locate | |
bf77cec9 | 193 | %attr(755,root,root) %{_sbindir}/ipmi-oem |
1ccaf2b4 | 194 | %attr(755,root,root) %{_sbindir}/ipmi-pef-config |
58c8f82b | 195 | %attr(755,root,root) %{_sbindir}/ipmi-pet |
9d037785 JB |
196 | %attr(755,root,root) %{_sbindir}/ipmi-ping |
197 | %attr(755,root,root) %{_sbindir}/ipmi-power | |
bf77cec9 | 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 | |
1ccaf2b4 JB |
202 | %attr(755,root,root) %{_sbindir}/ipmiconsole |
203 | %attr(755,root,root) %{_sbindir}/ipmidetect | |
204 | %attr(755,root,root) %{_sbindir}/ipmimonitoring | |
cf87ffbe ER |
205 | %attr(755,root,root) %{_sbindir}/ipmiping |
206 | %attr(755,root,root) %{_sbindir}/ipmipower | |
1ccaf2b4 | 207 | %attr(755,root,root) %{_sbindir}/pef-config |
9d037785 | 208 | %attr(755,root,root) %{_sbindir}/rmcp-ping |
bf77cec9 | 209 | %attr(755,root,root) %{_sbindir}/rmcpping |
bf77cec9 | 210 | %{_mandir}/man5/bmc-config.conf.5* |
b1d6a380 | 211 | %{_mandir}/man5/freeipmi.conf.5* |
9d037785 JB |
212 | %{_mandir}/man5/freeipmi_interpret_sel.conf.5* |
213 | %{_mandir}/man5/freeipmi_interpret_sensor.conf.5* | |
517d9dd7 | 214 | %{_mandir}/man5/ipmi-config.conf.5* |
b1d6a380 | 215 | %{_mandir}/man5/ipmi_monitoring_sensors.conf.5* |
1ccaf2b4 JB |
216 | %{_mandir}/man5/ipmiconsole.conf.5* |
217 | %{_mandir}/man5/ipmidetect.conf.5* | |
b1d6a380 AG |
218 | %{_mandir}/man5/ipmimonitoring.conf.5* |
219 | %{_mandir}/man5/ipmimonitoring_sensors.conf.5* | |
1ccaf2b4 | 220 | %{_mandir}/man5/ipmipower.conf.5* |
9d037785 | 221 | %{_mandir}/man5/libipmiconsole.conf.5* |
b1d6a380 | 222 | %{_mandir}/man5/libipmimonitoring.conf.5* |
1ccaf2b4 JB |
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* | |
517d9dd7 | 229 | %{_mandir}/man8/ipmi-config.8* |
9d037785 | 230 | %{_mandir}/man8/ipmi-console.8* |
1ccaf2b4 | 231 | %{_mandir}/man8/ipmi-dcmi.8* |
9d037785 | 232 | %{_mandir}/man8/ipmi-detect.8* |
1ccaf2b4 JB |
233 | %{_mandir}/man8/ipmi-fru.8* |
234 | %{_mandir}/man8/ipmi-locate.8* | |
bf77cec9 | 235 | %{_mandir}/man8/ipmi-oem.8* |
1ccaf2b4 | 236 | %{_mandir}/man8/ipmi-pef-config.8* |
58c8f82b | 237 | %{_mandir}/man8/ipmi-pet.8* |
9d037785 JB |
238 | %{_mandir}/man8/ipmi-ping.8* |
239 | %{_mandir}/man8/ipmi-power.8* | |
bf77cec9 | 240 | %{_mandir}/man8/ipmi-raw.8* |
241 | %{_mandir}/man8/ipmi-sel.8* | |
bf77cec9 | 242 | %{_mandir}/man8/ipmi-sensors-config.8* |
1ccaf2b4 JB |
243 | %{_mandir}/man8/ipmi-sensors.8* |
244 | %{_mandir}/man8/ipmiconsole.8* | |
245 | %{_mandir}/man8/ipmidetect.8* | |
246 | %{_mandir}/man8/ipmimonitoring.8* | |
bf77cec9 | 247 | %{_mandir}/man8/ipmiping.8* |
248 | %{_mandir}/man8/ipmipower.8* | |
1ccaf2b4 | 249 | %{_mandir}/man8/pef-config.8* |
9d037785 | 250 | %{_mandir}/man8/rmcp-ping.8* |
bf77cec9 | 251 | %{_mandir}/man8/rmcpping.8* |
bf77cec9 | 252 | #%dir %{_localstatedir}/cache/ipmimonitoringsdrcache |
1ccaf2b4 | 253 | %{_infodir}/freeipmi-faq.info* |
bf77cec9 | 254 | |
255 | %files bmc-watchdog | |
256 | %defattr(644,root,root,755) | |
b93ce681 ER |
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 | |
46346733 | 259 | %{systemdunitdir}/bmc-watchdog.service |
cf87ffbe | 260 | %attr(755,root,root) %{_sbindir}/bmc-watchdog |
bf77cec9 | 261 | %{_mandir}/man8/bmc-watchdog.8* |
cf87ffbe | 262 | |
bf77cec9 | 263 | %files ipmidetectd |
a20778c0 | 264 | %defattr(644,root,root,755) |
bf77cec9 | 265 | %attr(755,root,root) %{_sbindir}/ipmidetectd |
1ccaf2b4 | 266 | %attr(754,root,root) /etc/rc.d/init.d/ipmidetectd |
46346733 | 267 | %{systemdunitdir}/ipmidetectd.service |
9d037785 | 268 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/freeipmi/ipmidetectd.conf |
bf77cec9 | 269 | %{_mandir}/man5/ipmidetectd.conf.5* |
270 | %{_mandir}/man8/ipmidetectd.8* | |
cf87ffbe | 271 | |
39e711d4 JB |
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 | |
46346733 | 276 | %{systemdunitdir}/ipmiseld.service |
39e711d4 JB |
277 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/freeipmi/ipmiseld.conf |
278 | %{_mandir}/man5/ipmiseld.conf.5* | |
279 | %{_mandir}/man8/ipmiseld.8* | |
280 | ||
a20778c0 ER |
281 | %files libs |
282 | %defattr(644,root,root,755) | |
1ccaf2b4 | 283 | %attr(755,root,root) %{_libdir}/libfreeipmi.so.*.*.* |
1dff6c6d | 284 | %attr(755,root,root) %ghost %{_libdir}/libfreeipmi.so.17 |
1ccaf2b4 JB |
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.*.*.* | |
8556067f | 290 | %attr(755,root,root) %ghost %{_libdir}/libipmimonitoring.so.6 |
a20778c0 ER |
291 | %dir /var/lib/freeipmi |
292 | /var/lib/freeipmi/ipckey | |
a20778c0 | 293 | |
cf87ffbe ER |
294 | %files devel |
295 | %defattr(644,root,root,755) | |
bf77cec9 | 296 | %attr(755,root,root) %{_libdir}/libipmiconsole.so |
6f5c48ee | 297 | %attr(755,root,root) %{_libdir}/libfreeipmi.so |
bf77cec9 | 298 | %attr(755,root,root) %{_libdir}/libipmidetect.so |
299 | %attr(755,root,root) %{_libdir}/libipmimonitoring.so | |
cf87ffbe | 300 | %{_libdir}/libfreeipmi.la |
bf77cec9 | 301 | %{_libdir}/libipmiconsole.la |
302 | %{_libdir}/libipmidetect.la | |
303 | %{_libdir}/libipmimonitoring.la | |
6f5c48ee | 304 | %{_includedir}/freeipmi |
bf77cec9 | 305 | %{_includedir}/ipmi*.h |
f3f67cbb JB |
306 | %{_pkgconfigdir}/libfreeipmi.pc |
307 | %{_pkgconfigdir}/libipmiconsole.pc | |
308 | %{_pkgconfigdir}/libipmidetect.pc | |
309 | %{_pkgconfigdir}/libipmimonitoring.pc | |
1ccaf2b4 JB |
310 | %{_mandir}/man3/libfreeipmi.3* |
311 | %{_mandir}/man3/libipmiconsole.3* | |
312 | %{_mandir}/man3/libipmidetect.3* | |
313 | %{_mandir}/man3/libipmimonitoring.3* | |
cf87ffbe ER |
314 | |
315 | %files static | |
316 | %defattr(644,root,root,755) | |
317 | %{_libdir}/libfreeipmi.a | |
bf77cec9 | 318 | %{_libdir}/libipmiconsole.a |
319 | %{_libdir}/libipmidetect.a | |
320 | %{_libdir}/libipmimonitoring.a |