From: Jongkyu Koo Date: Fri, 1 Apr 2016 10:52:15 +0000 (+0900) Subject: modify PHN_LOCATION_DIR to use macro X-Git-Tag: submit/tizen/20160425.071901~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F88%2F64488%2F3;p=platform%2Fcore%2Ftelephony%2Fphonenumber-utils.git modify PHN_LOCATION_DIR to use macro Change-Id: I2b64750a63036b0b768bd2589332574b96c2e050 Signed-off-by: Jongkyu Koo --- diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt index c245b65..b4cdcbe 100644 --- a/daemon/CMakeLists.txt +++ b/daemon/CMakeLists.txt @@ -8,7 +8,7 @@ SET_SOURCE_FILES_PROPERTIES(${CMAKE_SOURCE_DIR}/common/phn-dbus.c PROPERTIES GENERATED TRUE) pkg_check_modules(daemon_pkgs REQUIRED dlog icu-i18n glib-2.0 gio-2.0 gio-unix-2.0 - capi-base-common capi-system-system-settings tapi) + capi-base-common capi-system-system-settings tapi libtzplatform-config) INCLUDE_DIRECTORIES(${daemon_pkgs_INCLUDE_DIRS}) LINK_DIRECTORIES(${daemon_pkgs_LIBRARY_DIRS}) diff --git a/daemon/phnd-location.c b/daemon/phnd-location.c index e4ac5af..6951fc2 100644 --- a/daemon/phnd-location.c +++ b/daemon/phnd-location.c @@ -24,12 +24,13 @@ #include #include #include +#include #include "phnd.h" #include "phnd-region-data.h" #include "phnd-location.h" -#define PHN_LOCATION_DIR "/opt/usr/data/phonenumber-utils" +#define PHN_LOCATION_DIR tzplatform_mkpath(TZ_SYS_DATA, "phonenumber-utils") #define PHN_LOCATION_FILE_PREFIX "location" #define PHN_LOCATION_CHINA_MOBILE_SUFFIX_OFFSET 10000 diff --git a/packaging/phonenumber-utils.spec b/packaging/phonenumber-utils.spec index 9cf90a2..8f7f736 100644 --- a/packaging/phonenumber-utils.spec +++ b/packaging/phonenumber-utils.spec @@ -18,6 +18,7 @@ BuildRequires: pkgconfig(capi-base-common) BuildRequires: pkgconfig(capi-system-system-settings) BuildRequires: pkgconfig(tapi) BuildRequires: pkgconfig(capi-system-info) +BuildRequires: pkgconfig(libtzplatform-config) BuildRequires: libphonenumber-devel %define _unitdir /usr/lib/systemd/system @@ -74,8 +75,6 @@ if [ $1 == 1 ]; then systemctl restart %{name}.service fi -chown :5000 -R /opt/usr/data/%{name} -chmod 775 -R /opt/usr/data/%{name} %postun /sbin/ldconfig