%prep
%setup -q
cp %{SOURCE1001} .
+cp %{SOURCE1002} .
%build
%if 0%{?gcov:1}
install -m 755 -d %{buildroot}%{_sysconfdir}/dbus-1/system.d
install -m 644 %{SOURCE1003} %{buildroot}%{_sysconfdir}/dbus-1/system.d
+mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
+ln -sf ../%{name}.service %{buildroot}%{_unitdir}/multi-user.target.wants/%{name}.service
+
%if 0%{?gcov:1}
mkdir -p %{buildroot}%{_datadir}/gcov/obj
install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
%post
/sbin/ldconfig
-systemctl reenable %{name}
systemctl restart %{name}
%preun
-systemctl disable %{name}
+systemctl stop %{name}
%postun
/sbin/ldconfig
%{_sysconfdir}/package-manager/parserlib/metadata/libtizen-theme-plugin.so
%{_datarootdir}/parser-plugins/tizen-theme-plugin.info
%{_unitdir}/%{name}.service
+%{_unitdir}/multi-user.target.wants/%{name}.service
%{_sysconfdir}/dbus-1/system.d/%{name}.conf
%files -n capi-appfw-tizen-theme