summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Jung <jh8801.jung@samsung.com>2016-05-24 20:03:55 +0900
committerJihoon Jung <jh8801.jung@samsung.com>2016-05-24 20:04:35 +0900
commite1d15456eef0544fc410e05fc66bb7c120699074 (patch)
treead415d68d58d23d028d4d68619936c93c65e8638
parent4d6215f92a9c91602c07c696bdbe28477a0d3b5a (diff)
downloadug-nfc-efl-accepted/tizen/mobile/20160525.003623.tar.gz
ug-nfc-efl-accepted/tizen/mobile/20160525.003623.tar.bz2
ug-nfc-efl-accepted/tizen/mobile/20160525.003623.zip
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com> Change-Id: I18ef6a859dba75672eb1013211dcffe2447de923
-rw-r--r--packaging/ug-nfc-efl.spec24
1 files changed, 13 insertions, 11 deletions
diff --git a/packaging/ug-nfc-efl.spec b/packaging/ug-nfc-efl.spec
index fe8c193..759d4f4 100644
--- a/packaging/ug-nfc-efl.spec
+++ b/packaging/ug-nfc-efl.spec
@@ -1,22 +1,24 @@
-%if 0
-Name: ug-nfc-efl
-Summary: NFC Setting UI for Mobile profile
+%if "%{?profile}" == "mobile"
%global PREFIX /usr/ug
%endif
-%if 1
-Name: org.tizen.nfc-setting-app
-Summary: NFC Setting UI for Wearable profile
-%global PREFIX %{_prefix}/apps/%{name}
+%if "%{?profile}" == "wearable"
+%global PREFIX %{_prefix}/apps/org.tizen.nfc-setting-app/
+%endif
+
+%if "%{?profile}" == "tv"
+ExcludeArch: %{arm} %ix86 x86_64
%endif
+Name: ug-nfc-efl
+Summary: NFC Setting UI
Version: 3.1.0
Release: 0
Group: App/Network
License: Flora-1.1
Source0: %{name}-%{version}.tar.gz
-%if 0
+%if "%{?profile}" == "mobile"
BuildRequires: pkgconfig(ui-gadget-1)
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(capi-content-mime-type)
@@ -25,7 +27,7 @@ BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(notification)
%endif
-%if 1
+%if "%{?profile}" == "wearable"
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(syspopup)
@@ -51,10 +53,10 @@ NFC Setting UI
%build
cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} \
-%if 0
+%if "%{?profile}" == "mobile"
-DTIZEN_MOBILE=1
%endif
-%if 1
+%if "%{?profile}" == "wearable"
-DTIZEN_WEARABLE=1
%endif