summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/hal-rootstrap-data-common.spec16
1 files changed, 14 insertions, 2 deletions
diff --git a/packaging/hal-rootstrap-data-common.spec b/packaging/hal-rootstrap-data-common.spec
index 0cf6ae7..889a795 100644
--- a/packaging/hal-rootstrap-data-common.spec
+++ b/packaging/hal-rootstrap-data-common.spec
@@ -7,6 +7,18 @@
%define WITH_DA 0
%endif
+%if "%{tizen_profile_name}" == "tv"
+%define WITH_VD 1
+%else
+%define WITH_VD 0
+%endif
+
+%if "%{mv_prj}" == "1"
+%define WITH_VD_MV 1
+%else
+%define WITH_VD_MV 0
+%endif
+
Name: %{name}
Summary: %{desc}
Version: 0.1.0
@@ -148,7 +160,7 @@ BuildRequires: pkgconfig(hal-api-tbm)
Requires: pkgconfig(hal-api-tdm)
BuildRequires: pkgconfig(hal-api-tdm)
-%if "%{tizen_profile_name}" != "tv" && "%{mv_prj}" != "1"
+%if "%{WITH_VD}" == "0" && "%{WITH_VD_MV}" == "0"
Requires: glibc
BuildRequires: glibc
Requires: glibc-devel
@@ -208,7 +220,7 @@ mkdir %{buildroot}
mkdir -p %{buildroot}/tmp
ls -al
cp -R ./rs_resource %{buildroot}/tmp
-%if "%{tizen_profile_name}" == "tv" || "%{mv_prj}" == "1"
+%if "%{WITH_VD}" == "1" || "%{WITH_VD_MV}" == "1"
rm -f %{buildroot}/tmp/rs_resource/common/NativeAPI/capi-system-peripheral-io-rs.xml
rm -f %{buildroot}/tmp/rs_resource/common/HAL/hal-api-bluetooth-rs.xml
rm -f %{buildroot}/tmp/rs_resource/common/HAL/hal-api-location-rs.xml