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
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
+* 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
Group: System Environment/Libraries
License: LGPL
Source0: %{name}-%{version}.tar.gz
-Source1: scim.service
BuildRequires: edje-bin
BuildRequires: embryo-bin
BuildRequires: gettext-tools
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