The launchpad.rpm checks whether the enlightenment-user.service exists
or not in posttrans section. If it does not exists, the rpm removes
depenedencies from the launchpad-process-pool.service.
Change-Id: I0e3a28aca6a3410f734a93c5cd68bf590ece9457
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Requires(postun): /sbin/ldconfig
Requires(postun): /usr/bin/systemctl
Requires(preun): /usr/bin/systemctl
+Requires(posttrans): /usr/bin/echo
+Requires(posttrans): /usr/bin/sed
Provides: app-launchpad
%post
lns -sf /usr/bin/false /usr/bin/process-pool
+%posttrans
+if [ -f %{_unitdir_user}/enlightenment-user.service ]; then
+ echo "enlightenment-user.service exists";
+else
+ echo "enlightenment-user.service does not exist";
+ sed -i 's/Requires=enlightenment-user.service//' %{_unitdir_user}/launchpad-process-pool.service;
+ sed -i 's/After=enlightenment-user.service//' %{_unitdir_user}/launchpad-process-pool.service;
+fi
+
%files
%manifest launchpad.manifest
%license LICENSE