[ipmitool] Create a subpackage for exchange-bmc-os-info
Praveen K Paladugu
praveenp at fedoraproject.org
Thu Dec 13 21:34:16 UTC 2012
commit 629adfc9710e10b59f80e1a569ea2dad264451de
Author: praveenp <praveen_paladugu at dell.com>
Date: Thu Dec 13 15:33:51 2012 -0600
Create a subpackage for exchange-bmc-os-info
ipmitool.spec | 45 ++++++++++++++++++++++++++++++++++++---------
1 files changed, 36 insertions(+), 9 deletions(-)
---
diff --git a/ipmitool.spec b/ipmitool.spec
index 9fc28d8..58ee06c 100644
--- a/ipmitool.spec
+++ b/ipmitool.spec
@@ -1,7 +1,7 @@
Name: ipmitool
Summary: Utility for IPMI control
Version: 1.8.12
-Release: 10%{?dist}
+Release: 11%{?dist}
License: BSD
Group: System Environment/Base
URL: http://ipmitool.sourceforge.net/
@@ -19,7 +19,6 @@ Requires(post): systemd-sysv
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
-Requires: hostname
Obsoletes: OpenIPMI-tools < 2.0.14-3
Provides: OpenIPMI-tools = 2.0.14-3
@@ -56,6 +55,23 @@ 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.
+%package -n exchange-bmc-os-info
+Requires: hostname
+Requires: ipmitool OpenIPMI
+BuildArch: noarch
+Requires(post): systemd-sysv
+Requires(post): systemd-units
+Requires(preun): systemd-units
+Requires(postun): systemd-units
+
+Summary: Let OS and BMC exchange info
+
+%description -n exchange-bmc-os-info
+Given a host with BMC, this package would pass the hostname &
+OS information to the BMC and also capture the BMC ip info
+for the host OS to use.
+
+
%prep
%setup -q
@@ -99,17 +115,23 @@ install -Dm 755 %{SOURCE6} %{buildroot}%{_libexecdir}/exchange-bmc-os-info
%post
%systemd_post ipmievd.service
-%systemd_post exchange-bmc-os-info.service
%preun
%systemd_preun ipmievd.service
-%systemd_preun exchange-bmc-os-info.service
-
%postun
%systemd_postun_with_restart ipmievd.service
+
+%post -n exchange-bmc-os-info
+%systemd_post exchange-bmc-os-info.service
+
+%preun -n exchange-bmc-os-info
+%systemd_preun exchange-bmc-os-info.service
+
+%postun -n exchange-bmc-os-info
%systemd_postun_with_restart exchange-bmc-os-info.service
+
%triggerun -- ipmievd < 1.8.11-7
# Save the current service runlevel info
# User must manually run systemd-sysv-convert --apply ipmievd
@@ -122,19 +144,24 @@ install -Dm 755 %{SOURCE6} %{buildroot}%{_libexecdir}/exchange-bmc-os-info
%files
%config(noreplace) %{_sysconfdir}/sysconfig/ipmievd
-%config(noreplace) %{_sysconfdir}/sysconfig/exchange-bmc-os-info
-%{_sysconfdir}/profile.d/set-bmc-url.sh
%{_unitdir}/ipmievd.service
-%{_unitdir}/exchange-bmc-os-info.service
-%{_libexecdir}/*
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man*/*
%doc %{_datadir}/doc/ipmitool
%{_datadir}/ipmitool
+%files -n exchange-bmc-os-info
+%config(noreplace) %{_sysconfdir}/sysconfig/exchange-bmc-os-info
+%{_sysconfdir}/profile.d/set-bmc-url.sh
+%{_unitdir}/exchange-bmc-os-info.service
+%{_libexecdir}/exchange-bmc-os-info
+
%changelog
+* Thu Dec 13 2012 Praveen K Paladugu <praveen_paladugu at dell.com> - 1.8.12-11
+- Subpackage for exchange-bmc-os-info as it requires OPenIPMI
+
* Wed Dec 12 2012 Ales Ledvinka <aledvink at redhat.com> 1.8.12-10
- documented fixed and conditional defaults. adjusted synopsis
More information about the scm-commits
mailing list