License: Apache License, Version 2.0
URL: N/A
Source0: %{name}-%{version}.tar.gz
-Source100: wrt-preinstall-widgets.service
+Source1: wrt-preinstall-widgets.service
BuildRequires: cmake
BuildRequires: edje-tools
BuildRequires: pkgconfig(appsvc)
cp LICENSE %{buildroot}/usr/share/license/%{name}
%make_install
-mkdir -p %{buildroot}%{_libdir}/systemd/user
-install -m 644 %{SOURCE100} %{buildroot}%{_libdir}/systemd/user
-mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-mobile-session.target.wants
-ln -s ../wrt-preinstall-widgets.service %{buildroot}%{_libdir}/systemd/user/tizen-mobile-session.target.wants
+mkdir -p %{buildroot}%{_libdir}/systemd/system/tizen-runtime.target.wants
+install -m 644 %{SOURCE1} %{buildroot}%{_libdir}/systemd/system/wrt-preinstall-widgets.service
+ln -s ../wrt-preinstall-widgets.service %{buildroot}%{_libdir}/systemd/system/tizen-runtime.target.wants/wrt-preinstall-widgets.service
%clean
rm -rf %{buildroot}
%attr(775,root,root) %{_bindir}/wrt_preinstall_widgets.sh
/usr/etc/package-manager/backendlib/libwgt.so
%attr(644,root,root) /usr/etc/wrt-installer/*.xsd
+%{_libdir}/systemd/system/tizen-runtime.target.wants/wrt-preinstall-widgets.service
+%{_libdir}/systemd/system/wrt-preinstall-widgets.service
%{_datadir}/license/%{name}
-%{_libdir}/systemd/user/tizen-mobile-session.target.wants/wrt-preinstall-widgets.service
-%{_libdir}/systemd/user/wrt-preinstall-widgets.service
%if %{with_tests}
%attr(755,root,root) %{_bindir}/wrt-installer-tests-*
/opt/share/widget/tests/installer/widgets/*
%endif
-%{_libdir}/systemd/user/tizen-mobile-session.target.wants/wrt-preinstall-widgets.service
-%{_libdir}/systemd/user/wrt-preinstall-widgets.service
[Unit]
-Description=Installation of pre-installed widgets
-ConditionPathExists=/opt/media/Downloads/.preinstallWidgets
-After=xorg.target e17.service
+Description=WRT Preinstall Widgets
+After=tizen-system.target
+Requires=tizen-system.target
[Service]
-Type=oneshot
+Type=forking
ExecStart=/usr/bin/wrt_preinstall_widgets.sh
+
+[Install]
+WantedBy=tizen-runtime.target