Add multi-user support 61/18261/2 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0_ivi accepted/tizen_ivi tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.m14.2_ivi tizen_3.0.m14.3_ivi tizen_3.0_ivi submit/tizen_common/20140521.163740 submit/tizen_common/20140522.130648 submit/tizen_common/20140522.135644 submit/tizen_ivi/20140618.000000 submit/tizen_ivi/20140618.000001 submit/tizen_ivi/20140619.000000 submit/tizen_ivi/20140622.000000 submit/tizen_ivi/20140623.000000 submit/tizen_ivi/20140624.064036 submit/tizen_ivi/20140626.125712 submit/tizen_ivi/20140626.130032 submit/tizen_ivi/20140626.144348 submit/tizen_mobile/20141120.000000 submit/tizen_mobile/20150129.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.2_ivi_release tizen_3.0.m14.3_ivi_release tizen_3.0_ivi_release
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 19 Mar 2014 15:29:57 +0000 (16:29 +0100)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 2 Apr 2014 06:49:38 +0000 (08:49 +0200)
Also set a valid license tag.

Bug-Tizen: PTREL-394
Change-Id: Ifcc5a6e06a4432b9974eedf3233c62028b886daa
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
CMakeLists.txt
packaging/liblocation-appman.spec

index 51333b9..449ac7d 100644 (file)
@@ -6,7 +6,7 @@ PROJECT(${fw_name})
 
 SET(CMAKE_INSTALL_PREFIX /usr)
 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-SET(DBDIR "/opt/dbspace")
+SET(DBDIR ${TZ_SYS_DB})
 
 SET(INC_DIR include)
 INCLUDE_DIRECTORIES(${INC_DIR})
index 0d97a8d..cf764e0 100644 (file)
@@ -2,11 +2,11 @@
 Name:       liblocation-appman
 Summary:    Location DB controler
 Version:    0.1.6
-Release:    1
+Release:    0
 Group:      System/Libraries
-License:    TBD
+License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
-Source1001:    liblocation-appman.manifest
+Source1001: liblocation-appman.manifest
 
 Requires(post): sqlite
 BuildRequires:  cmake
@@ -15,6 +15,7 @@ BuildRequires:  pkgconfig(dlog)
 BuildRequires:  pkgconfig(sqlite3)
 BuildRequires:  pkgconfig(libxml-2.0)
 BuildRequires:  pkgconfig(capi-appfw-app-manager)
+BuildRequires:  libtzplatform-config-devel
 BuildRequires:  libgcrypt-devel
 
 %description
@@ -36,7 +37,7 @@ cp %{SOURCE1001} .
 
 
 %build
-%cmake .
+%cmake . -DTZ_SYS_DB=%{TZ_SYS_DB}
 
 # Call make instruction with smp support
 make %{?jobs:-j%jobs}
@@ -44,8 +45,7 @@ make %{?jobs:-j%jobs}
 %post
 /sbin/ldconfig
 
-chown 0:5000 /opt/dbspace/.location-appman.db*
-chmod 664 /opt/dbspace/.location-appman.db*
+
 %postun -p /sbin/ldconfig
 
 %install
@@ -60,7 +60,7 @@ rm -rf %{buildroot}
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
 %{_libdir}/liblocation-appman.so*
-%{_optdir}/dbspace/.location-appman.db*
+%attr(664,root,%{TZ_SYS_USER_GROUP}) %{TZ_SYS_DB}/.location-appman.db*
 
 %files devel
 %manifest %{name}.manifest