From 0635f9b4e340127b5fa4fb57d1f3701fac073285 Mon Sep 17 00:00:00 2001 From: Jan Synacek Date: Thu, 25 Jul 2013 15:56:31 +0200 Subject: account: correctly register profiles in spec, do not hardcode version in skel --- openlmi-providers.spec | 10 ++++++++++ src/account/90_LMI_Account_Profile.mof.skel | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/openlmi-providers.spec b/openlmi-providers.spec index 9f79668..4e879d5 100644 --- a/openlmi-providers.spec +++ b/openlmi-providers.spec @@ -450,6 +450,9 @@ if [ "$1" -gt 1 ]; then %{_datadir}/%{name}/60_LMI_Account.mof \ %{_datadir}/%{name}/60_LMI_Account.reg \ > /dev/null 2>&1 || :; + %{_bindir}/openlmi-mof-register --just-mofs -n root/interop unregister \ + %{_datadir}/%{name}/90_LMI_Account_Profile.mof \ + > /dev/null 2>&1 || :; fi %pre -n openlmi-software @@ -538,6 +541,9 @@ if [ "$1" -ge 1 ]; then %{_datadir}/%{name}/60_LMI_Account.mof \ %{_datadir}/%{name}/60_LMI_Account.reg \ > /dev/null 2>&1 || :; + %{_bindir}/openlmi-mof-register --just-mofs -n root/interop register \ + %{_datadir}/%{name}/90_LMI_Account_Profile.mof \ + > /dev/null 2>&1 || :; fi %post -n openlmi-software @@ -625,6 +631,9 @@ if [ "$1" -eq 0 ]; then %{_datadir}/%{name}/60_LMI_Account.mof \ %{_datadir}/%{name}/60_LMI_Account.reg \ > /dev/null 2>&1 || :; + %{_bindir}/openlmi-mof-register --just-mofs -n root/interop unregister \ + %{_datadir}/%{name}/90_LMI_Account_Profile.mof \ + > /dev/null 2>&1 || :; fi %preun -n openlmi-software @@ -684,6 +693,7 @@ fi %changelog * Thu Jul 25 2013 Jan Synáček - 0.0.25-9 - Add logicalfile profile registration +- Correctly register account profiles * Thu Jul 25 2013 Radek Novacek - 0.0.25-8 - Add version to mof/reg registration diff --git a/src/account/90_LMI_Account_Profile.mof.skel b/src/account/90_LMI_Account_Profile.mof.skel index ff0bdee..c918c8f 100644 --- a/src/account/90_LMI_Account_Profile.mof.skel +++ b/src/account/90_LMI_Account_Profile.mof.skel @@ -11,7 +11,7 @@ instance of PG_ProviderProfileCapabilities OtherRegisteredProfile = "OpenLMI-Account"; OtherProfileOrganization = "OpenLMI"; - ProfileVersion = "0.0.1"; + ProfileVersion = "@VERSION@"; RegisteredSubProfiles = { 3025 -- cgit