]>
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 |
478dfefc | 13 | Version: 1.6.9 |
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 |
478dfefc | 18 | # Source0-md5: d1a1e073d98cc517f0c359d630b6c852 |
cf87ffbe | 19 | URL: http://www.gnu.org/software/freeipmi/ |
1ccaf2b4 JB |
20 | BuildRequires: autoconf >= 2.57 |
21 | BuildRequires: automake >= 1:1.9 | |
1ccaf2b4 JB |
22 | BuildRequires: libgcrypt-devel |
23 | BuildRequires: libtool | |
478dfefc | 24 | BuildRequires: pkgconfig |
1759b445 | 25 | Requires: %{name}-libs = %{version}-%{release} |
cf87ffbe ER |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
cf87ffbe ER |
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 | ||
3314df50 JR |
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) | |
1759b445 | 46 | oparte na specyfikacji IPMI v1.5/2.0. Projekt zawiera: |
3314df50 JR |
47 | - KCS, SMIC, SSIF, sterowniki LAN i bibliotekę C (libfreeipmi) |
48 | - powłokę FreeIPMI SHell (fish) | |
1759b445 JB |
49 | - demona watchdog (bmc-watchdog) |
50 | - czujniki (sensors) | |
3314df50 JR |
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) | |
1759b445 JB |
55 | - ping dla IPMI (ipmiping) |
56 | - ping dla RMCP (rmcpping) | |
57 | ||
bf77cec9 | 58 | %package bmc-watchdog |
59 | Summary: FreeIPMI BMC watchdog | |
e7ac736b | 60 | Summary(pl.UTF-8): FreeIPMI - watchdog BMC |
a20778c0 ER |
61 | Group: Applications/System |
62 | Requires: %{name} = %{version}-%{release} | |
a20778c0 | 63 | |
bf77cec9 | 64 | %description bmc-watchdog |
65 | Provides a watchdog daemon for OS monitoring and recovery. | |
1759b445 | 66 | |
e7ac736b JB |
67 | %description bmc-watchdog -l pl.UTF-8 |
68 | Ten pakiet udostępnia demona watchdoga do monitorowania systemu i | |
69 | uruchamiania po awarii. | |
bf77cec9 | 70 | |
71 | %package ipmidetectd | |
e7ac736b JB |
72 | Summary: IPMI node detection daemon |
73 | Summary(pl.UTF-8): Demon wykrywający węzły IPMI | |
bf77cec9 | 74 | Group: Applications/System |
39e711d4 | 75 | Requires(post,preun): /sbin/ldconfig |
bf77cec9 | 76 | Requires: %{name} = %{version}-%{release} |
bf77cec9 | 77 | |
78 | %description ipmidetectd | |
79 | IPMI node detection daemon. | |
80 | ||
e7ac736b JB |
81 | %description ipmidetectd -l pl.UTF-8 |
82 | Demon wykrywający węzły IPMI. | |
83 | ||
39e711d4 JB |
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 | ||
e7ac736b JB |
97 | %package libs |
98 | Summary: Shared libraries for FreeIPMI | |
99 | Summary(pl.UTF-8): Biblioteki współdzielone FreeIPMI | |
100 | Group: Libraries | |
bf77cec9 | 101 | |
a20778c0 | 102 | %description libs |
1759b445 JB |
103 | Shared libraries for FreeIPMI. |
104 | ||
3314df50 JR |
105 | %description libs -l pl.UTF-8 |
106 | Biblioteki współdzielone FreeIPMI. | |
cf87ffbe ER |
107 | |
108 | %package devel | |
109 | Summary: Development package for FreeIPMI | |
2b63a779 | 110 | Summary(pl.UTF-8): Pakiet programistyczny FreeIPMI |
cf87ffbe | 111 | Group: Development/Libraries |
a20778c0 | 112 | Requires: %{name}-libs = %{version}-%{release} |
f3f67cbb | 113 | Requires: libgcrypt-devel |
cf87ffbe ER |
114 | |
115 | %description devel | |
116 | Development package for FreeIPMI. This package includes the FreeIPMI | |
6f5c48ee JB |
117 | header files. |
118 | ||
3314df50 JR |
119 | %description devel -l pl.UTF-8 |
120 | Pakiet programistyczny FreeIPMI. Zawiera pliki nagłówkowe. | |
cf87ffbe ER |
121 | |
122 | %package static | |
123 | Summary: Static FreeIPMI library | |
2b63a779 | 124 | Summary(pl.UTF-8): Statyczna biblioteka FreeIPMI |
cf87ffbe ER |
125 | Group: Development/Libraries |
126 | Requires: %{name}-devel = %{version}-%{release} | |
127 | ||
128 | %description static | |
129 | Static FreeIPMI library. | |
130 | ||
3314df50 | 131 | %description static -l pl.UTF-8 |
6f5c48ee JB |
132 | Statyczna biblioteka FreeIPMI. |
133 | ||
cf87ffbe ER |
134 | %prep |
135 | %setup -q | |
136 | ||
137 | %build | |
1ccaf2b4 JB |
138 | %{__libtoolize} |
139 | %{__aclocal} -I config | |
140 | %{__autoconf} | |
141 | %{__autoheader} | |
142 | %{__automake} | |
46346733 JB |
143 | %configure \ |
144 | --with-systemdsystemunitdir=%{systemdunitdir} | |
cf87ffbe ER |
145 | |
146 | %{__make} | |
147 | ||
148 | %install | |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
c52d4082 | 151 | %{__make} -j1 install \ |
1dff6c6d JB |
152 | DESTDIR=$RPM_BUILD_ROOT \ |
153 | INSTALL_DAEMON_SCRIPTS="install-init-scripts install-systemd-scripts" | |
1ccaf2b4 | 154 | |
8d77549e | 155 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
46346733 | 156 | %{__mv} $RPM_BUILD_ROOT/etc/init.d/* $RPM_BUILD_ROOT/etc/rc.d/init.d |
cf87ffbe | 157 | # TODO: patch Makefile.am instead |
b93ce681 | 158 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
cf87ffbe ER |
159 | |
160 | %clean | |
161 | rm -rf $RPM_BUILD_ROOT | |
162 | ||
57e79115 ER |
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 | ||
375b818c | 169 | %post libs -p /sbin/ldconfig |
a20778c0 | 170 | %postun libs -p /sbin/ldconfig |
cf87ffbe ER |
171 | |
172 | %files | |
173 | %defattr(644,root,root,755) | |
bf77cec9 | 174 | %doc AUTHORS ChangeLog DISCLAIMER.* INSTALL NEWS README TODO doc/freeipmi-*.txt |
9d037785 JB |
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 | |
bf77cec9 | 181 | %attr(755,root,root) %{_sbindir}/bmc-config |
b1d6a380 | 182 | %attr(755,root,root) %{_sbindir}/bmc-device |
bf77cec9 | 183 | %attr(755,root,root) %{_sbindir}/bmc-info |
1ccaf2b4 JB |
184 | %attr(755,root,root) %{_sbindir}/ipmi-chassis |
185 | %attr(755,root,root) %{_sbindir}/ipmi-chassis-config | |
517d9dd7 | 186 | %attr(755,root,root) %{_sbindir}/ipmi-config |
9d037785 | 187 | %attr(755,root,root) %{_sbindir}/ipmi-console |
1ccaf2b4 | 188 | %attr(755,root,root) %{_sbindir}/ipmi-dcmi |
9d037785 | 189 | %attr(755,root,root) %{_sbindir}/ipmi-detect |
bf77cec9 | 190 | %attr(755,root,root) %{_sbindir}/ipmi-fru |
191 | %attr(755,root,root) %{_sbindir}/ipmi-locate | |
bf77cec9 | 192 | %attr(755,root,root) %{_sbindir}/ipmi-oem |
1ccaf2b4 | 193 | %attr(755,root,root) %{_sbindir}/ipmi-pef-config |
58c8f82b | 194 | %attr(755,root,root) %{_sbindir}/ipmi-pet |
9d037785 JB |
195 | %attr(755,root,root) %{_sbindir}/ipmi-ping |
196 | %attr(755,root,root) %{_sbindir}/ipmi-power | |
bf77cec9 | 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 | |
1ccaf2b4 JB |
201 | %attr(755,root,root) %{_sbindir}/ipmiconsole |
202 | %attr(755,root,root) %{_sbindir}/ipmidetect | |
203 | %attr(755,root,root) %{_sbindir}/ipmimonitoring | |
cf87ffbe ER |
204 | %attr(755,root,root) %{_sbindir}/ipmiping |
205 | %attr(755,root,root) %{_sbindir}/ipmipower | |
1ccaf2b4 | 206 | %attr(755,root,root) %{_sbindir}/pef-config |
9d037785 | 207 | %attr(755,root,root) %{_sbindir}/rmcp-ping |
bf77cec9 | 208 | %attr(755,root,root) %{_sbindir}/rmcpping |
bf77cec9 | 209 | %{_mandir}/man5/bmc-config.conf.5* |
b1d6a380 | 210 | %{_mandir}/man5/freeipmi.conf.5* |
9d037785 JB |
211 | %{_mandir}/man5/freeipmi_interpret_sel.conf.5* |
212 | %{_mandir}/man5/freeipmi_interpret_sensor.conf.5* | |
517d9dd7 | 213 | %{_mandir}/man5/ipmi-config.conf.5* |
b1d6a380 | 214 | %{_mandir}/man5/ipmi_monitoring_sensors.conf.5* |
1ccaf2b4 JB |
215 | %{_mandir}/man5/ipmiconsole.conf.5* |
216 | %{_mandir}/man5/ipmidetect.conf.5* | |
b1d6a380 AG |
217 | %{_mandir}/man5/ipmimonitoring.conf.5* |
218 | %{_mandir}/man5/ipmimonitoring_sensors.conf.5* | |
1ccaf2b4 | 219 | %{_mandir}/man5/ipmipower.conf.5* |
9d037785 | 220 | %{_mandir}/man5/libipmiconsole.conf.5* |
b1d6a380 | 221 | %{_mandir}/man5/libipmimonitoring.conf.5* |
1ccaf2b4 JB |
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* | |
517d9dd7 | 228 | %{_mandir}/man8/ipmi-config.8* |
9d037785 | 229 | %{_mandir}/man8/ipmi-console.8* |
1ccaf2b4 | 230 | %{_mandir}/man8/ipmi-dcmi.8* |
9d037785 | 231 | %{_mandir}/man8/ipmi-detect.8* |
1ccaf2b4 JB |
232 | %{_mandir}/man8/ipmi-fru.8* |
233 | %{_mandir}/man8/ipmi-locate.8* | |
bf77cec9 | 234 | %{_mandir}/man8/ipmi-oem.8* |
1ccaf2b4 | 235 | %{_mandir}/man8/ipmi-pef-config.8* |
58c8f82b | 236 | %{_mandir}/man8/ipmi-pet.8* |
9d037785 JB |
237 | %{_mandir}/man8/ipmi-ping.8* |
238 | %{_mandir}/man8/ipmi-power.8* | |
bf77cec9 | 239 | %{_mandir}/man8/ipmi-raw.8* |
240 | %{_mandir}/man8/ipmi-sel.8* | |
bf77cec9 | 241 | %{_mandir}/man8/ipmi-sensors-config.8* |
1ccaf2b4 JB |
242 | %{_mandir}/man8/ipmi-sensors.8* |
243 | %{_mandir}/man8/ipmiconsole.8* | |
244 | %{_mandir}/man8/ipmidetect.8* | |
245 | %{_mandir}/man8/ipmimonitoring.8* | |
bf77cec9 | 246 | %{_mandir}/man8/ipmiping.8* |
247 | %{_mandir}/man8/ipmipower.8* | |
1ccaf2b4 | 248 | %{_mandir}/man8/pef-config.8* |
9d037785 | 249 | %{_mandir}/man8/rmcp-ping.8* |
bf77cec9 | 250 | %{_mandir}/man8/rmcpping.8* |
bf77cec9 | 251 | #%dir %{_localstatedir}/cache/ipmimonitoringsdrcache |
1ccaf2b4 | 252 | %{_infodir}/freeipmi-faq.info* |
bf77cec9 | 253 | |
254 | %files bmc-watchdog | |
255 | %defattr(644,root,root,755) | |
b93ce681 ER |
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 | |
46346733 | 258 | %{systemdunitdir}/bmc-watchdog.service |
cf87ffbe | 259 | %attr(755,root,root) %{_sbindir}/bmc-watchdog |
bf77cec9 | 260 | %{_mandir}/man8/bmc-watchdog.8* |
cf87ffbe | 261 | |
bf77cec9 | 262 | %files ipmidetectd |
a20778c0 | 263 | %defattr(644,root,root,755) |
bf77cec9 | 264 | %attr(755,root,root) %{_sbindir}/ipmidetectd |
1ccaf2b4 | 265 | %attr(754,root,root) /etc/rc.d/init.d/ipmidetectd |
46346733 | 266 | %{systemdunitdir}/ipmidetectd.service |
9d037785 | 267 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/freeipmi/ipmidetectd.conf |
bf77cec9 | 268 | %{_mandir}/man5/ipmidetectd.conf.5* |
269 | %{_mandir}/man8/ipmidetectd.8* | |
cf87ffbe | 270 | |
39e711d4 JB |
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 | |
46346733 | 275 | %{systemdunitdir}/ipmiseld.service |
39e711d4 JB |
276 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/freeipmi/ipmiseld.conf |
277 | %{_mandir}/man5/ipmiseld.conf.5* | |
278 | %{_mandir}/man8/ipmiseld.8* | |
279 | ||
a20778c0 ER |
280 | %files libs |
281 | %defattr(644,root,root,755) | |
1ccaf2b4 | 282 | %attr(755,root,root) %{_libdir}/libfreeipmi.so.*.*.* |
1dff6c6d | 283 | %attr(755,root,root) %ghost %{_libdir}/libfreeipmi.so.17 |
1ccaf2b4 JB |
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.*.*.* | |
8556067f | 289 | %attr(755,root,root) %ghost %{_libdir}/libipmimonitoring.so.6 |
a20778c0 ER |
290 | %dir /var/lib/freeipmi |
291 | /var/lib/freeipmi/ipckey | |
a20778c0 | 292 | |
cf87ffbe ER |
293 | %files devel |
294 | %defattr(644,root,root,755) | |
bf77cec9 | 295 | %attr(755,root,root) %{_libdir}/libipmiconsole.so |
6f5c48ee | 296 | %attr(755,root,root) %{_libdir}/libfreeipmi.so |
bf77cec9 | 297 | %attr(755,root,root) %{_libdir}/libipmidetect.so |
298 | %attr(755,root,root) %{_libdir}/libipmimonitoring.so | |
cf87ffbe | 299 | %{_libdir}/libfreeipmi.la |
bf77cec9 | 300 | %{_libdir}/libipmiconsole.la |
301 | %{_libdir}/libipmidetect.la | |
302 | %{_libdir}/libipmimonitoring.la | |
6f5c48ee | 303 | %{_includedir}/freeipmi |
bf77cec9 | 304 | %{_includedir}/ipmi*.h |
f3f67cbb JB |
305 | %{_pkgconfigdir}/libfreeipmi.pc |
306 | %{_pkgconfigdir}/libipmiconsole.pc | |
307 | %{_pkgconfigdir}/libipmidetect.pc | |
308 | %{_pkgconfigdir}/libipmimonitoring.pc | |
1ccaf2b4 JB |
309 | %{_mandir}/man3/libfreeipmi.3* |
310 | %{_mandir}/man3/libipmiconsole.3* | |
311 | %{_mandir}/man3/libipmidetect.3* | |
312 | %{_mandir}/man3/libipmimonitoring.3* | |
cf87ffbe ER |
313 | |
314 | %files static | |
315 | %defattr(644,root,root,755) | |
316 | %{_libdir}/libfreeipmi.a | |
bf77cec9 | 317 | %{_libdir}/libipmiconsole.a |
318 | %{_libdir}/libipmidetect.a | |
319 | %{_libdir}/libipmimonitoring.a |