Default replay file path changed 65/161565/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.015307 accepted/tizen/unified/20171127.083150 submit/tizen/20171124.081621 submit/tizen_5.0/20181101.000003
authorkj7.sung <kj7.sung@samsung.com>
Fri, 24 Nov 2017 06:47:20 +0000 (15:47 +0900)
committerkj7.sung <kj7.sung@samsung.com>
Fri, 24 Nov 2017 06:47:20 +0000 (15:47 +0900)
Change-Id: If0adab9b195ed6f34bd6e9cfe88d64b6aeb43af4
Signed-off-by: kj7.sung <kj7.sung@samsung.com>
gps-plugin/src/gps_plugin_replay.c
packaging/lbs-server-plugin-replay.spec

index a6996a66cf886b6a0bffeb887e848f26e9ad98c2..e1598e72bad2e520d4d2a984e9e95fb8c03bfda4 100644 (file)
@@ -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) {
index 358b9ffb9f77e141ce6ebe575b8887bec5129b4a..f8a154b548ed63f238ce38d3e379db0ee51c96e1 100644 (file)
@@ -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/*