Clean spec file for yocto compliance. 08/24508/2 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0_ivi tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.m14.3_ivi tizen_3.0_ivi accepted/tizen/common/20140915.091238 submit/tizen_common/20140912.150039 submit/tizen_common/20140912.150451 submit/tizen_ivi/20140916.000000 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release tizen_3.0_ivi_release
authorRonan Le Martret <ronan@fridu.net>
Tue, 15 Jul 2014 13:01:25 +0000 (15:01 +0200)
committerRonan Le Martret <ronan@fridu.net>
Thu, 28 Aug 2014 07:44:01 +0000 (09:44 +0200)
Change-Id: Iae5d175789742703b61322ffc89124e92636df54
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
packaging/libprivilege-control.spec

index 961aa60..f3d9cdc 100644 (file)
@@ -1,7 +1,7 @@
 Name:       libprivilege-control
 Summary:    Library to control privilege of application
 Version:    0.0.43.TIZEN
-Release:    1
+Release:    0
 Group:      Security/Access Control
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
@@ -31,7 +31,6 @@ Requires:   %{name} = %{version}-%{release}
 %description conf
 Library to control privilege of application files
 
-
 %prep
 %setup -q
 cp %{SOURCE1001} .
@@ -46,27 +45,24 @@ export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
 export CFLAGS="${CFLAGS} -Wno-implicit-function-declaration"
 %cmake . -DCMAKE_BUILD_TYPE=%{?build_type:%build_type}%{!?build_type:RELEASE} \
          -DCMAKE_VERBOSE_MAKEFILE=ON \
-        -DTZ_SYS_DB=%TZ_SYS_DB \
-        -DTZ_SYS_HOME=%TZ_SYS_HOME \
-        -DTZ_SYS_ETC=%TZ_SYS_ETC \
-        -DSYSTEMD_UNIT_DIR=%{_unitdir}
+         -DTZ_SYS_DB=%TZ_SYS_DB \
+         -DTZ_SYS_HOME=%TZ_SYS_HOME \
+         -DTZ_SYS_ETC=%TZ_SYS_ETC \
+         -DSYSTEMD_UNIT_DIR=%{_unitdir}
 
-VERBOSE=1 make %{?jobs:-j%jobs}
+VERBOSE=1 %__make %{?jobs:-j%jobs}
 
 %install
 %make_install
 mkdir -p %{buildroot}%{_datadir}/privilege-control/
-
 mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
 ln -sf %{_unitdir}/smack-rules.service %{buildroot}%{_unitdir}/multi-user.target.wants/smack-rules.service
 mkdir -p %{buildroot}%{TZ_SYS_DB}
-
 sed -i 's|TZ_SYS_DB|%{TZ_SYS_DB}|g' %{SOURCE1001}
 
 %post
 /sbin/ldconfig
-
-%{_datadir}/privilege-control/db/updater.sh
+%{TZ_SYS_SHARE}/privilege-control/db/updater.sh
 chsmack -a 'System' %{TZ_SYS_DB}/.rules-db.db3*
 
 %postun -p /sbin/ldconfig