Summary: Resource policy framework
Name: murphy
-Version: 0.0.59
+Version: 0.0.65
Release: 1
License: BSD-3-Clause
Group: System/Service
# Copy the systemd files in place.
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_unitdir_user}
-cp packaging.in/murphyd.service %{buildroot}%{_unitdir}
-%if %{_enable_icosyscon}
-# cp packaging.in/ico-homescreen.service %{buildroot}%{_unitdir_user}
-# cp packaging.in/murphy-wait-for-launchpad-ready.path \
-# %{buildroot}%{_unitdir_user}
-%endif
+cp packaging.in/murphyd.service %{buildroot}%{_unitdir_user}
%if %{?_with_dbus:1}%{!?_with_dbus:0}
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
rm -rf %{buildroot}
%post
-/bin/systemctl enable murphyd.service
+/bin/systemctl --user enable --global murphyd.service
setcap 'cap_net_admin=+ep' %{_bindir}/murphyd
%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1}
%postun
if [ "$1" = "0" ]; then
-/bin/systemctl disable murphyd.service
+/bin/systemctl --user disable --global murphyd.service
fi
%if %{?_with_squashpkg:0}%{!?_with_squashpkg:1}
ldconfig
%endif
-%if %{_enable_icosyscon}
-%post system-controller
-# prevent system controller from starting
-# rm -f %{_unitdir_user}/weston.target.wants/ico-uxf-wait-launchpad-ready.path
-# instead launch just ico-homescreen
-# rm -f %{_unitdir_user}/weston.target.wants/murphy-wait-for-launchpad-ready.path
-# ln -s %{_unitdir_user}/murphy-wait-for-launchpad-ready.path \
-# %{_unitdir_user}/weston.target.wants/murphy-wait-for-launchpad-ready.path
-
-%postun system-controller
-#if [ "$1" = "0" ]; then
-# rm -f %{_unitdir_user}/weston.target.wants/murphy-wait-for-launchpad-ready.path
-# if [ -f %{_unitdir_user}/ico-uxf-wait-launchpad-ready.path ]; then
-# ln -sf %{_unitdir_user}/ico-uxf-wait-launchpad-ready.path \
-# %{_unitdir_user}/weston.target.wants/ico-uxf-wait-launchpad-ready.path
-#fi
-fi
-%endif
-
%post gam
ldconfig
%manifest murphy.manifest
%{_bindir}/murphyd
%config %{_sysconfdir}/murphy
-%{_unitdir}/murphyd.service
+%{_unitdir_user}/murphyd.service
%{_tmpfilesdir}/murphyd.conf
%if %{?_with_audiosession:1}%{!?_with_audiosession:0}
%{_sbindir}/asm-bridge
%{_bindir}/resource-client
%{_bindir}/resource-api-test
%{_bindir}/resource-api-fuzz
+%{_bindir}/resource-context-create
%{_bindir}/test-domain-controller
%{_bindir}/murphy-console
%manifest murphy.manifest
%files system-controller
%defattr(-,root,root,-)
%{_libdir}/murphy/plugins/plugin-system-controller.so
-# %{_unitdir_user}/ico-homescreen.service
-# %{_unitdir_user}/murphy-wait-for-launchpad-ready.path
%manifest murphy.manifest
%endif