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) {
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
%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} \
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
%license LICENSE
%defattr(-,root,root,-)
%{_libdir}/liblbs-server-plugin-replay.so*
-%{DATADIR}/replay/*
+%{TZ_SYS_RO_ETC}/location/*