freeipmi/freeipmi.spec

350 lines
12 KiB
RPMSpec
Raw Normal View History

2013-05-17 05:10:35 +00:00
Name: freeipmi
2024-01-28 18:41:05 +00:00
Version: 1.6.14
2023-10-21 23:45:04 +00:00
Release: %autorelease
2013-05-17 05:10:35 +00:00
Summary: IPMI remote console and system management software
2023-05-02 12:12:48 +00:00
License: GPL-3.0-or-later
2013-05-17 05:10:35 +00:00
URL: http://www.gnu.org/software/freeipmi/
Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
Source1: bmc-watchdog.service
Source2: ipmidetectd.service
Source3: ipmiseld.service
2018-02-21 09:04:20 +00:00
BuildRequires: libgcrypt-devel texinfo systemd
%{?systemd_requires}
2018-03-08 11:26:24 +00:00
BuildRequires: gcc
2022-02-12 22:16:39 +00:00
BuildRequires: make
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: libtool
Patch0: c99.patch
2007-11-07 15:12:58 +00:00
%description
The FreeIPMI project provides "Remote-Console" (out-of-band) and
"System Management Software" (in-band) based on Intelligent
Platform Management Interface specification.
2015-02-23 12:16:16 +00:00
%package devel
2013-05-17 05:10:35 +00:00
Summary: Development package for FreeIPMI
2014-01-03 10:40:08 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
2015-02-23 12:16:16 +00:00
%description devel
2015-02-23 12:20:57 +00:00
Development package for FreeIPMI. This package includes the FreeIPMI
2008-02-21 11:38:09 +00:00
header files and libraries.
2007-11-07 15:12:58 +00:00
2015-02-23 12:16:16 +00:00
%package bmc-watchdog
2013-05-17 05:10:35 +00:00
Summary: IPMI BMC watchdog
2014-01-03 10:40:08 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
2015-02-23 12:16:16 +00:00
%description bmc-watchdog
2007-11-07 15:12:58 +00:00
Provides a watchdog daemon for OS monitoring and recovery.
2015-02-23 12:16:16 +00:00
%package ipmidetectd
2013-05-17 05:10:35 +00:00
Summary: IPMI node detection monitoring daemon
2014-01-03 10:40:08 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
2015-02-23 12:16:16 +00:00
%description ipmidetectd
2007-11-07 15:12:58 +00:00
Provides a tool and a daemon for IPMI node detection.
2015-02-23 12:16:16 +00:00
%package ipmiseld
2013-05-17 05:10:35 +00:00
Summary: IPMI SEL syslog logging daemon
2014-01-03 10:40:08 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
2015-02-23 12:16:16 +00:00
%description ipmiseld
2012-08-27 08:42:26 +00:00
IPMI SEL syslog logging daemon.
2007-11-07 15:12:58 +00:00
%if %{?_with_debug:1}%{!?_with_debug:0}
%global _enable_debug --enable-debug --enable-trace --enable-syslog
2007-11-07 15:12:58 +00:00
%endif
%prep
2018-02-21 09:04:20 +00:00
%autosetup -p1
autoreconf -f -v -i
2007-11-07 15:12:58 +00:00
%build
export CFLAGS="-D_GNU_SOURCE $RPM_OPT_FLAGS"
%configure --program-prefix=%{?_program_prefix:%{_program_prefix}} \
2007-11-07 15:12:58 +00:00
%{?_enable_debug} --disable-static
2021-05-05 12:47:56 +00:00
%make_build
2007-11-07 15:12:58 +00:00
%install
2021-05-05 12:47:56 +00:00
%make_install
2014-01-03 10:40:08 +00:00
rm -rf %{buildroot}%{_infodir}/dir
2007-11-07 15:12:58 +00:00
# kludge to get around rpmlint complaining about 0 length semephore file
2014-01-03 10:40:08 +00:00
echo freeipmi > %{buildroot}%{_localstatedir}/lib/freeipmi/ipckey
2015-02-23 12:20:57 +00:00
2007-11-07 15:12:58 +00:00
# Remove .la files
2015-02-23 12:20:57 +00:00
find %{buildroot} -name '*.la' -delete -print
# Install systemd units
2015-02-23 12:20:57 +00:00
install -m755 -d %{buildroot}%{_unitdir}
install -pm644 %SOURCE1 %SOURCE2 %SOURCE3 %{buildroot}%{_unitdir}/
# Remove initscripts
2015-02-23 12:20:57 +00:00
rm -frv %{buildroot}%{_initrddir} %{buildroot}%{_sysconfdir}/init.d
2007-11-07 15:12:58 +00:00
%post bmc-watchdog
%systemd_post bmc-watchdog.service
2007-11-07 15:12:58 +00:00
%preun bmc-watchdog
%systemd_preun bmc-watchdog.service
2007-11-07 15:12:58 +00:00
%postun bmc-watchdog
%systemd_postun_with_restart bmc-watchdog.service
2007-11-07 15:12:58 +00:00
2012-08-27 08:42:26 +00:00
%post ipmiseld
%systemd_post ipmiseld.service
2012-08-27 08:42:26 +00:00
%preun ipmiseld
%systemd_preun ipmiseld.service
2012-08-27 08:42:26 +00:00
%postun ipmiseld
%systemd_postun_with_restart ipmiseld.service
2012-08-27 08:42:26 +00:00
%post ipmidetectd
%systemd_post ipmidetectd.service
2007-11-07 15:12:58 +00:00
%preun ipmidetectd
%systemd_preun ipmidetectd.service
%postun ipmidetectd
%systemd_postun_with_restart ipmidetectd.service
2007-11-07 15:12:58 +00:00
%triggerun -- freeipmi-bmc-watchdog < 1.1.1-2
# Save the current service runlevel info
# User must manually run systemd-sysv-convert --apply httpd
# to migrate them to systemd targets
/usr/bin/systemd-sysv-convert --save bmc-watchdog >/dev/null 2>&1 ||:
# Run these because the SysV package being removed won't do them
/sbin/chkconfig --del bmc-watchdog >/dev/null 2>&1 || :
/bin/systemctl try-restart bmc-watchdog.service >/dev/null 2>&1 || :
%triggerun -- freeipmi-ipmidetectd < 1.1.1-2
# Save the current service runlevel info
# User must manually run systemd-sysv-convert --apply httpd
# to migrate them to systemd targets
/usr/bin/systemd-sysv-convert --save ipmidetectd >/dev/null 2>&1 ||:
# Run these because the SysV package being removed won't do them
/sbin/chkconfig --del ipmidetectd >/dev/null 2>&1 || :
/bin/systemctl try-restart ipmidetectd.service >/dev/null 2>&1 || :
2007-11-07 15:12:58 +00:00
%files
2011-01-21 09:33:44 +00:00
%dir %{_sysconfdir}/freeipmi/
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/freeipmi.conf
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/ipmidetect.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/freeipmi_interpret_sel.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/freeipmi_interpret_sensor.conf
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/libipmiconsole.conf
2007-11-07 15:12:58 +00:00
%doc %{_datadir}/doc/%{name}/AUTHORS
%doc %{_datadir}/doc/%{name}/COPYING
%doc %{_datadir}/doc/%{name}/ChangeLog
%doc %{_datadir}/doc/%{name}/ChangeLog.0
%doc %{_datadir}/doc/%{name}/INSTALL
%doc %{_datadir}/doc/%{name}/NEWS
%doc %{_datadir}/doc/%{name}/README
2009-02-24 14:27:59 +00:00
%doc %{_datadir}/doc/%{name}/README.argp
%doc %{_datadir}/doc/%{name}/README.build
2010-01-12 16:11:16 +00:00
%doc %{_datadir}/doc/%{name}/README.openipmi
2007-11-07 15:12:58 +00:00
%doc %{_datadir}/doc/%{name}/TODO
%doc %{_infodir}/*
%doc %{_datadir}/doc/%{name}/COPYING.ipmiping
%doc %{_datadir}/doc/%{name}/COPYING.ipmipower
%doc %{_datadir}/doc/%{name}/COPYING.ipmiconsole
%doc %{_datadir}/doc/%{name}/COPYING.ipmimonitoring
2007-11-07 15:12:58 +00:00
%doc %{_datadir}/doc/%{name}/COPYING.pstdout
%doc %{_datadir}/doc/%{name}/COPYING.ipmidetect
%doc %{_datadir}/doc/%{name}/COPYING.ipmi-fru
2010-01-12 16:11:16 +00:00
%doc %{_datadir}/doc/%{name}/COPYING.ipmi-dcmi
2010-05-25 10:38:03 +00:00
%doc %{_datadir}/doc/%{name}/COPYING.sunbmc
2007-11-07 15:12:58 +00:00
%doc %{_datadir}/doc/%{name}/COPYING.ZRESEARCH
%doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmiping
%doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmipower
%doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmiconsole
%doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmimonitoring
%doc %{_datadir}/doc/%{name}/DISCLAIMER.pstdout
%doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmidetect
%doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmi-fru
2010-01-12 16:11:16 +00:00
%doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmi-dcmi
%doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmiping.UC
%doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmipower.UC
%doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmiconsole.UC
%doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmimonitoring.UC
%doc %{_datadir}/doc/%{name}/DISCLAIMER.pstdout.UC
%doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmidetect.UC
%doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmi-fru.UC
2007-11-07 15:12:58 +00:00
%doc %{_datadir}/doc/%{name}/freeipmi-coding.txt
2011-01-21 09:33:44 +00:00
%doc %{_datadir}/doc/%{name}/freeipmi-design.txt
2007-11-07 15:12:58 +00:00
%doc %{_datadir}/doc/%{name}/freeipmi-hostrange.txt
%doc %{_datadir}/doc/%{name}/freeipmi-libraries.txt
2010-01-12 16:11:16 +00:00
%doc %{_datadir}/doc/%{name}/freeipmi-bugs-issues-and-workarounds.txt
%doc %{_datadir}/doc/%{name}/freeipmi-testing.txt
%doc %{_datadir}/doc/%{name}/freeipmi-oem-documentation-requirements.txt
2007-11-07 15:12:58 +00:00
%dir %{_datadir}/doc/%{name}
2012-01-04 08:24:47 +00:00
%dir %{_datadir}/doc/%{name}/contrib
%dir %{_datadir}/doc/%{name}/contrib/ganglia
%doc %{_datadir}/doc/%{name}/contrib/ganglia/*
%dir %{_datadir}/doc/%{name}/contrib/nagios
%doc %{_datadir}/doc/%{name}/contrib/nagios/*
%dir %{_datadir}/doc/%{name}/contrib/pet
%doc %{_datadir}/doc/%{name}/contrib/pet/*
2007-11-07 15:12:58 +00:00
%{_libdir}/libipmiconsole*so.*
%{_libdir}/libfreeipmi*so.*
%{_libdir}/libipmidetect*so.*
%{_libdir}/libipmimonitoring.so.*
2007-11-07 15:12:58 +00:00
%{_localstatedir}/lib/*
%{_sbindir}/bmc-config
%{_sbindir}/bmc-info
2009-02-24 14:27:59 +00:00
%{_sbindir}/bmc-device
2014-03-04 09:44:48 +00:00
%{_sbindir}/ipmi-config
2007-11-07 15:12:58 +00:00
%{_sbindir}/ipmi-fru
%{_sbindir}/ipmi-locate
%{_sbindir}/ipmi-oem
2010-01-12 16:11:16 +00:00
%{_sbindir}/ipmi-pef-config
%{_sbindir}/pef-config
2007-11-07 15:12:58 +00:00
%{_sbindir}/ipmi-raw
%{_sbindir}/ipmi-sel
%{_sbindir}/ipmi-sensors
%{_sbindir}/ipmi-sensors-config
2007-11-07 15:12:58 +00:00
%{_sbindir}/ipmiping
2011-01-21 09:33:44 +00:00
%{_sbindir}/ipmi-ping
2007-11-07 15:12:58 +00:00
%{_sbindir}/ipmipower
2011-01-21 09:33:44 +00:00
%{_sbindir}/ipmi-power
2007-11-07 15:12:58 +00:00
%{_sbindir}/rmcpping
2011-01-21 09:33:44 +00:00
%{_sbindir}/rmcp-ping
2007-11-07 15:12:58 +00:00
%{_sbindir}/ipmiconsole
2011-01-21 09:33:44 +00:00
%{_sbindir}/ipmi-console
%{_sbindir}/ipmimonitoring
2007-11-07 15:12:58 +00:00
%{_sbindir}/ipmi-chassis
2009-02-24 14:27:59 +00:00
%{_sbindir}/ipmi-chassis-config
2010-01-12 16:11:16 +00:00
%{_sbindir}/ipmi-dcmi
2012-01-04 08:24:47 +00:00
%{_sbindir}/ipmi-pet
2007-11-07 15:12:58 +00:00
%{_sbindir}/ipmidetect
2011-01-21 09:33:44 +00:00
%{_sbindir}/ipmi-detect
2007-11-07 15:12:58 +00:00
%{_mandir}/man8/bmc-config.8*
%{_mandir}/man5/bmc-config.conf.5*
%{_mandir}/man8/bmc-info.8*
2009-02-24 14:27:59 +00:00
%{_mandir}/man8/bmc-device.8*
2014-03-04 09:44:48 +00:00
%{_mandir}/man8/ipmi-config.8*
%{_mandir}/man5/ipmi-config.conf.5*
2007-11-07 15:12:58 +00:00
%{_mandir}/man8/ipmi-fru.8*
%{_mandir}/man8/ipmi-locate.8*
%{_mandir}/man8/ipmi-oem.8*
2010-01-12 16:11:16 +00:00
%{_mandir}/man8/ipmi-pef-config.8*
%{_mandir}/man8/pef-config.8*
2007-11-07 15:12:58 +00:00
%{_mandir}/man8/ipmi-raw.8*
%{_mandir}/man8/ipmi-sel.8*
%{_mandir}/man8/ipmi-sensors.8*
%{_mandir}/man8/ipmi-sensors-config.8*
2007-11-07 15:12:58 +00:00
%{_mandir}/man8/ipmiping.8*
2011-01-21 09:33:44 +00:00
%{_mandir}/man8/ipmi-ping.8*
2007-11-07 15:12:58 +00:00
%{_mandir}/man8/ipmipower.8*
2011-01-21 09:33:44 +00:00
%{_mandir}/man8/ipmi-power.8*
2007-11-07 15:12:58 +00:00
%{_mandir}/man5/ipmipower.conf.5*
%{_mandir}/man8/rmcpping.8*
2011-01-21 09:33:44 +00:00
%{_mandir}/man8/rmcp-ping.8*
2007-11-07 15:12:58 +00:00
%{_mandir}/man8/ipmiconsole.8*
2011-01-21 09:33:44 +00:00
%{_mandir}/man8/ipmi-console.8*
2007-11-07 15:12:58 +00:00
%{_mandir}/man5/ipmiconsole.conf.5*
%{_mandir}/man8/ipmimonitoring.8*
2009-02-24 14:27:59 +00:00
%{_mandir}/man5/ipmi_monitoring_sensors.conf.5*
%{_mandir}/man5/ipmimonitoring_sensors.conf.5*
%{_mandir}/man5/ipmimonitoring.conf.5*
2011-01-21 09:33:44 +00:00
%{_mandir}/man5/freeipmi_interpret_sel.conf.5*
%{_mandir}/man5/freeipmi_interpret_sensor.conf.5*
2009-02-24 14:27:59 +00:00
%{_mandir}/man5/libipmimonitoring.conf.5*
2007-11-07 15:12:58 +00:00
%{_mandir}/man8/ipmi-chassis.8*
2009-02-24 14:27:59 +00:00
%{_mandir}/man8/ipmi-chassis-config.8*
2010-01-12 16:11:16 +00:00
%{_mandir}/man8/ipmi-dcmi.8*
2012-01-04 08:24:47 +00:00
%{_mandir}/man8/ipmi-pet.8*
2007-11-07 15:12:58 +00:00
%{_mandir}/man8/ipmidetect.8*
2011-01-21 09:33:44 +00:00
%{_mandir}/man8/ipmi-detect.8*
2009-02-24 14:27:59 +00:00
%{_mandir}/man5/freeipmi.conf.5*
2007-11-07 15:12:58 +00:00
%{_mandir}/man5/ipmidetect.conf.5*
2011-01-21 09:33:44 +00:00
%{_mandir}/man5/libipmiconsole.conf.5*
%{_mandir}/man7/freeipmi.7*
%dir %{_localstatedir}/cache/ipmimonitoringsdrcache
2007-11-07 15:12:58 +00:00
%files devel
2012-01-04 08:24:47 +00:00
%dir %{_datadir}/doc/%{name}/contrib/libipmimonitoring
%doc %{_datadir}/doc/%{name}/contrib/libipmimonitoring/*
2007-11-07 15:12:58 +00:00
%{_libdir}/libipmiconsole.so
%{_libdir}/libfreeipmi.so
%{_libdir}/libipmidetect.so
%{_libdir}/libipmimonitoring.so
%dir %{_includedir}/freeipmi
%dir %{_includedir}/freeipmi/api
%dir %{_includedir}/freeipmi/cmds
%dir %{_includedir}/freeipmi/debug
%dir %{_includedir}/freeipmi/driver
%dir %{_includedir}/freeipmi/fiid
2012-08-27 08:42:26 +00:00
%dir %{_includedir}/freeipmi/fru
%dir %{_includedir}/freeipmi/interface
2011-01-21 09:33:44 +00:00
%dir %{_includedir}/freeipmi/interpret
%dir %{_includedir}/freeipmi/locate
2011-01-21 09:33:44 +00:00
%dir %{_includedir}/freeipmi/payload
%dir %{_includedir}/freeipmi/record-format
2015-12-02 07:18:46 +00:00
%dir %{_includedir}/freeipmi/record-format/oem
2012-08-27 08:42:26 +00:00
%dir %{_includedir}/freeipmi/sdr
2015-12-02 07:18:46 +00:00
%dir %{_includedir}/freeipmi/sdr/oem
2012-08-27 08:42:26 +00:00
%dir %{_includedir}/freeipmi/sel
2010-01-12 16:11:16 +00:00
%dir %{_includedir}/freeipmi/sensor-read
%dir %{_includedir}/freeipmi/spec
2015-12-02 07:18:46 +00:00
%dir %{_includedir}/freeipmi/spec/oem
2010-01-12 16:11:16 +00:00
%dir %{_includedir}/freeipmi/templates
2015-12-02 07:18:46 +00:00
%dir %{_includedir}/freeipmi/templates/oem
%dir %{_includedir}/freeipmi/util
2007-11-07 15:12:58 +00:00
%{_includedir}/ipmiconsole.h
%{_includedir}/ipmidetect.h
2011-01-21 09:33:44 +00:00
%{_includedir}/ipmi_monitoring*.h
2007-11-07 15:12:58 +00:00
%{_includedir}/freeipmi/*.h
%{_includedir}/freeipmi/api/*.h
%{_includedir}/freeipmi/cmds/*.h
%{_includedir}/freeipmi/debug/*.h
%{_includedir}/freeipmi/driver/*.h
%{_includedir}/freeipmi/fiid/*.h
2012-08-27 08:42:26 +00:00
%{_includedir}/freeipmi/fru/*.h
%{_includedir}/freeipmi/interface/*.h
2011-01-21 09:33:44 +00:00
%{_includedir}/freeipmi/interpret/*.h
%{_includedir}/freeipmi/locate/*.h
2011-01-21 09:33:44 +00:00
%{_includedir}/freeipmi/payload/*.h
%{_includedir}/freeipmi/record-format/*.h
2015-12-02 07:18:46 +00:00
%{_includedir}/freeipmi/record-format/oem/*.h
2012-08-27 08:42:26 +00:00
%{_includedir}/freeipmi/sdr/*.h
2015-12-02 07:18:46 +00:00
%{_includedir}/freeipmi/sdr/oem/*.h
2012-08-27 08:42:26 +00:00
%{_includedir}/freeipmi/sel/*.h
2010-01-12 16:11:16 +00:00
%{_includedir}/freeipmi/sensor-read/*.h
%{_includedir}/freeipmi/spec/*.h
2015-12-02 07:18:46 +00:00
%{_includedir}/freeipmi/spec/oem/*.h
2010-01-12 16:11:16 +00:00
%{_includedir}/freeipmi/templates/*.h
2015-12-02 07:18:46 +00:00
%{_includedir}/freeipmi/templates/oem/*.h
%{_includedir}/freeipmi/util/*.h
2007-11-07 15:12:58 +00:00
%{_mandir}/man3/*
2011-07-01 08:37:27 +00:00
%{_libdir}/pkgconfig/*
2007-11-07 15:12:58 +00:00
%files bmc-watchdog
%doc %{_datadir}/doc/%{name}/COPYING.bmc-watchdog
%doc %{_datadir}/doc/%{name}/DISCLAIMER.bmc-watchdog
%doc %{_datadir}/doc/%{name}/DISCLAIMER.bmc-watchdog.UC
2010-01-12 16:11:16 +00:00
%config(noreplace) %{_sysconfdir}/sysconfig/bmc-watchdog
2007-11-07 15:12:58 +00:00
%{_sbindir}/bmc-watchdog
%{_mandir}/man8/bmc-watchdog.8*
%{_unitdir}/bmc-watchdog.service
2007-11-07 15:12:58 +00:00
%files ipmidetectd
2011-01-21 09:33:44 +00:00
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/ipmidetectd.conf
2007-11-07 15:12:58 +00:00
%{_sbindir}/ipmidetectd
%{_mandir}/man5/ipmidetectd.conf.5*
%{_mandir}/man8/ipmidetectd.8*
%{_unitdir}/ipmidetectd.service
2007-11-07 15:12:58 +00:00
2012-08-27 08:42:26 +00:00
%files ipmiseld
%doc %{_datadir}/doc/%{name}/COPYING.ipmiseld
%doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmiseld
%{_unitdir}/ipmiseld.service
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/ipmiseld.conf
%{_sbindir}/ipmiseld
%{_mandir}/man5/ipmiseld.conf.5*
%{_mandir}/man8/ipmiseld.8*
%dir %{_localstatedir}/cache/ipmiseld
2007-11-07 15:12:58 +00:00
%changelog
2022-09-25 22:37:42 +00:00
%autochangelog