summaryrefslogtreecommitdiffstats
path: root/openlmi-providers.spec
diff options
context:
space:
mode:
authorTomas Smetana <tsmetana@redhat.com>2013-11-21 09:40:05 +0100
committerTomas Smetana <tsmetana@redhat.com>2013-11-21 09:40:05 +0100
commit524ee890b96e12cd78472c318d26f33d267297f1 (patch)
tree44305af65a51aa0f98b94210549cdc433e1bb7b1 /openlmi-providers.spec
parent3d5a9167320549731dcab224fe233ea27e26231a (diff)
downloadopenlmi-providers-524ee890b96e12cd78472c318d26f33d267297f1.tar.gz
openlmi-providers-524ee890b96e12cd78472c318d26f33d267297f1.tar.xz
openlmi-providers-524ee890b96e12cd78472c318d26f33d267297f1.zip
Spec file: add ownership of the registration database and the directories
Diffstat (limited to 'openlmi-providers.spec')
-rw-r--r--openlmi-providers.spec9
1 files changed, 9 insertions, 0 deletions
diff --git a/openlmi-providers.spec b/openlmi-providers.spec
index 549205c..aa2225f 100644
--- a/openlmi-providers.spec
+++ b/openlmi-providers.spec
@@ -345,6 +345,11 @@ make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
mkdir -p "$RPM_BUILD_ROOT/%{_localstatedir}/log"
touch "$RPM_BUILD_ROOT/%logfile"
+# The registration database and directories
+mkdir -p "$RPM_BUILD_ROOT/%{_sharedstatedir}/openlmi-registration/mof"
+mkdir -p "$RPM_BUILD_ROOT/%{_sharedstatedir}/openlmi-registration/reg"
+touch "$RPM_BUILD_ROOT/%{_sharedstatedir}/openlmi-registration/regdb.sqlite"
+
# XXX
# Remove pythonies
# Don't forget to remove this dirty hack in the future
@@ -408,6 +413,10 @@ cp -pr tools/openlmitheme/* $RPM_BUILD_ROOT/%{python_sitelib}/sphinx/themes/open
%{_libdir}/libopenlmicommon.so.*
%attr(755, root, root) %{_bindir}/openlmi-mof-register
%ghost %logfile
+%dir %{_sharedstatedir}/openlmi-registration
+%dir %{_sharedstatedir}/openlmi-registration/mof
+%dir %{_sharedstatedir}/openlmi-registration/reg
+%ghost %{_sharedstatedir}/openlmi-registration/regdb.sqlite
%files devel
%doc README COPYING