From d4a3f9895922d3653df664e6702222269e32e038 Mon Sep 17 00:00:00 2001 From: Wonnam Jang Date: Thu, 19 Apr 2018 18:53:26 +0900 Subject: [PATCH] Change build macro for tv profile Change-Id: I60a81733cba7959fd5acd7db023443754599f3d2 Signed-off-by: Wonnam Jang --- packaging/voice-control.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/voice-control.spec b/packaging/voice-control.spec index 3b585bc..9bc04cd 100644 --- a/packaging/voice-control.spec +++ b/packaging/voice-control.spec @@ -29,7 +29,7 @@ BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(libtzplatform-config) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(sqlite3) -%if "%{PRODUCT_TYPE}" == "TV" +%if "%{tizen_profile_name}" == "tv" BuildRequires: pkgconfig(capi-network-bluetooth) BuildRequires: pkgconfig(capi-network-bluetooth-tv) BuildRequires: pkgconfig(msfapi) @@ -91,7 +91,7 @@ cp %{SOURCE1001} %{SOURCE1002} . %build -%if "%{PRODUCT_TYPE}" == "TV" +%if "%{tizen_profile_name}" == "tv" export CFLAGS="$CFLAGS -DTV_PRODUCT" cmake . -DCMAKE_INSTALL_PREFIX=/usr -DLIBDIR=%{_libdir} -DINCLUDEDIR=%{_includedir} \ -DTZ_SYS_RO_SHARE=%TZ_SYS_RO_SHARE -D_TV_PRODUCT=TRUE -- 2.7.4