%setup -q -n %{name}-%{version}
cp -a %{SOURCE1001} %{name}.manifest
cp -a %{SOURCE1002} libgum.manifest
+cp data/gumd.service data/gumd.service.wearable
%if "%{TIZEN_PRODUCT_TV}" == "1"
mv "%{GUMD_DBUS_SERVICE}".vd.in "%{GUMD_DBUS_SERVICE}".in
mv "%{GUMD_DBUS_SERVICE}".common.in "%{GUMD_DBUS_SERVICE}".in
# wearable
-cp data/gumd.service data/gumd.service.wearable
echo "CapabilityBoundingSet=~CAP_MAC_ADMIN" >> data/gumd.service.wearable
echo "SmackProcessLabel=System" >> data/gumd.service.wearable
# non-wearable
install -m 644 data/tizen/etc/%{name}/%{name}-tizen-common.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
install -m 755 -d %{buildroot}%{_datadir}/upgrade/scripts
install -m 644 data/500.gumd_upgrade.sh %{buildroot}%{_datadir}/upgrade/scripts
-%if "%{TIZEN_PRODUCT_TV}" != "1"
install -m 755 -d %{buildroot}%{_unitdir}
-install -m 644 data/gumd.service %{buildroot}%{_unitdir}
install -m 644 data/gumd.service.wearable %{buildroot}%{_unitdir}
+%if "%{TIZEN_PRODUCT_TV}" != "1"
+install -m 644 data/gumd.service %{buildroot}%{_unitdir}
%endif
%post