diff options
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 |