summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorArron Wang <arron.wang@intel.com>2013-07-08 17:04:26 +0800
committerArron Wang <arron.wang@intel.com>2013-07-09 08:26:43 +0800
commit3c84cef34816eecbe0487feac5d83e445ebc1236 (patch)
treea48fa96521d5cb791686783e52b3a3d4906bf577 /packaging
parentd7b798adada7556dcdf4972c4714548761e596e7 (diff)
downloadneard-3c84cef34816eecbe0487feac5d83e445ebc1236.tar.gz
neard-3c84cef34816eecbe0487feac5d83e445ebc1236.tar.bz2
neard-3c84cef34816eecbe0487feac5d83e445ebc1236.zip
Change-Id: I5704e7f54c2162b644eaa12aa508d4bf127145eb
Diffstat (limited to 'packaging')
-rw-r--r--packaging/neard.changes27
-rw-r--r--packaging/neard.service11
-rw-r--r--packaging/neard.spec92
3 files changed, 130 insertions, 0 deletions
diff --git a/packaging/neard.changes b/packaging/neard.changes
new file mode 100644
index 0000000..7fc6ba0
--- /dev/null
+++ b/packaging/neard.changes
@@ -0,0 +1,27 @@
+* Mon Jul 8 17:02:59 CST 2013 Arron <arron.wang@intel.com> - 0.12
+- rebase to version 0.12
+
+* Tue Sep 11 2012 arron.wang <arron.wang@intel.com> submit/2.0_beta/20120831.083207@3ecb862
+- Update License Info
+
+* Tue Aug 28 2012 Arron < arron.wang@intel.com> - 0.6
+- Upgrade to version 0.6
+
+* Mon Aug 6 10:39:42 CST 2012 Arron <arron.wang@intel.com>
+- Add systemd support
+
+* Fri Aug 03 2012 Anas Nashif <anas.nashif@intel.com> a7864dd
+- fix runtime requirements
+
+* Tue Jul 31 09:22:14 CST 2012 Arron <arron.wang@intel.com> - 0.5
+- Upgrade to version 0.5
+
+* Tue Apr 24 2012 Arron <arron.wang@intel.com> - 0.2.26
+- Upgrade to latest version
+
+* Fri Apr 20 2012 Arron <arron.wang@intel.com> - 0.1.64
+- Add building require for kernel-adaptation-bb-devel to fix the building error
+
+* Fri Mar 30 2012 Arron <arron.wang@intel.com> - 0.1.64
+- Init package for neard
+
diff --git a/packaging/neard.service b/packaging/neard.service
new file mode 100644
index 0000000..73a31d0
--- /dev/null
+++ b/packaging/neard.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=NFC Manager Daemon
+Before=network.target
+
+[Service]
+Type=dbus
+BusName=org.neard
+ExecStart=/usr/libexec/nfc/neard -n
+
+[Install]
+WantedBy=multi-user.target
diff --git a/packaging/neard.spec b/packaging/neard.spec
new file mode 100644
index 0000000..80e2ab7
--- /dev/null
+++ b/packaging/neard.spec
@@ -0,0 +1,92 @@
+Name: neard
+Summary: Near Field Communication Manager
+Version: 0.12
+Release: 1
+Group: Connectivity/NFC
+License: GPL-2.0
+URL: http://git.kernel.org/pub/scm/network/nfc/neard.git
+Source0: http://www.kernel.org/pub/linux/network/nfc/neard-%{version}.tar.bz2
+Source1: neard.service
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(dbus-1)
+BuildRequires: pkgconfig(libnl-2.0)
+
+Requires: systemd
+Requires(post): systemd
+Requires(preun): systemd
+Requires(postun): systemd
+
+%description
+Near Field Communication Manager
+
+
+
+%package devel
+Summary: Development files for NFC Manager
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+neard-devel contains development files for use with neard.
+
+%package test
+Summary: Test Scripts for NFC Manager
+Requires: %{name} = %{version}-%{release}
+Requires: dbus-python
+Requires: pygobject
+
+%description test
+Scripts for testing neard and its functionality
+
+%prep
+%setup -q
+
+%build
+./bootstrap
+%configure \
+ --enable-debug \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --enable-nfctype1=builtin \
+ --enable-nfctype2=builtin \
+ --enable-nfctype3=builtin \
+ --enable-nfctype4=builtin \
+ --enable-p2p=builtin \
+ --enable-test
+
+make %{?jobs:-j%jobs}
+
+%install
+%make_install
+
+# Systemd service file
+install -d %{buildroot}%{_libdir}/systemd/system/
+install -m 644 %{S:1} %{buildroot}%{_libdir}/systemd/system/neard.service
+install -d %{buildroot}%{_libdir}/systemd/system/network.target.wants/
+ln -s ../neard.service %{buildroot}%{_libdir}/systemd/system/network.target.wants/neard.service
+
+
+%post
+systemctl daemon-reload
+systemctl restart neard.service
+
+%preun
+systemctl stop neard.service
+
+%postun
+systemctl daemon-reload
+
+%files
+%license COPYING
+%{_mandir}/man*/*
+%{_libexecdir}/nfc/neard
+%config %{_sysconfdir}/dbus-1/system.d/org.neard.conf
+%{_libdir}/systemd/system/neard.service
+%{_libdir}/systemd/system/network.target.wants/neard.service
+
+%files devel
+%{_includedir}/near/*.h
+%{_libdir}/pkgconfig/*.pc
+
+%files test
+%defattr(-,root,root,-)
+%{_libdir}/neard/test/*