From: kj7.sung Date: Fri, 24 Nov 2017 06:47:20 +0000 (+0900) Subject: Default replay file path changed X-Git-Tag: submit/tizen/20171124.081621^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1954189d797d7f0ced642c7d0cf5561569d16331;p=platform%2Fcore%2Flocation%2Flbs-server-plugin-replay.git Default replay file path changed Change-Id: If0adab9b195ed6f34bd6e9cfe88d64b6aeb43af4 Signed-off-by: kj7.sung --- diff --git a/gps-plugin/src/gps_plugin_replay.c b/gps-plugin/src/gps_plugin_replay.c index a6996a6..e1598e7 100644 --- a/gps-plugin/src/gps_plugin_replay.c +++ b/gps-plugin/src/gps_plugin_replay.c @@ -455,7 +455,7 @@ gboolean gps_plugin_get_nmea_fd(replay_timeout *timer) timer->fd = fopen(replay_file_path, "r"); if (timer->fd == NULL) { - const char *default_nmea_log = tzplatform_mkpath(TZ_SYS_RO_ETC, "lbs-server/replay/nmea_replay.log"); + const char *default_nmea_log = tzplatform_mkpath(TZ_SYS_RO_ETC, "location/nmea_replay.log"); SECLOG_PLUGIN(DBG_ERR, "fopen failed(%s). loading default(%s) ", replay_file_path, default_nmea_log); timer->fd = fopen(default_nmea_log, "r"); if (timer->fd == NULL) { diff --git a/packaging/lbs-server-plugin-replay.spec b/packaging/lbs-server-plugin-replay.spec index 358b9ff..f8a154b 100644 --- a/packaging/lbs-server-plugin-replay.spec +++ b/packaging/lbs-server-plugin-replay.spec @@ -1,6 +1,6 @@ Name: lbs-server-plugin-replay Summary: LBS Server plugin library for replay mode -Version: 0.2.7 +Version: 0.2.8 Release: 1 Group: Location/Libraries License: Apache-2.0 @@ -25,17 +25,11 @@ LBS Server plugin library for replay mode %setup -q cp %{SOURCE1} . -#./autogen.sh -#./configure --prefix=%{_prefix} --datadir=%{DATADIR} - %build export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE" export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE" export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE" -#./autogen.sh -#./configure --prefix=%{_prefix} --datadir=%{DATADIR} - MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} \ -DLIB_DIR=%{_libdir} \ @@ -46,8 +40,8 @@ make %{?jobs:-j%jobs} rm -rf %{buildroot} %make_install -mkdir -p %{buildroot}%{DATADIR}/replay -cp -a nmea-log/*.log %{buildroot}%{DATADIR}/replay +mkdir -p %{buildroot}%{TZ_SYS_RO_ETC}/location +cp -a nmea-log/*.log %{buildroot}%{TZ_SYS_RO_ETC}/location %post rm -rf %{_libdir}/liblbs-server-plugin.so @@ -64,4 +58,4 @@ ln -sf %{_libdir}/liblbs-server-plugin-replay.so %{_libdir}/libSLP-lbs-plugin.so %license LICENSE %defattr(-,root,root,-) %{_libdir}/liblbs-server-plugin-replay.so* -%{DATADIR}/replay/* +%{TZ_SYS_RO_ETC}/location/*