From e0a7863b9d6373af1ca9f649b3b23ec16e75abc0 Mon Sep 17 00:00:00 2001 From: YoungHun Kim Date: Fri, 31 Aug 2018 17:14:29 +0900 Subject: [PATCH] Add the type of vd product by requirement Change-Id: Iac2a7ad3b0f76460f6423d1b2a17767312bceea3 --- packaging/mused.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packaging/mused.spec b/packaging/mused.spec index 4164c8c..0255cad 100644 --- a/packaging/mused.spec +++ b/packaging/mused.spec @@ -1,6 +1,6 @@ Name: mused Summary: A multimedia daemon -Version: 0.3.47 +Version: 0.3.48 Release: 0 Group: System/Libraries License: Apache-2.0 @@ -73,7 +73,7 @@ export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE -D_GNU_SOURCE" export CFLAGS+=" -DMUSE_USE_CLIENT_SIGHANDLER" %endif -%if ("%{_vd_cfg_product_type}" == "AUDIO") || ("%{_vd_cfg_product_type}" == "TV") || ("%{_vd_cfg_product_type}" == "LFD") || ("%{_vd_cfg_product_type}" == "HTV") || ("%{_vd_cfg_product_type}" == "AV") || ("%{_vd_cfg_product_type}" == "IWB") +%if ("%{_vd_cfg_product_type}" == "AUDIO") || ("%{_vd_cfg_product_type}" == "TV") || ("%{_vd_cfg_product_type}" == "LFD") || ("%{_vd_cfg_product_type}" == "HTV") || ("%{_vd_cfg_product_type}" == "AV") || ("%{_vd_cfg_product_type}" == "IWB") || ("%{_vd_cfg_product_type}" == "WALL") export CFLAGS+=" -DMUSE_REGISTER_VIP -DMUSE_USE_LWIPC -DMUSE_TTRACE_LOG" %cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DLIBDIR=%{_libdir} -DTZ_SYS_DATA=%TZ_SYS_DATA -DMUSE_REGISTER_VIP=1 -DMUSE_TTRACE_LOG=1 -DMUSE_USE_LWIPC=1 %else @@ -93,7 +93,7 @@ mkdir -p %{buildroot}%{_unitdir}/stater.target.wants install -m 0644 %SOURCE5 %{buildroot}%{_unitdir}/muse-server.service %install_service starter.target.wants muse-server.service %else -%if ("%{_vd_cfg_product_type}" == "TV") || ("%{_vd_cfg_product_type}" == "LFD") || ("%{_vd_cfg_product_type}" == "HTV") || ("%{_vd_cfg_product_type}" == "AV") || ("%{_vd_cfg_product_type}" == "IWB") +%if ("%{_vd_cfg_product_type}" == "TV") || ("%{_vd_cfg_product_type}" == "LFD") || ("%{_vd_cfg_product_type}" == "HTV") || ("%{_vd_cfg_product_type}" == "AV") || ("%{_vd_cfg_product_type}" == "IWB") || ("%{_vd_cfg_product_type}" == "WALL") mkdir -p %{buildroot}%{_unitdir}/basic.target.wants install -m 0644 %SOURCE4 %{buildroot}%{_unitdir}/muse-server.service %install_service basic.target.wants muse-server.service @@ -104,7 +104,7 @@ install -m 0644 %SOURCE1 %{buildroot}%{_unitdir}/muse-server.service %endif %endif -%if ("%{_vd_cfg_product_type}" == "AUDIO") || ("%{_vd_cfg_product_type}" == "TV") || ("%{_vd_cfg_product_type}" == "LFD") || ("%{_vd_cfg_product_type}" == "HTV") || ("%{_vd_cfg_product_type}" == "AV") || ("%{_vd_cfg_product_type}" == "IWB") +%if ("%{_vd_cfg_product_type}" == "AUDIO") || ("%{_vd_cfg_product_type}" == "TV") || ("%{_vd_cfg_product_type}" == "LFD") || ("%{_vd_cfg_product_type}" == "HTV") || ("%{_vd_cfg_product_type}" == "AV") || ("%{_vd_cfg_product_type}" == "IWB") || ("%{_vd_cfg_product_type}" == "WALL") mkdir -p %{buildroot}%{_sysconfdir}/notstrip install -m 0644 %SOURCE6 %{buildroot}%{_sysconfdir}/notstrip/%{name}.notstrip install -m 0644 %SOURCE7 %{buildroot}%{_unitdir}/muse-server.path @@ -138,14 +138,14 @@ chsmack -a "System::Shared" /var/log/%{name} %if ("%{_vd_cfg_product_type}" == "AUDIO") %{_unitdir}/starter.target.wants/muse-server.service %else -%if ("%{_vd_cfg_product_type}" == "TV") || ("%{_vd_cfg_product_type}" == "LFD") || ("%{_vd_cfg_product_type}" == "HTV") || ("%{_vd_cfg_product_type}" == "AV") || ("%{_vd_cfg_product_type}" == "IWB") +%if ("%{_vd_cfg_product_type}" == "TV") || ("%{_vd_cfg_product_type}" == "LFD") || ("%{_vd_cfg_product_type}" == "HTV") || ("%{_vd_cfg_product_type}" == "AV") || ("%{_vd_cfg_product_type}" == "IWB") || ("%{_vd_cfg_product_type}" == "WALL") %{_unitdir}/basic.target.wants/muse-server.service %else %{_unitdir}/multi-user.target.wants/muse-server.service %endif %endif %{_unitdir}/muse-server.path -%if ("%{_vd_cfg_product_type}" == "AUDIO") || ("%{_vd_cfg_product_type}" == "TV") || ("%{_vd_cfg_product_type}" == "LFD") || ("%{_vd_cfg_product_type}" == "HTV") || ("%{_vd_cfg_product_type}" == "AV") || ("%{_vd_cfg_product_type}" == "IWB") +%if ("%{_vd_cfg_product_type}" == "AUDIO") || ("%{_vd_cfg_product_type}" == "TV") || ("%{_vd_cfg_product_type}" == "LFD") || ("%{_vd_cfg_product_type}" == "HTV") || ("%{_vd_cfg_product_type}" == "AV") || ("%{_vd_cfg_product_type}" == "IWB") || ("%{_vd_cfg_product_type}" == "WALL") %{_sysconfdir}/notstrip/%{name}.notstrip %endif %{TZ_SYS_DATA}/%{name} -- 2.7.4