2007-01-16 00:17:42 +01:00
|
|
|
#
|
2011-09-14 14:03:22 +02:00
|
|
|
# spec file for package ipmitool
|
2007-01-16 00:17:42 +01:00
|
|
|
#
|
2013-07-16 15:40:48 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:17:42 +01:00
|
|
|
#
|
2008-09-13 02:28:41 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:17:42 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-09-13 02:28:41 +02:00
|
|
|
|
2007-01-16 00:17:42 +01:00
|
|
|
Name: ipmitool
|
2011-12-05 12:43:57 +01:00
|
|
|
BuildRequires: libtool
|
2013-07-16 15:40:48 +02:00
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: readline-devel
|
2014-02-17 16:39:37 +01:00
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
BuildRequires: systemd
|
|
|
|
%endif
|
2008-01-17 23:11:17 +01:00
|
|
|
Url: http://ipmitool.sourceforge.net/
|
2007-01-16 00:17:42 +01:00
|
|
|
Summary: Utility for IPMI Control
|
2013-02-28 14:23:24 +01:00
|
|
|
License: BSD-3-Clause
|
2007-01-16 00:17:42 +01:00
|
|
|
Group: System/Management
|
2015-01-15 16:15:51 +01:00
|
|
|
Version: 1.8.15
|
2013-07-16 15:40:48 +02:00
|
|
|
Release: 0
|
2007-03-07 21:27:10 +01:00
|
|
|
Source: http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
|
2014-02-17 16:39:37 +01:00
|
|
|
Source1: ipmievd.service
|
|
|
|
Source2: ipmievd.sysconf
|
2015-01-15 16:15:51 +01:00
|
|
|
Patch1: ipmitool-1_8_15_HEAD.patch
|
2010-03-05 16:31:33 +01:00
|
|
|
Patch3: fwum_enhance_output.patch
|
|
|
|
Patch6: fix_file_permissions.patch
|
|
|
|
Patch8: several_more_compile_fixes.patch
|
2013-02-28 14:23:24 +01:00
|
|
|
Patch9: automake-1.13.patch
|
2014-02-17 16:39:37 +01:00
|
|
|
Patch10: ipmitool_adjust_suse.paths
|
2014-03-06 16:11:33 +01:00
|
|
|
Patch11: 0001-Incorporate-upstream-comments-to-289-add-whitespace.patch
|
2015-01-15 16:15:51 +01:00
|
|
|
Patch12: ipmitool-1.8.10-implicit-fortify-decl.patch
|
|
|
|
Patch13: latest_compile_fixes.patch
|
2007-01-16 00:17:42 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-02-17 16:39:37 +01:00
|
|
|
# bmc-snmp-proxy needs /usr/sbin/snmpd
|
|
|
|
Requires: net-snmp
|
|
|
|
# ToDo: Convert old init scripts to systemd with next submit iteration
|
|
|
|
%{?systemd_requires}
|
2007-01-16 00:17:42 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains a utility for interfacing with devices that
|
|
|
|
support the Intelligent Platform Management Interface specification.
|
|
|
|
IPMI is an open standard for machine health, inventory, and remote
|
|
|
|
power control.
|
|
|
|
|
|
|
|
This utility can communicate with IPMI-enabled devices through either a
|
|
|
|
kernel driver such as OpenIPMI or over the RMCP LAN protocol defined in
|
|
|
|
the IPMI specification. IPMIv2 adds support for encrypted LAN
|
|
|
|
communications and remote Serial-over-LAN functionality.
|
|
|
|
|
|
|
|
It provides commands for reading the Sensor Data Repository (SDR) and
|
|
|
|
displaying sensor values, displaying the contents of the System Event
|
|
|
|
Log (SEL), printing Field Replaceable Unit (FRU) information, reading
|
|
|
|
and setting LAN configuration, and chassis power control.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2008-10-14 19:04:59 +02:00
|
|
|
%setup -q
|
2015-01-15 16:15:51 +01:00
|
|
|
%patch1 -p1
|
2010-03-05 16:31:33 +01:00
|
|
|
%patch3 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch8 -p1
|
2013-02-28 14:23:24 +01:00
|
|
|
%patch9 -p1
|
2014-02-17 16:39:37 +01:00
|
|
|
%patch10 -p1
|
2014-03-06 16:11:33 +01:00
|
|
|
%patch11 -p1
|
2015-01-15 16:15:51 +01:00
|
|
|
%patch12 -p0
|
|
|
|
%patch13 -p1
|
2007-01-16 00:17:42 +01:00
|
|
|
|
|
|
|
%build
|
2008-10-14 19:04:59 +02:00
|
|
|
touch INSTALL NEWS
|
|
|
|
autoreconf -fiv
|
|
|
|
%configure --with-pic
|
|
|
|
%{__make} %{?jobs:-j%jobs}
|
2007-01-16 00:17:42 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/ipmitool
|
2014-02-17 16:39:37 +01:00
|
|
|
# exchange-bmc-os-info service
|
|
|
|
|
|
|
|
install -D -m 0755 contrib/exchange-bmc-os-info.init.redhat "$RPM_BUILD_ROOT\
|
|
|
|
"/%{_sbindir}/exchange-bmc-os-info
|
|
|
|
install -D -m 0644 contrib/exchange-bmc-os-info.service.redhat "$RPM_BUILD_ROOT"/usr/lib/systemd/system/exchange-bmc-os-info.service
|
|
|
|
install -D -m 0644 contrib/exchange-bmc-os-info.sysconf "$RPM_BUILD_ROOT"/%{_sysconfdir}/exchange-bmc-os-info
|
|
|
|
#ln -s /etc/init.d/exchange-bmc-os-info $RPM_BUILD_ROOT/%{_sbindir}/rcexchange-bmc-os-info
|
|
|
|
|
|
|
|
# ipmievd service
|
|
|
|
install -D -m 644 %{S:1} "$RPM_BUILD_ROOT"/usr/lib/systemd/system/ipmievd.service
|
|
|
|
install -D -m 644 %{S:2} "$RPM_BUILD_ROOT"/%{_sysconfdir}/ipmievd
|
|
|
|
#ln -s %{_sbindir}/ipmievd $RPM_BUILD_ROOT/%{_sbindir}/ipmievd
|
|
|
|
|
|
|
|
# bmc-snmp-proxy
|
|
|
|
install -D -m 755 contrib/bmc-snmp-proxy "$RPM_BUILD_ROOT"/%{_sbindir}/bmc-snmp-proxy
|
|
|
|
install -D -m 644 contrib/bmc-snmp-proxy.service "$RPM_BUILD_ROOT"/usr/lib/systemd/system/bmc-snmp-proxy.service
|
|
|
|
install -D -m 755 contrib/bmc-snmp-proxy.sysconf "$RPM_BUILD_ROOT"/%{_sysconfdir}/bmc-snmp-proxy
|
|
|
|
#ln -s /etc/init.d/bmc-snmp-proxy $RPM_BUILD_ROOT/%{_sbindir}/rcbmc-snmp-proxy
|
2007-01-16 00:17:42 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2014-02-17 16:39:37 +01:00
|
|
|
%pre
|
|
|
|
%service_add_pre bmc-snmp-proxy.service exchange-bmc-os-info.service ipmievd.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
%service_add_post bmc-snmp-proxy.service exchange-bmc-os-info.service ipmievd.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun bmc-snmp-proxy.service exchange-bmc-os-info.service ipmievd.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun bmc-snmp-proxy.service exchange-bmc-os-info.service ipmievd.service
|
|
|
|
|
2007-01-16 00:17:42 +01:00
|
|
|
%files
|
2014-02-17 16:39:37 +01:00
|
|
|
%defattr(644,root,root)
|
2008-09-26 14:54:07 +02:00
|
|
|
%doc AUTHORS COPYING README
|
2008-09-13 02:28:41 +02:00
|
|
|
%{_datadir}/ipmitool
|
2014-02-17 16:39:37 +01:00
|
|
|
%attr(755,root,root) %{_bindir}/ipmitool
|
|
|
|
%attr(755,root,root) %{_sbindir}/ipmievd
|
|
|
|
%attr(755,root,root) %{_sbindir}/exchange-bmc-os-info
|
|
|
|
%attr(755,root,root) %{_sbindir}/bmc-snmp-proxy
|
|
|
|
%config(noreplace) %{_sysconfdir}/exchange-bmc-os-info
|
|
|
|
%config(noreplace) %{_sysconfdir}/bmc-snmp-proxy
|
|
|
|
%config(noreplace) %{_sysconfdir}/ipmievd
|
|
|
|
%{_prefix}/lib/systemd/system/exchange-bmc-os-info.service
|
|
|
|
%{_prefix}/lib/systemd/system/ipmievd.service
|
|
|
|
%{_prefix}/lib/systemd/system/bmc-snmp-proxy.service
|
|
|
|
|
2007-03-07 21:27:10 +01:00
|
|
|
#%{_datadir}/doc/packages/ipmitool/*
|
2007-01-16 00:17:42 +01:00
|
|
|
%doc %{_mandir}/man1/*
|
|
|
|
%doc %{_mandir}/man8/*
|
|
|
|
|
2007-03-07 21:27:10 +01:00
|
|
|
%changelog
|