Since there are packages that only required by robot profile, it is
required to use separated hal-rootstrap-data-robot and 'BuildRequire' it
only when the build profile is robot.
To accomplish this, the robot profile flag '_with_robot_profile' is used
and when it is '1', the flag WITH_ROBOT is set.
The hal-rootstrap-data-robot is 'BuildRequire' only when the WITH_ROBOT
flag is set.
Change-Id: Ide8ad0ba230b739b092f0da6eb131164efc5e87a
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
%define devel_name hal-rootstrap-devel
%define hal_rootstrap_install_path /opt/data/hal-rootstrap
+%if "%{_with_robot_profile}" == "1"
+%define WITH_ROBOT 1
+%else
+%define WITH_ROBOT 0
+%endif
+
%if "%{_with_da_profile}" == "1"
%define WITH_DA 1
%else
BuildRequires: python3
BuildRequires: hal-rootstrap-data-common
+%if "%{WITH_ROBOT}" == "1"
+BuildRequires: hal-rootstrap-data-robot
+%endif
### hal-rootstrap
%description