diff options
author | Radek Novacek <rnovacek@redhat.com> | 2013-07-26 11:03:24 +0200 |
---|---|---|
committer | Radek Novacek <rnovacek@redhat.com> | 2013-07-26 11:11:00 +0200 |
commit | 1105d99b1ff631935140809047b9eb9684c712e0 (patch) | |
tree | 4af0b8f9e561ec099b05c5e2a06db352069e9633 /openlmi-providers.spec | |
parent | ec213965eb921db88a91e97fb3aa3962d8f88a3c (diff) | |
download | openlmi-providers-1105d99b1ff631935140809047b9eb9684c712e0.tar.gz openlmi-providers-1105d99b1ff631935140809047b9eb9684c712e0.tar.xz openlmi-providers-1105d99b1ff631935140809047b9eb9684c712e0.zip |
power: add profile registration and cimprovagt wrapper to spec
Diffstat (limited to 'openlmi-providers.spec')
-rw-r--r-- | openlmi-providers.spec | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/openlmi-providers.spec b/openlmi-providers.spec index 4e879d5..91149b1 100644 --- a/openlmi-providers.spec +++ b/openlmi-providers.spec @@ -284,6 +284,8 @@ mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/%{name} %{_libdir}/cmpi/libcmpiLMI_PowerManagement.so %{_datadir}/%{name}/60_LMI_PowerManagement.mof %{_datadir}/%{name}/60_LMI_PowerManagement.reg +%{_datadir}/%{name}/90_LMI_PowerManagement_Profile.mof +%attr(755, root, root) %{_libexecdir}/pegasus/cmpiLMI_PowerManagement-cimprovagt %files -n openlmi-service %doc README COPYING @@ -434,6 +436,9 @@ if [ "$1" -gt 1 ]; then %{_datadir}/%{name}/60_LMI_PowerManagement.mof \ %{_datadir}/%{name}/60_LMI_PowerManagement.reg \ > /dev/null 2>&1 || :; + %{_bindir}/openlmi-mof-register --just-mofs -n root/interop unregister \ + %{_datadir}/%{name}/90_LMI_PowerManagement_Profile.mof \ + > /dev/null 2>&1 || :; fi %pre -n openlmi-service @@ -525,6 +530,10 @@ if [ "$1" -ge 1 ]; then %{_datadir}/%{name}/60_LMI_PowerManagement.mof \ %{_datadir}/%{name}/60_LMI_PowerManagement.reg \ > /dev/null 2>&1 || :; + %{_bindir}/openlmi-mof-register --just-mofs -n root/interop register \ + %{_datadir}/%{name}/90_LMI_PowerManagement_Profile.mof \ + > /dev/null 2>&1 || :; + fi %post -n openlmi-service @@ -615,6 +624,9 @@ if [ "$1" -eq 0 ]; then %{_datadir}/%{name}/60_LMI_PowerManagement.mof \ %{_datadir}/%{name}/60_LMI_PowerManagement.reg \ > /dev/null 2>&1 || :; + %{_bindir}/openlmi-mof-register --just-mofs -n root/interop unregister \ + %{_datadir}/%{name}/90_LMI_PowerManagement_Profile.mof \ + > /dev/null 2>&1 || :; fi %preun -n openlmi-service |