diff --git a/neard.changes b/neard.changes index 6da41c3..1bd5cf8 100644 --- a/neard.changes +++ b/neard.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Dec 17 11:54:23 UTC 2013 - acho@suse.com + +- Add neard.service to enable neard.(bnc#837978) + Fixed systemd BuildRequires version. + ------------------------------------------------------------------- Fri Dec 6 10:43:14 UTC 2013 - acho@suse.com diff --git a/neard.service b/neard.service new file mode 100644 index 0000000..570b7bc --- /dev/null +++ b/neard.service @@ -0,0 +1,16 @@ +[Unit] +Description=neard service +Documentation=man:neard(8) + +[Service] +Type=dbus +BusName=org.neard +ExecStart=/usr/lib/nfc/neard -n +NotifyAccess=main +#WatchdogSec=10 +#Restart=on-failure +#CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW +LimitNPROC=1 + +[Install] +Alias=dbus-org.neard.service diff --git a/neard.spec b/neard.spec index 548e277..0ba18e5 100644 --- a/neard.spec +++ b/neard.spec @@ -19,7 +19,7 @@ Name: neard BuildRequires: pkgconfig(dbus-1) >= 1.4 -%if 0%{?suse_version} > 1140 +%if 0%{?suse_version} >= 1210 BuildRequires: systemd %{?systemd_requires} %define has_systemd 1 @@ -31,6 +31,7 @@ License: GPL-2.0+ Group: Hardware/Mobile Url: http://01.org/linux-nfc/ Source: https://www.kernel.org/pub/linux/network/nfc/neard-%{version}.tar.bz2 +Source1: neard.service BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: automake BuildRequires: check-devel @@ -72,6 +73,7 @@ make %{?_smp_mflags} all V=1 %install %make_install +install --mode=0644 -D %{SOURCE1} %{buildroot}%{_unitdir}/neard.service %clean rm -rf %{buildroot} @@ -103,6 +105,7 @@ rm -rf %{buildroot} %config %{_sysconfdir}/dbus-1/system.d/org.neard.conf %dir %{_prefix}/lib/nfc %{_prefix}/lib/nfc/neard +%{_unitdir}/neard.service %doc %{_mandir}/man1/nfctool.1.gz %doc %{_mandir}/man5/neard.conf.5.gz %doc %{_mandir}/man8/neard.8.gz