Name: geofence-server
Summary: Geofence Server for Tizen
-Version: 0.4.4
+Version: 0.4.5
Release: 1
Group: Location/Service
License: Apache-2.0
%make_install
mkdir -p %{buildroot}%{upgrade_script_path}
-cp -f scripts/geofence-server_upgrade.sh %{buildroot}%{upgrade_script_path}
+cp -f scripts/500.%{name}.sh %{buildroot}%{upgrade_script_path}
#service for systemd is not installed to support only DBus auto activation
#mkdir -p %{buildroot}%{_unitdir_user}/default.target.wants
/usr/bin/geofence-server
/usr/share/dbus-1/services/org.tizen.lbs.Providers.GeofenceServer.service
%config %{_sysconfdir}/dbus-1/session.d/geofence-server.conf
-%{upgrade_script_path}/geofence-server_upgrade.sh
+%{upgrade_script_path}/500.%{name}.sh
#service for systemd is not installed to support only DBus auto activation
#%{_unitdir_user}/geofence-server.service
--- /dev/null
+#!/bin/sh
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+#------------------------------------------------#
+# geofence-server patch for upgrade (2.4 -> 3.0) #
+#------------------------------------------------#
+
+# Macro
+DB_DIR_24=/opt/usr/dbspace/
+DB_DIR_30=/opt/usr/home/owner/.applications/dbspace/
+DB_FILE=.geofence-server.db
+
+# move DB
+mv $DB_DIR_24$DB_FILE $DB_DIR_30
+mv $DB_DIR_24$DB_FILE-journal $DB_DIR_30
+
+#set Permission
+chown owner:users $DB_DIR_30$DB_FILE
+chown owner:users $DB_DIR_30$DB_FILE-journal
+
+exit 0
+++ /dev/null
-#!/bin/sh
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-#------------------------------------------------#
-# geofence-server patch for upgrade (2.4 -> 3.0) #
-#------------------------------------------------#
-
-# Macro
-DB_DIR_24=/opt/usr/dbspace/
-DB_DIR_30=/opt/usr/home/owner/.applications/dbspace/
-DB_FILE=.geofence-server.db
-
-# move DB
-mv $DB_DIR_24$DB_FILE $DB_DIR_30
-mv $DB_DIR_24$DB_FILE-journal $DB_DIR_30
-
-#set Permission
-chown owner:users $DB_DIR_30$DB_FILE
-chown owner:users $DB_DIR_30$DB_FILE-journal
-
-exit 0