Change build macro for tv profile 58/176458/1 accepted/tizen/unified/20180424.082628 submit/tizen/20180419.133139 submit/tizen/20180419.230938 submit/tizen/20180504.091815
authorWonnam Jang <wn.jang@samsung.com>
Thu, 19 Apr 2018 09:55:35 +0000 (18:55 +0900)
committerWonnam Jang <wn.jang@samsung.com>
Thu, 19 Apr 2018 09:55:35 +0000 (18:55 +0900)
Change-Id: Iefc63b774a5c2f91d9e146814833336634748265
Signed-off-by: Wonnam Jang <wn.jang@samsung.com>
packaging/stt.spec

index 03350df..96a94ee 100644 (file)
@@ -32,7 +32,7 @@ BuildRequires:  pkgconfig(pkgmgr)
 BuildRequires:  pkgconfig(pkgmgr-info)
 BuildRequires:  pkgconfig(pkgmgr-installer)
 BuildRequires:  pkgconfig(vconf)
-%if "%{PRODUCT_TYPE}" == "TV"
+%if "%{tizen_profile_name}" == "tv"
 BuildRequires:  pkgconfig(capi-network-bluetooth)
 BuildRequires:  pkgconfig(capi-network-bluetooth-tv)
 %endif
@@ -88,7 +88,7 @@ export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
-%if "%{PRODUCT_TYPE}" == "TV"
+%if "%{tizen_profile_name}" == "tv"
 export CFLAGS="$CFLAGS -DTV_PRODUCT"
 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DLIBDIR=%{_libdir} -DBINDIR=%{_bindir} -DINCLUDEDIR=%{_includedir} \
         -DTZ_SYS_RO_SHARE=%TZ_SYS_RO_SHARE -DTZ_SYS_BIN=%TZ_SYS_BIN -D_TV_PRODUCT=TRUE
@@ -102,7 +102,7 @@ make %{?jobs:-j%jobs}
 %install
 rm -rf %{buildroot}
 
-%if "%{PRODUCT_TYPE}" == "TV"
+%if "%{tizen_profile_name}" == "tv"
 mv -f org.tizen.voice.sttserver.tv.service org.tizen.voice.sttserver.service
 %endif