%define disable_cap_admin 0
%endif
+%define GUMD_DBUS_SERVICE "src/daemon/dbus/services/org.O1.SecurityAccounts.gUserManagement.service"
Name: gumd
Summary: User management daemon and client library
%setup -q -n %{name}-%{version}
cp -a %{SOURCE1001} %{name}.manifest
cp -a %{SOURCE1002} libgum.manifest
+
+%if "%{TIZEN_PRODUCT_TV}" == "1"
+mv "%{GUMD_DBUS_SERVICE}".vd.in "%{GUMD_DBUS_SERVICE}".in
+%else
+mv "%{GUMD_DBUS_SERVICE}".common.in "%{GUMD_DBUS_SERVICE}".in
%if %{disable_cap_admin} == 1
echo "CapabilityBoundingSet=~CAP_MAC_ADMIN" >> data/gumd.service
echo "SmackProcessLabel=System" >> data/gumd.service
%else
echo "SmackProcessLabel=System::Privileged" >> data/gumd.service
%endif
+%endif
%build
autoreconf -ivf
rm -f %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
install -m 755 -d %{buildroot}%{_sysconfdir}/%{name}
install -m 644 data/tizen/etc/%{name}/%{name}-tizen-common.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
+%if "%{TIZEN_PRODUCT_TV}" != "1"
install -m 755 -d %{buildroot}%{_unitdir}
install -m 644 data/gumd.service %{buildroot}%{_unitdir}
+%endif
%post
ldconfig
%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"
%{_unitdir}/gumd.service
%endif
+%endif
%files doc
%defattr(-,root,root,-)