1. Move pkgmgr parser plug-in files to the proper directory. 80/48280/1 accepted/tizen/mobile/20150917.084554 accepted/tizen/tv/20150917.084632 accepted/tizen/wearable/20150917.084712 submit/tizen/20150917.070234 tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
authorKyuho Jo <kyuho.jo@samsung.com>
Thu, 17 Sep 2015 06:15:56 +0000 (15:15 +0900)
committerKyuho Jo <kyuho.jo@samsung.com>
Thu, 17 Sep 2015 06:15:56 +0000 (15:15 +0900)
2. Modify permission of DB files for pkgmgr parser plug-in.

Change-Id: I6ee4ec815f4ade132461fbaffc8d38bee58a3f53
Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
packaging/libshortcut.spec
pkgmgr_shortcut/CMakeLists.txt

index 11cbe5c..ff00ce1 100755 (executable)
@@ -20,6 +20,7 @@ BuildRequires: pkgconfig(libxml-2.0)
 BuildRequires: pkgconfig(vconf)
 BuildRequires: pkgconfig(capi-base-common)
 BuildRequires: pkgconfig(aul)
+BuildRequires: pkgconfig(libtzplatform-config)
 
 %description
 [Shortcut] AddToHome feature supporting library for menu/home screen developers.
@@ -47,11 +48,13 @@ export CFLAGS="${CFLAGS} -DTIZEN_ENGINEER_MODE"
 export CXXFLAGS="${CXXFLAGS} -DTIZEN_ENGINEER_MODE"
 export FFLAGS="${FFLAGS} -DTIZEN_ENGINEER_MODE"
 %endif
-%cmake .
+
+%cmake . -DSYSCONFDIR=%{_sysconfdir}
 make %{?jobs:-j%jobs}
 
 %install
 rm -rf %{buildroot}
+
 %make_install
 mkdir -p %{buildroot}/usr/dbspace
 
@@ -84,10 +87,8 @@ then
        '
 fi
 
-chown :5000 /usr/dbspace/.shortcut_service.db
-chown :5000 /usr/dbspace/.shortcut_service.db-journal
-chmod 644 /usr/dbspace/.shortcut_service.db
-chmod 644 /usr/dbspace/.shortcut_service.db-journal
+chmod 664 /usr/dbspace/.shortcut_service.db
+chmod 664 /usr/dbspace/.shortcut_service.db-journal
 
 %postun -n %{name} -p /sbin/ldconfig
 
@@ -95,7 +96,7 @@ chmod 644 /usr/dbspace/.shortcut_service.db-journal
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
 %{_libdir}/*.so*
-%{_prefix}/etc/package-manager/parserlib/*
+%{_sysconfdir}/package-manager/parserlib/*
 %{_datarootdir}/license/*
 
 %files devel
index 0a4abc7..bcb4f0a 100644 (file)
@@ -26,6 +26,6 @@ ADD_LIBRARY(${PROJECT_NAME} SHARED
 
 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${bin_pkgs_LDFLAGS})
 
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION "etc/package-manager/parserlib")
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${SYSCONFDIR}/package-manager/parserlib)
 
 # End of a file