summaryrefslogtreecommitdiff
path: root/packaging/dbus.spec
diff options
context:
space:
mode:
authorINSUN PYO <insun.pyo@samsung.com>2016-08-19 17:03:21 +0900
committerINSUN PYO <insun.pyo@samsung.com>2016-08-19 17:03:53 +0900
commit414f2c05b0376804587e0d36e7bf503f81432d5c (patch)
tree84341ee2a24cef8fa4f60f0769b10aee2bd39736 /packaging/dbus.spec
parentc7b94b4caa7a09a4720ee49b9dbb1969bd91747a (diff)
downloaddbus-414f2c05b0376804587e0d36e7bf503f81432d5c.tar.gz
dbus-414f2c05b0376804587e0d36e7bf503f81432d5c.tar.bz2
dbus-414f2c05b0376804587e0d36e7bf503f81432d5c.zip
Signed-off-by: INSUN PYO <insun.pyo@samsung.com> Change-Id: I5ec89ce65fe196d54a4b130e41a83a82acb40101
Diffstat (limited to 'packaging/dbus.spec')
-rw-r--r--packaging/dbus.spec12
1 files changed, 9 insertions, 3 deletions
diff --git a/packaging/dbus.spec b/packaging/dbus.spec
index 0c1e77d4..3ebdc791 100644
--- a/packaging/dbus.spec
+++ b/packaging/dbus.spec
@@ -136,14 +136,18 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/dbus
touch %{buildroot}/%{_localstatedir}/lib/dbus/machine-id
mkdir -p %{buildroot}%{_unitdir_user}
-install -m0644 %{SOURCE5} %{buildroot}%{_unitdir_user}/dbus.service
-install -m0644 %{SOURCE6} %{buildroot}%{_unitdir_user}/dbus.socket
+install -m 0644 %{SOURCE5} %{buildroot}%{_unitdir_user}/dbus.service
+install -m 0644 %{SOURCE6} %{buildroot}%{_unitdir_user}/dbus.socket
+
+mkdir -p %{buildroot}%{_unitdir_user}/basic.target.wants
+ln -sf ../dbus.service %{buildroot}%{_unitdir_user}/basic.target.wants/dbus.service
+
rm -rf %{buildroot}/%{_libdir}/*.la
rm -rf %{buildroot}/%{_bindir}/dbus-launch
# install script for login shells (/etc/profile.d)
install -d %{buildroot}%{_sysconfdir}/profile.d
-install -m0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/profile.d/dbus.sh
+install -m 0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/profile.d/dbus.sh
# docs
rm -rf %{buildroot}%{_datadir}/doc
@@ -190,6 +194,8 @@ rm -rf %{buildroot}%{_datadir}/doc
%{_unitdir}/dbus.socket
%{_unitdir_user}/dbus.service
%{_unitdir_user}/dbus.socket
+%dir %{_unitdir_user}/basic.target.wants
+%{_unitdir_user}/basic.target.wants/dbus.service
%dir %{_unitdir}/dbus.target.wants
%{_unitdir}/dbus.target.wants/dbus.socket
%dir %{_unitdir}/multi-user.target.wants