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
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
%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