summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-10-24 17:02:45 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-10-24 17:02:45 +0900
commitdb27c8eed31267c4474eed2065b10901025152d5 (patch)
treee4b95795c829d9d6ff65ddcc9b2e066addf7ecca /packaging
parent325f3b21e498c8b0b1e615d2bac301b5c1d737a2 (diff)
downloadsmack-privilege-config-accepted/tizen/2.4/mobile/20151029.032036.tar.gz
smack-privilege-config-accepted/tizen/2.4/mobile/20151029.032036.tar.bz2
smack-privilege-config-accepted/tizen/2.4/mobile/20151029.032036.zip
Diffstat (limited to 'packaging')
-rw-r--r--packaging/smack-privilege-config.changes2
-rw-r--r--packaging/smack-privilege-config.spec12
2 files changed, 11 insertions, 3 deletions
diff --git a/packaging/smack-privilege-config.changes b/packaging/smack-privilege-config.changes
index 51fcce3..46efd69 100644
--- a/packaging/smack-privilege-config.changes
+++ b/packaging/smack-privilege-config.changes
@@ -1,4 +1,4 @@
-* Tue Nov 25 2014 jooseong.lee - 1.0.8
+* Tue Nov 25 2014 jooseong.lee - 1.0.8
[jooseong.lee]
- Release wearable privilege
- Release EFL privilege
diff --git a/packaging/smack-privilege-config.spec b/packaging/smack-privilege-config.spec
index 126cd28..ca87f41 100644
--- a/packaging/smack-privilege-config.spec
+++ b/packaging/smack-privilege-config.spec
@@ -8,6 +8,7 @@ Source0: %{name}-%{version}.tar.gz
Source1: %{name}.manifest
BuildRequires: cmake
Requires: /usr/bin/chsmack
+Requires: /usr/bin/which
%description
SMACK rules package to control privilege of in-house application
@@ -16,10 +17,16 @@ SMACK rules package to control privilege of in-house application
%setup -q
%build
-%if %{?tizen_profile_name} == "wearable"
+%if "%{?tizen_profile_name}" == "wearable"
__PROFILE_TYPE="WEARABLE"
-%elseif %{?tizen_profile_name} == "mobile"
+%else
+%if "%{?tizen_profile_name}" == "mobile"
__PROFILE_TYPE="MOBILE"
+%else
+%if "%{?tizen_profile_name}" == "tv"
+ __PROFILE_TYPE="TV"
+%endif
+%endif
%endif
%cmake . -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \
@@ -35,6 +42,7 @@ cp -a %{SOURCE1} %{buildroot}%{_datadir}/
%make_install
%post
+
if which api_feature_loader >/dev/null; then
api_feature_loader --verbose
else