forked from pool/ipmitool
Thomas Renninger
3db071d177
- Update to latest git HEAD revision of 1.8.18 version commit ecb4cfbff855bb24099f2a80a6dd558518702c7d All these patches are now included in one big revision (1.8.18) to HEAD patch: D 0001-fix-typo.patch D 0002-added-microTCA-major-version.patch D 0003-replaced-removed-defines-which-are-already-present-i.patch D 0004-fix-typo.patch D 0006-ID-461-OpenSSL-1.1-compatibility-error-storage-size-.patch D 0007-ID-461-Make-compiler-happier-about-changes-related-t.patch D 0008-ID-474-Compile-fix-on-nonlinux-systems.patch D 0009-Add-bootstrap-support-for-Mac.patch D 0013-ID-478-ekanalyzer-Fixed-decoding-of-FRU-fields.patch D 0014-ID-479-ekanalyzer-fix-processing-of-custom-mfg.-fiel.patch D 0015-ID-477-fru-Fix-decoding-of-non-text-data-in-get_fru_.patch D 0017-ID-480-ipmitool-coredumps-in-EVP_CIPHER_CTX_init.patch This is the big revision (1.8.18) to HEAD patch: A ipmitool_1_8_18_ecb4cfbff855_to_HEAD.patch - Note: the tarball has been generated with git archive from the git repo. It slightly differs (.gitignore and configure.ac) from what was in osc before. No idea why, but the change is tiny and does not matter. OBS-URL: https://build.opensuse.org/request/show/508366 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ipmitool?expand=0&rev=44
144 lines
5.0 KiB
RPMSpec
144 lines
5.0 KiB
RPMSpec
#
|
|
# spec file for package ipmitool
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: ipmitool
|
|
BuildRequires: libtool
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: readline-devel
|
|
%if 0%{?suse_version} >= 1210
|
|
BuildRequires: systemd
|
|
%endif
|
|
Url: http://ipmitool.sourceforge.net/
|
|
Summary: Utility for IPMI Control
|
|
License: BSD-3-Clause
|
|
Group: System/Management
|
|
Version: 1.8.18
|
|
Release: 0
|
|
Source: http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
|
|
Source1: ipmievd.service
|
|
Source2: ipmievd.sysconf
|
|
Patch0: ipmitool_1_8_18_ecb4cfbff855_to_HEAD.patch
|
|
|
|
Patch100: fwum_enhance_output.patch
|
|
Patch101: fix_file_permissions.patch
|
|
Patch102: several_more_compile_fixes.patch
|
|
Patch103: ipmitool_adjust_suse.paths
|
|
Patch104: hpm_x_compatibility_msg_is_debug_only.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
# bmc-snmp-proxy needs /usr/sbin/snmpd
|
|
Requires: net-snmp
|
|
# ToDo: Convert old init scripts to systemd with next submit iteration
|
|
%{?systemd_requires}
|
|
|
|
%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
|
|
%setup -q
|
|
%patch0 -p1
|
|
|
|
%patch100 -p1
|
|
%patch101 -p1
|
|
%patch102 -p1
|
|
%patch103 -p1
|
|
%patch104 -p1
|
|
|
|
%build
|
|
touch INSTALL NEWS
|
|
autoreconf -fiv
|
|
%configure --with-pic
|
|
%{__make} %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/ipmitool
|
|
# 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 -sf %_sbindir/service ${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 -sf %_sbindir/service ${RPM_BUILD_ROOT}%{_sbindir}/rcipmievd
|
|
|
|
# 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 -sf %_sbindir/service ${RPM_BUILD_ROOT}%{_sbindir}/rcbmc-snmp-proxy
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%if 0%{?suse_version} >= 1210
|
|
%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
|
|
%endif
|
|
|
|
%files
|
|
%defattr(644,root,root)
|
|
%doc AUTHORS COPYING README
|
|
%{_datadir}/ipmitool
|
|
%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
|
|
%{_sbindir}/rcipmievd
|
|
%{_sbindir}/rcexchange-bmc-os-info
|
|
%{_sbindir}/rcbmc-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
|
|
%doc %{_mandir}/man1/*
|
|
%doc %{_mandir}/man8/*
|
|
|
|
%changelog
|