[AppInstaller] Added definition of profile in spec 88/39188/1 accepted/tizen/common/20150522.093900 accepted/tizen/mobile/20150526.000931 accepted/tizen/tv/20150522.070935 submit/tizen_common/20150522.999999 submit/tizen_mobile/20150522.061520 submit/tizen_mobile/20150525.122912 submit/tizen_tv/20150522.061310
authorWojciech Kosowicz <w.kosowicz@samsung.com>
Thu, 7 May 2015 13:48:50 +0000 (15:48 +0200)
committerWojciech Kosowicz <w.kosowicz@samsung.com>
Fri, 8 May 2015 08:30:10 +0000 (10:30 +0200)
Change-Id: I4115f82847de3ab9a0c54361035c58f60982d1d7
Signed-off-by: Wojciech Kosowicz <w.kosowicz@samsung.com>
packaging/app-installers.spec

index d4f77f6..8b026a5 100644 (file)
@@ -1,3 +1,6 @@
+#Available values for profile: mobile, wearable, tv, ivi, common
+%{!?profile:%define profile tv}
+
 Name:           app-installers
 Summary:        Application installers
 Version:        1.0
@@ -61,6 +64,7 @@ Requires: %{name} = %{version}
 %description tests
 Unit tests for al modules of app-installers
 
+
 %prep
 %setup -q
 
@@ -68,7 +72,12 @@ cp %{SOURCE1001} .
 cp %{SOURCE1002} .
 
 %build
-%cmake . -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} -DWRT_LAUNCHER=%{_bindir}/xwalk-launcher
+#Variable for setting symlink to runtime
+runtime_path=%{_bindir}/xwalk-launcher
+%if "%{profile}" == "mobile" || "%{profile}" == "wearable" || "%{profile}" == "tv"
+runtime_path=%{_bindir}/wrt
+%endif
+%cmake . -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} -DWRT_LAUNCHER=${runtime_path}
 make %{?_smp_mflags}
 
 %install