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