Make systemd unit file as part of source code 25/10125/2
authorChengwei Yang <chengwei.yang@intel.com>
Sat, 21 Sep 2013 08:26:09 +0000 (16:26 +0800)
committerChengwei Yang <chengwei.yang@intel.com>
Sat, 21 Sep 2013 08:26:17 +0000 (16:26 +0800)
systemd unit file is part of source code rather than a part of Tizen
packaging system.

Change-Id: I248221eaa6b663182bf5923eb5cdee82319cf864
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
Makefile.am
packaging/isf.changes
packaging/isf.spec

index f10ac34..3609718 100644 (file)
@@ -62,6 +62,10 @@ ugxml_DATA = ug-isfsetting-efl.xml
 ugsmackdir = /etc/smack/accesses2.d/
 ugsmack_DATA = ug.isfsetting-efl.include
 
+# $(libdir) will be /usr/lib64 on x86_64 arch, so hard-coded.
+systemduserunitdir = /usr/lib/systemd/user
+systemduserunit_DATA = scim.service
+
 ACLOCAL_AMFLAGS = -I ism/m4
 
 .PHONY: update-ChangeLog
@@ -71,3 +75,7 @@ update-ChangeLog:
 
 uninstall-local:
        rm -rf @SCIM_MODULE_PATH@
+
+install-data-hook:
+       $(mkinstalldirs) $(DESTDIR)$(systemduserunitdir)/core-efl.target.wants
+       ln -sf ../scim.service $(DESTDIR)$(systemduserunitdir)/core-efl.target.wants/scim.service
index 384bfd0..09ea966 100644 (file)
@@ -1,3 +1,6 @@
+* Thu Sep 19 2013 Chengwei yang <chengwei.yang@intel.com>
+- Now systemd unit file is part of source code
+
 * Wed Sep 18 2013 Chengwei yang <chengwei.yang@intel.com>
 - Fix activate scim.service failed
 
index 3770683..ca3d066 100644 (file)
@@ -8,7 +8,6 @@ Release:    1
 Group:      System Environment/Libraries
 License:    LGPL
 Source0:    %{name}-%{version}.tar.gz
-Source1:    scim.service
 BuildRequires:  edje-bin
 BuildRequires:  embryo-bin
 BuildRequires:  gettext-tools
@@ -66,10 +65,6 @@ rm -rf %{buildroot}
 mkdir -p %{buildroot}%{_datadir}/license
 install -m0644 %{_builddir}/%{buildsubdir}/COPYING %{buildroot}%{_datadir}/license/%{name}
 
-install -d %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants
-install -m0644 %{SOURCE1} %{buildroot}%{_libdir}/systemd/user/
-ln -sf ../scim.service %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants/scim.service
-
 %post
 /sbin/ldconfig
 mkdir -p /etc/scim/conf