--- /dev/null
+[Unit]
+Description=Smartcard service daemon
+
+[Service]
+Type=dbus
+BusName=org.tizen.SmartcardService
+ExecStart=/usr/bin/smartcard-daemon
+User=network_fw
+Group=network_fw
+SmackProcessLabel=System
Group: Network & Connectivity
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
+Source1: smartcard-service.service
BuildRequires: cmake
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
%install
%make_install
+mkdir -p %{buildroot}/usr/lib/systemd/system/
+cp -af %{SOURCE1} %{buildroot}/usr/lib/systemd/system/
+
mkdir -p %{buildroot}/etc/dbus-1/system.d/
cp -af %{_builddir}/%{name}-%{version}/packaging/org.tizen.SmartcardService.conf %{buildroot}/etc/dbus-1/system.d/
%{_bindir}/smartcard-daemon
%{_sysconfdir}/dbus-1/system.d/org.tizen.SmartcardService.conf
%{_datadir}/dbus-1/system-services/org.tizen.SmartcardService.service
+/usr/lib/systemd/system/%{name}.service
%if 0%{?gtests:1}
%{_bindir}/gtest*
%endif