From 5c2cfb0b8a1f7a83bbe7954688907f04b7c3fe7d Mon Sep 17 00:00:00 2001 From: Yunmi Ha Date: Wed, 19 Jul 2017 17:22:39 +0900 Subject: [PATCH] Change build flag for tv product %{TIZEN_PRODUCT_TV} will be removed. So use %{tizen_profile_name} or %{profile} macros instead of it. %{tizen_profile_name} is for optional features that are not built in Tizen Public OBS. Change-Id: I3d40fe24d2108467319f820b915649be0aa422f0 Signed-off-by: Yunmi Ha --- packaging/gumd.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/gumd.spec b/packaging/gumd.spec index 4ff34eb..fa40285 100644 --- a/packaging/gumd.spec +++ b/packaging/gumd.spec @@ -95,7 +95,7 @@ cp -a %{SOURCE1001} %{name}.manifest cp -a %{SOURCE1002} libgum.manifest cp data/gumd.service data/gumd.service.wearable -%if "%{TIZEN_PRODUCT_TV}" == "1" +%if "%{tizen_profile_name}" == "tv" mv "%{GUMD_DBUS_SERVICE}".vd.in "%{GUMD_DBUS_SERVICE}".in %else mv "%{GUMD_DBUS_SERVICE}".common.in "%{GUMD_DBUS_SERVICE}".in @@ -126,7 +126,7 @@ install -m 755 -d %{buildroot}%{_datadir}/upgrade/scripts install -m 644 data/500.gumd_upgrade.sh %{buildroot}%{_datadir}/upgrade/scripts install -m 755 -d %{buildroot}%{_unitdir} install -m 644 data/gumd.service.wearable %{buildroot}%{_unitdir} -%if "%{TIZEN_PRODUCT_TV}" != "1" +%if "%{tizen_profile_name}" != "tv" install -m 644 data/gumd.service %{buildroot}%{_unitdir} %endif @@ -192,7 +192,7 @@ mv %{_unitdir}/gumd.service.wearable %{_unitdir}/gumd.service %dir %{_sysconfdir}/dbus-1 %dir %{_sysconfdir}/dbus-1/system.d %config(noreplace) %{_sysconfdir}/dbus-1/system.d/gumd-dbus.conf -%if "%{TIZEN_PRODUCT_TV}" != "1" +%if "%{tizen_profile_name}" != "tv" %{_unitdir}/gumd.service %endif %endif -- 2.7.4