build info: add TZ_BUILD_RELEASE_TYPE and TZ_BUILD_VARIANT 67/62867/3 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170105.025635 accepted/tizen/3.0.m2/tv/20170105.025718 accepted/tizen/3.0.m2/wearable/20170105.025805 accepted/tizen/3.0/common/20161114.111917 accepted/tizen/3.0/ivi/20161011.065231 accepted/tizen/3.0/mobile/20161015.034301 accepted/tizen/3.0/tv/20161016.010126 accepted/tizen/3.0/wearable/20161015.084450 accepted/tizen/common/20160323.185514 accepted/tizen/ivi/20160323.141112 accepted/tizen/mobile/20160323.135839 accepted/tizen/tv/20160323.140050 accepted/tizen/unified/20170309.040822 accepted/tizen/wearable/20160323.135833 submit/tizen/20160323.103509 submit/tizen_3.0.m2/20170104.093755 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000007 submit/tizen_3.0_mobile/20161015.000007 submit/tizen_3.0_tv/20161015.000006 submit/tizen_3.0_wearable/20161015.000006 submit/tizen_unified/20170308.100417
authorTaeyoung Kim <ty317.kim@samsung.com>
Mon, 21 Mar 2016 01:59:57 +0000 (10:59 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Mon, 21 Mar 2016 06:34:44 +0000 (15:34 +0900)
- TZ_BUILD_RELEASE_TYPE contains "eng" or "user".
  Default value is "eng".

- TZ_BUILD_VARIANT contains variant information
  related with build. Default value is "NONE".

Change-Id: I658520252c4580f3a65b4de5d7da4c392fe245c0
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
packaging/tizen-release.spec

index 1f5784a..d3aab91 100644 (file)
@@ -26,6 +26,21 @@ Tizen release files such as various /etc/ files that define the release.
 
 %prep
 
+%define release_type_default eng
+
+%if z%{?tizen_build_devel_mode} == z && z%{?tizen_build_binary_release_type_eng} == z
+       %define release_type %release_type_default
+%else
+       %if 0%{?tizen_build_devel_mode} == 1 || 0%{?tizen_build_devel_mode} == 1
+               %define release_type %release_type_default
+       %else
+               %define release_type user
+       %endif
+%endif
+
+%define build_variant_default NONE
+%define build_variant %{?tizen_build_variant}%{?!tizen_build_variant:%{build_variant_default}}
+
 %build
 
 %install
@@ -128,6 +143,8 @@ cat > %{buildroot}%{_sysconfdir}/tizen-build.conf <<'EOF'
 TZ_BUILD_RELEASE_NAME="%{release_name}"
 TZ_BUILD_VERSION=%{tizen_version}
 TZ_BUILD_FULLVER=%{tizen_full_version}
+TZ_BUILD_RELEASE_TYPE=%{release_type}
+TZ_BUILD_VARIANT=%{build_variant}
 
 TZ_BUILD_PROFILE=%{profile}
 TZ_BUILD_PROJECT=%{_project}