From 9c5ae69df8adb268504ac86aa5681a4a1ffa6c0a Mon Sep 17 00:00:00 2001 From: =?utf8?q?K=C3=A9vin=20THIERRY?= Date: Wed, 19 Mar 2014 16:29:57 +0100 Subject: [PATCH] Add multi-user support MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Also set a valid license tag. Bug-Tizen: PTREL-394 Change-Id: Ifcc5a6e06a4432b9974eedf3233c62028b886daa Signed-off-by: Kévin THIERRY --- CMakeLists.txt | 2 +- packaging/liblocation-appman.spec | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 51333b9..449ac7d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) diff --git a/packaging/liblocation-appman.spec b/packaging/liblocation-appman.spec index 0d97a8d..cf764e0 100644 --- a/packaging/liblocation-appman.spec +++ b/packaging/liblocation-appman.spec @@ -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 -- 2.7.4