--- /dev/null
+[Unit]
+Description=Application Service Platform daemon
+
+[Service]
+Type=dbus
+BusName=net.asp
+User=network_fw
+Group=network_fw
+SmackProcessLabel=System
+ExecStart=/usr/bin/asp-manager
Name: asp-manager
Summary: ASP(application service platform) manager
-Version: 0.0.33
+Version: 0.0.34
Release: 1
Group: Network & Connectivity/Other
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1: dbus-asp-manager.conf
Source2: net.asp.service
+Source3: asp-manager.service
BuildRequires: cmake
BuildRequires: pkgconfig(glib-2.0)
chmod 644 %{SOURCE0}
chmod 644 %{SOURCE1}
chmod 644 %{SOURCE2}
+chmod 644 %{SOURCE3}
cp -a %{SOURCE1} ./asp-manager.conf
cp -a %{SOURCE2} .
+cp -a %{SOURCE3} .
%build
mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services/
cp net.asp.service %{buildroot}%{_datadir}/dbus-1/system-services/
+mkdir -p %{buildroot}%{_libdir}/systemd/system/
+cp asp-manager.service %{buildroot}%{_libdir}/systemd/system/
#DBus DAC (net-config.manifest enables DBus SMACK)
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
#DBus DAC
%attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/asp-manager.conf
%attr(644,root,root) %{_datadir}/dbus-1/system-services/net.asp.service
+%attr(644,root,root) %{_libdir}/systemd/system/asp-manager.service