From: Kyuho Jo Date: Thu, 17 Sep 2015 06:15:56 +0000 (+0900) Subject: 1. Move pkgmgr parser plug-in files to the proper directory. X-Git-Tag: accepted/tizen/mobile/20150917.084554^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F80%2F48280%2F1;p=platform%2Fcore%2Fappfw%2Fshortcut.git 1. Move pkgmgr parser plug-in files to the proper directory. 2. Modify permission of DB files for pkgmgr parser plug-in. Change-Id: I6ee4ec815f4ade132461fbaffc8d38bee58a3f53 Signed-off-by: Kyuho Jo --- diff --git a/packaging/libshortcut.spec b/packaging/libshortcut.spec index 11cbe5c..ff00ce1 100755 --- a/packaging/libshortcut.spec +++ b/packaging/libshortcut.spec @@ -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 diff --git a/pkgmgr_shortcut/CMakeLists.txt b/pkgmgr_shortcut/CMakeLists.txt index 0a4abc7..bcb4f0a 100644 --- a/pkgmgr_shortcut/CMakeLists.txt +++ b/pkgmgr_shortcut/CMakeLists.txt @@ -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