| |
| |
| |
| |
| %define name freeipmi |
| %define version 0.6.4 |
| %if %{?_with_debug:1}%{!?_with_debug:0} |
| %define release 1.debug%{?dist} |
| %else |
| %define release 1%{?dist} |
| %endif |
| |
| Name: %{name} |
| Version: %{version} |
| Release: %{release} |
| License: GPLv2+ |
| Group: Applications/System |
| URL: http://www.gnu.org/software/freeipmi/ |
| Source: ftp://ftp.zresearch.com/pub/freeipmi/%{version}/%{name}-%{version}.tar.gz |
| Patch1: freeipmi-0.5.1-regex.patch |
| Patch2: freeipmi-0.6.4-silent.patch |
| BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
| BuildRequires: libgcrypt-devel texinfo |
| Requires(post): info |
| Requires(preun): info |
| |
| ExclusiveArch: %{ix86} x86_64 ia64 alpha |
| Summary: FreeIPMI |
| %description |
| The FreeIPMI project provides "Remote-Console" (out-of-band) and |
| "System Management Software" (in-band) based on Intelligent |
| Platform Management Interface specification. |
| |
| %package devel |
| Summary: Development package for FreeIPMI |
| Group: Development/System |
| Requires: freeipmi = %{version}-%{release} |
| %description devel |
| Development package for FreeIPMI. This package includes the FreeIPMI |
| header files and libraries. |
| |
| %package bmc-watchdog |
| Summary: FreeIPMI BMC watchdog |
| Group: Applications/System |
| Requires: freeipmi = %{version}-%{release} |
| Requires(post): chkconfig |
| Requires(preun): chkconfig |
| Requires: logrotate |
| %description bmc-watchdog |
| Provides a watchdog daemon for OS monitoring and recovery. |
| |
| %package ipmidetectd |
| Summary: IPMI node detection monitoring daemon |
| Group: Applications/System |
| Requires: freeipmi = %{version}-%{release} |
| Requires(post): chkconfig |
| Requires(preun): chkconfig |
| %description ipmidetectd |
| Provides a tool and a daemon for IPMI node detection. |
| |
| %if %{?_with_debug:1}%{!?_with_debug:0} |
| %define _enable_debug --enable-debug --enable-trace --enable-syslog |
| %endif |
| |
| %prep |
| %setup -q |
| %patch1 -p1 -b .regex |
| %patch2 -p1 -b .silent |
| |
| %build |
| CFLAGS=-D_GNU_SOURCE %configure --program-prefix=%{?_program_prefix:%{_program_prefix}} \ |
| %{?_enable_debug} --disable-static |
| CFLAGS="-D_GNU_SOURCE $RPM_OPT_FLAGS" make %{?_smp_mflags} |
| |
| %install |
| rm -rf $RPM_BUILD_ROOT |
| mkdir -p $RPM_BUILD_ROOT |
| DESTDIR="$RPM_BUILD_ROOT" make install |
| |
| mkdir -p $RPM_BUILD_ROOT/%{_initrddir}/ |
| |
| if [[ "%{_sysconfdir}/init.d" != "%{_initrddir}" ]] |
| then |
| mv $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/freeipmi-bmc-watchdog $RPM_BUILD_ROOT/%{_initrddir}/freeipmi-bmc-watchdog |
| mv $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/freeipmi-ipmidetectd $RPM_BUILD_ROOT/%{_initrddir}/freeipmi-ipmidetectd |
| fi |
| rm -f %{buildroot}%{_infodir}/dir |
| |
| echo freeipmi > %{buildroot}%{_localstatedir}/lib/freeipmi/ipckey |
| |
| rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la |
| |
| %clean |
| rm -rf $RPM_BUILD_ROOT |
| |
| %post |
| if [ -x /sbin/install-info ]; then |
| |
| /sbin/install-info %{_infodir}/freeipmi-faq.info.gz %{_infodir}/dir |
| fi |
| /sbin/ldconfig |
| |
| %preun |
| if [ $1 = 0 ]; then |
| if [ -x /sbin/install-info ]; then |
| |
| /sbin/install-info --delete %{_infodir}/freeipmi-faq.info.gz %{_infodir}/dir |
| fi |
| fi |
| |
| %postun -p /sbin/ldconfig |
| |
| %post bmc-watchdog |
| if [ "$1" = 1 ]; then |
| if [ -x %{_initrddir}/freeipmi-bmc-watchdog ]; then |
| /sbin/chkconfig --add freeipmi-bmc-watchdog |
| /sbin/chkconfig freeipmi-bmc-watchdog off |
| fi |
| fi |
| if [ $1 -ge 1 ]; then |
| if [ -x %{_initrddir}/freeipmi-bmc-watchdog ]; then |
| if %{_initrddir}/freeipmi-bmc-watchdog status | grep -q running; then |
| %{_initrddir}/freeipmi-bmc-watchdog restart |
| else |
| %{_initrddir}/freeipmi-bmc-watchdog condrestart |
| fi |
| fi |
| fi |
| |
| %preun bmc-watchdog |
| |
| |
| |
| if [ "$1" = 0 ]; then |
| if [ -x %{_initrddir}/freeipmi-bmc-watchdog ]; then |
| if %{_initrddir}/freeipmi-bmc-watchdog status | grep -q running; then |
| %{_initrddir}/freeipmi-bmc-watchdog stop |
| fi |
| /sbin/chkconfig --del freeipmi-bmc-watchdog |
| fi |
| fi |
| |
| %post ipmidetectd |
| if [ "$1" = 1 ]; then |
| if [ -x %{_initrddir}/freeipmi-ipmidetectd ]; then |
| /sbin/chkconfig --add freeipmi-ipmidetectd |
| /sbin/chkconfig freeipmi-ipmidetectd off |
| fi |
| fi |
| if [ $1 -ge 1 ]; then |
| if [ -x %{_initrddir}/freeipmi-ipmidetectd ]; then |
| if %{_initrddir}/freeipmi-ipmidetectd status | grep -q running; then |
| %{_initrddir}/freeipmi-ipmidetectd restart |
| else |
| %{_initrddir}/freeipmi-ipmidetectd condrestart |
| fi |
| fi |
| fi |
| |
| %preun ipmidetectd |
| |
| |
| |
| if [ "$1" = 0 ]; then |
| if [ -x %{_initrddir}/freeipmi-ipmidetectd ]; then |
| if %{_initrddir}/freeipmi-ipmidetectd status | grep -q running; then |
| %{_initrddir}/freeipmi-ipmidetectd stop |
| fi |
| /sbin/chkconfig --del freeipmi-ipmidetectd |
| fi |
| fi |
| |
| %files |
| %defattr(-,root,root) |
| %attr(0444,root,root) %config(noreplace) %{_sysconfdir}/ipmi_monitoring_sensors.conf |
| %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 |
| %doc %{_datadir}/doc/%{name}/TODO |
| %doc %{_infodir}/* |
| %doc %{_datadir}/doc/%{name}/COPYING.ipmiping |
| %doc %{_datadir}/doc/%{name}/COPYING.ipmipower |
| %doc %{_datadir}/doc/%{name}/COPYING.rmcpping |
| %doc %{_datadir}/doc/%{name}/COPYING.ipmiconsole |
| %doc %{_datadir}/doc/%{name}/COPYING.ipmimonitoring |
| %doc %{_datadir}/doc/%{name}/COPYING.pstdout |
| %doc %{_datadir}/doc/%{name}/COPYING.ipmidetect |
| %doc %{_datadir}/doc/%{name}/COPYING.ipmi-fru |
| %doc %{_datadir}/doc/%{name}/COPYING.ZRESEARCH |
| %doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmiping |
| %doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmipower |
| %doc %{_datadir}/doc/%{name}/DISCLAIMER.rmcpping |
| %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 |
| %doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmiping.UC |
| %doc %{_datadir}/doc/%{name}/DISCLAIMER.ipmipower.UC |
| %doc %{_datadir}/doc/%{name}/DISCLAIMER.rmcpping.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 |
| %doc %{_datadir}/doc/%{name}/freeipmi-coding.txt |
| %doc %{_datadir}/doc/%{name}/freeipmi-hostrange.txt |
| %doc %{_datadir}/doc/%{name}/freeipmi-libraries.txt |
| %doc %{_datadir}/doc/%{name}/freeipmi-bugs-and-workarounds.txt |
| %dir %{_datadir}/doc/%{name} |
| %{_libdir}/libipmiconsole*so.* |
| %{_libdir}/libfreeipmi*so.* |
| %{_libdir}/libipmidetect*so.* |
| %{_libdir}/libipmimonitoring.so.* |
| %{_localstatedir}/lib/* |
| %{_sbindir}/bmc-config |
| %{_sbindir}/bmc-info |
| %{_sbindir}/ipmi-fru |
| %{_sbindir}/ipmi-locate |
| %{_sbindir}/pef-config |
| %{_sbindir}/ipmi-oem |
| %{_sbindir}/ipmi-raw |
| %{_sbindir}/ipmi-sel |
| %{_sbindir}/ipmi-sensors |
| %{_sbindir}/ipmi-sensors-config |
| %{_sbindir}/ipmiping |
| %{_sbindir}/ipmipower |
| %{_sbindir}/rmcpping |
| %{_sbindir}/ipmiconsole |
| %{_sbindir}/ipmimonitoring |
| %{_sbindir}/ipmi-chassis |
| %{_sbindir}/ipmidetect |
| %{_mandir}/man8/bmc-config.8* |
| %{_mandir}/man5/bmc-config.conf.5* |
| %{_mandir}/man8/bmc-info.8* |
| %{_mandir}/man8/ipmi-fru.8* |
| %{_mandir}/man8/ipmi-locate.8* |
| %{_mandir}/man8/pef-config.8* |
| %{_mandir}/man8/ipmi-oem.8* |
| %{_mandir}/man8/ipmi-raw.8* |
| %{_mandir}/man8/ipmi-sel.8* |
| %{_mandir}/man8/ipmi-sensors.8* |
| %{_mandir}/man8/ipmi-sensors-config.8* |
| %{_mandir}/man8/ipmiping.8* |
| %{_mandir}/man8/ipmipower.8* |
| %{_mandir}/man5/ipmipower.conf.5* |
| %{_mandir}/man8/rmcpping.8* |
| %{_mandir}/man8/ipmiconsole.8* |
| %{_mandir}/man5/ipmiconsole.conf.5* |
| %{_mandir}/man8/ipmimonitoring.8* |
| %{_mandir}/man8/ipmi-chassis.8* |
| %{_mandir}/man8/ipmidetect.8* |
| %{_mandir}/man5/ipmidetect.conf.5* |
| %{_mandir}/man7/freeipmi.7* |
| %dir %{_localstatedir}/cache/ipmimonitoringsdrcache |
| |
| %files devel |
| %defattr(-,root,root) |
| %{_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 |
| %dir %{_includedir}/freeipmi/interface |
| %dir %{_includedir}/freeipmi/locate |
| %dir %{_includedir}/freeipmi/record-format |
| %dir %{_includedir}/freeipmi/sdr-cache |
| %dir %{_includedir}/freeipmi/spec |
| %dir %{_includedir}/freeipmi/util |
| %{_includedir}/ipmiconsole.h |
| %{_includedir}/ipmidetect.h |
| %{_includedir}/ipmi_monitoring.h |
| %{_includedir}/freeipmi/*.h |
| %{_includedir}/freeipmi/api/*.h |
| %{_includedir}/freeipmi/cmds/*.h |
| %{_includedir}/freeipmi/debug/*.h |
| %{_includedir}/freeipmi/driver/*.h |
| %{_includedir}/freeipmi/fiid/*.h |
| %{_includedir}/freeipmi/interface/*.h |
| %{_includedir}/freeipmi/locate/*.h |
| %{_includedir}/freeipmi/record-format/*.h |
| %{_includedir}/freeipmi/sdr-cache/*.h |
| %{_includedir}/freeipmi/spec/*.h |
| %{_includedir}/freeipmi/util/*.h |
| %{_mandir}/man3/* |
| |
| %files bmc-watchdog |
| %defattr(-,root,root) |
| %doc %{_datadir}/doc/%{name}/COPYING.bmc-watchdog |
| %doc %{_datadir}/doc/%{name}/DISCLAIMER.bmc-watchdog |
| %doc %{_datadir}/doc/%{name}/DISCLAIMER.bmc-watchdog.UC |
| %{_initrddir}/freeipmi-bmc-watchdog |
| %config(noreplace) %{_sysconfdir}/sysconfig/freeipmi-bmc-watchdog |
| %config(noreplace) %{_sysconfdir}/logrotate.d/freeipmi-bmc-watchdog |
| %{_sbindir}/bmc-watchdog |
| %{_mandir}/man8/bmc-watchdog.8* |
| %dir %{_localstatedir}/log/freeipmi |
| |
| %files ipmidetectd |
| %defattr(-,root,root) |
| %{_initrddir}/freeipmi-ipmidetectd |
| %{_sbindir}/ipmidetectd |
| %{_mandir}/man5/ipmidetectd.conf.5* |
| %{_mandir}/man8/ipmidetectd.8* |
| |
| %changelog |
| * Mon Jul 28 2008 Phil Knirsch <pknirsch@redhat.com> - 0.6.4-1 |
| - Update to freeipmi-0.6.4 |
| - Fixed unecessary logrotate message for bmc-watchdog ( |
| |
| * Wed Feb 27 2008 Phil Knirsch <pknirsch@redhat.com> - 0.5.1-3 |
| - Fix GCC 4.3 rebuild problems |
| |
| * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.5.1-2 |
| - Autorebuild for GCC 4.3 |
| |
| * Tue Dec 18 2007 Phil Knirsch <pknirsch@redhat.com> 0.5.1-1 |
| - Update to freeipmi-0.5.1 |
| |
| * Wed Nov 19 2007 Albert Chu <chu11@llnl.gov> 0.5.0 |
| - Remove ipmimonitoring subpackage. Merge into head package. |
| |
| * Wed Nov 07 2007 Phil Knirsch <pknirsch@redhat.com> 0.4.6-3.fc7 |
| - More fixes for Fedora Review: |
| o Added ExclusiveArch due to missing lopl ( |
| |
| * Tue Nov 06 2007 Phil Knirsch <pknirsch@redhat.com> 0.4.6-2.fc7 |
| - Several fixes due to Fedora package review: |
| o Fixed Group for all subpackages |
| o Added missng Requires(Post|Preun) for several packages |
| o Removed static libraries and .la files |
| o Fixed open bug (missing mode for O_CREATE) |
| o Fixed incorrect options for bmc-watchdog daemon |
| |
| * Mon Nov 05 2007 Phil Knirsch <pknirsch@redhat.com> 0.4.6-1.fc7 |
| - Specfile cleanup for Fedora inclusion |
| - Fixed several rpmlint warnings and errors: |
| o Moved all devel libs to proper package |
| |
| * Wed Aug 01 2007 Troy Telford <ttelford@lnxi.com> 0.4.0 |
| - Some package cleanup so it builds on SLES |
| |
| * Wed Jun 13 2007 Phil Knirsch <pknirsch@redhat.com> 0.4.beta0-1 |
| - Some package cleanup and split of configuration and initscript |
| |
| * Fri Feb 28 2007 Albert Chu <chu11@llnl.gov> 0.4.beta0-1 |
| - Add ipmidetectd subpackage. |
| |
| * Fri Feb 16 2007 Albert Chu <chu11@llnl.gov> 0.4.beta0-1 |
| - Add ipmimonitoring subpackage. |
| |
| * Sun Jul 30 2006 Albert Chu <chu11@llnl.gov> 0.3.beta0-1 |
| - Re-architect for 0.3.X |
| |
| * Mon May 15 2006 Albert Chu <chu11@llnl.gov> 0.3.beta0-1 |
| - Fixed up spec file to pass rpmlint |